-
Notifications
You must be signed in to change notification settings - Fork 1
Implement ply geometry export for modeling plies #545
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 ply geometry export for modeling plies #545
Conversation
21694de to
c0fc82b
Compare
Wiz Scan Summary
|
| include_boundary: bool = True, | ||
| include_first_material_direction: bool = True, | ||
| include_second_material_direction: bool = True, | ||
| arrow_length: float = 1.0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if that is a reasonable default. What about something like model.average_element_size?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, square root of average_element_size is consistent with the ACP GUI.
Add a helper to manage the minimum server version needed to run specific methods on tree objects. To implement this, the 'channel' stored in the tree objects was converted into a 'ServerWrapper' which contains the channel and the server version.
c0fc82b to
08cc403
Compare
c05ee24 to
50ca475
Compare
The ansys-mapdl-core package is incompatible with numpy 2.0. However, older versions did not declare this incompatibility. To avoid explicitly limiting the numpy version here (and thus missing when the incompatibility is resolved), we force a sufficiently new version of ansys-mapdl-core that does declare the incompatibility. Otherwise, 'poetry' resolves the new numpy version, breaking the installation of ansys-mapdl-core.
61d51f7 to
dfc3391
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feat/adaptive_mesh_workflow #545 +/- ##
===============================================================
+ Coverage 91.98% 92.02% +0.04%
===============================================================
Files 82 82
Lines 4252 4287 +35
===============================================================
+ Hits 3911 3945 +34
- Misses 341 342 +1 ☔ View full report in Codecov by Sentry. |
Merging the changes from #545 onto `main`. Add an `export_modeling_ply_geometries` method to the `Model`, which the geometry of all modeling plies Other changes: - Add a helper function for managing the version of the server which supports a particular feature. - Since that required knowing the server version at the `TreeObject` level, convert the `channel` member into a `ServerWrapper` which contains both the channel and version. - Force newer version of `ansys-mapdl-core`, to avoid poetry resolving numpy to version 2.0 and downgrading `ansys-mapdl-core`, since older versions do not declare their incompatibility with numpy 2.0.
Add an
export_modeling_ply_geometriesmethod to theModel, which the geometry of all modeling pliesOther changes:
TreeObjectlevel, convert thechannelmemberinto a
ServerWrapperwhich contains both the channel and version.