Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement HarmonicMechanicalSimulation results #293

Merged
merged 25 commits into from
Feb 27, 2023

Conversation

PProfizi
Copy link
Contributor

@PProfizi PProfizi commented Feb 24, 2023

Implement result extraction APIs for HarmonicMechanicalSimulation.

HarmonicMechanicalSimulation methods

(checked: tested, italic: implemented)

  • displacement
  • velocity
  • acceleration
  • stress, stress_elemental, stress_nodal
  • stress_principal, stress_principal_nodal, stress_principal_elemental_
  • stress_eqv_von_mises, stress_eqv_von_mises_elemental, stress_eqv_von_mises_nodal
  • elastic_strain, elastic_strain_nodal, elastic_strain_elemental
  • elastic_strain_principal, elastic_strain_principal_nodal, elastic_strain_principal_elemental
  • elastic_strain_eqv_von_mises, elastic_strain_eqv_von_mises_elemental, elastic_strain_eqv_von_mises_nodal
  • elastic_strain_energy_density
  • reaction_force
  • element_nodal_forces, element_nodal_forces_nodal, element_nodal_forces_elemental
  • nodal_force
  • nodal_moment
  • thickness
  • element_centroids
  • element_orientations
  • elemental_mass
  • elemental_volume

@PProfizi PProfizi added the enhancement New feature or request label Feb 24, 2023
@PProfizi PProfizi self-assigned this Feb 24, 2023
@codecov
Copy link

codecov bot commented Feb 24, 2023

Codecov Report

Merging #293 (fb46213) into post_refactor (dead1a9) will increase coverage by 1.52%.
The diff coverage is 100.00%.

@@                Coverage Diff                @@
##           post_refactor     #293      +/-   ##
=================================================
+ Coverage          80.16%   81.68%   +1.52%     
=================================================
  Files                 33       34       +1     
  Lines               2410     2583     +173     
=================================================
+ Hits                1932     2110     +178     
+ Misses               478      473       -5     

@PProfizi PProfizi merged commit c27b8fc into post_refactor Feb 27, 2023
@PProfizi PProfizi deleted the post_refactor_harmonic_simulation branch February 27, 2023 17:52
PProfizi added a commit that referenced this pull request Mar 8, 2023
* Add HarmonicMechanicalSimulation

* Add amplitude step to _get_result generated workflow

* Add amplitude test

* Only use "from ansys.dpf import post" and use post.locations instead of core.locations

* Update _get_result with latest changes in Static, Transient and Modal

* Add user-friendly and autocomplete friendly inits for simulation types.

* Add node_ids argument to non-located result APIs for Static

* Add node_ids argument to non-located result APIs for Transient

* Add node_ids argument to non-located result APIs for Modal

* Fix type hinting for MechanicalSimulation._build_selection

* Fix load_simulation with new Simulation init

* Raise an error if node_ids is given while location is not nodal

* Remove first set as default (copied from modal)

* Add a default sweeping_phase operator at 0°

* Fix docstring in transient_mechanical_simulation.py

* Add result APIs to harmonic_mechanical_simulation.py (without sweeping_pahse and amplitude)

* Add tests to harmonic_mechanical_simulation.py

* Fix modal_mechanical_simulation.py tests

* Fix _get_result docstring

* Add coverage for elastic_strain_eqv_von_mises methods

* Fix TestModalMechanicalSimulation.test_elastic_strain_eqv_von_mises_nodal and _elemental

* Remove TestHarmonicMechanicalSimulation.test_velocity and test_acceleration for now due to GitHub CI.

* Test with the latest released ansys-dpf-core and not its current master.

* Change references to locations in docstrings to only mention locations.X

* Improve load_steps argument docstring.
PProfizi added a commit that referenced this pull request Mar 8, 2023
* Add HarmonicMechanicalSimulation

* Add amplitude step to _get_result generated workflow

* Add amplitude test

* Only use "from ansys.dpf import post" and use post.locations instead of core.locations

* Update _get_result with latest changes in Static, Transient and Modal

* Add user-friendly and autocomplete friendly inits for simulation types.

* Add node_ids argument to non-located result APIs for Static

* Add node_ids argument to non-located result APIs for Transient

* Add node_ids argument to non-located result APIs for Modal

* Fix type hinting for MechanicalSimulation._build_selection

* Fix load_simulation with new Simulation init

* Raise an error if node_ids is given while location is not nodal

* Remove first set as default (copied from modal)

* Add a default sweeping_phase operator at 0°

* Fix docstring in transient_mechanical_simulation.py

* Add result APIs to harmonic_mechanical_simulation.py (without sweeping_pahse and amplitude)

* Add tests to harmonic_mechanical_simulation.py

* Fix modal_mechanical_simulation.py tests

* Fix _get_result docstring

* Add coverage for elastic_strain_eqv_von_mises methods

* Fix TestModalMechanicalSimulation.test_elastic_strain_eqv_von_mises_nodal and _elemental

* Remove TestHarmonicMechanicalSimulation.test_velocity and test_acceleration for now due to GitHub CI.

* Test with the latest released ansys-dpf-core and not its current master.

* Change references to locations in docstrings to only mention locations.X

* Improve load_steps argument docstring.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants