-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement HarmonicMechanicalSimulation results (#293)
* 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.
- Loading branch information
Showing
11 changed files
with
4,571 additions
and
665 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ maintainers = [ | |
{name = "PyAnsys developers", email = "[email protected]"}, | ||
] | ||
dependencies = [ | ||
"ansys.dpf.core @ git+https://[email protected]/pyansys/pydpf-core.git", | ||
"ansys.dpf.core", | ||
"scooby", | ||
] | ||
classifiers = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2,724 changes: 2,724 additions & 0 deletions
2,724
src/ansys/dpf/post/harmonic_mechanical_simulation.py
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.