-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add FluidSimulation.zone_mesh() to get the mesh of a single zone #615
base: master
Are you sure you want to change the base?
Conversation
@@ -177,6 +178,28 @@ def mesh_info(self) -> FluidMeshInfo: | |||
self._mesh_info = FluidMeshInfo(self._model.metadata.mesh_info) | |||
return self._mesh_info | |||
|
|||
def zone_mesh(self, zone: Union[int, str]) -> Mesh: |
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.
@PProfizi don't you think we should create a mesh api container here ? for extensibility of our APIs I think it can be useful. We could need to add other APIs like: zone_meshes(zones), merged_mesh_for_zones()...
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.
I've marked this as a global feature request for mesh manipulation in PyDPF-Post.
This one though was a specific request so I'll merge it on its own for now.
To me this method will still be there, just improved (for example allow to select several zones at once and get a single Mesh.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #615 +/- ##
==========================================
+ Coverage 85.11% 85.17% +0.06%
==========================================
Files 52 52
Lines 5173 5194 +21
==========================================
+ Hits 4403 4424 +21
Misses 770 770
|
No description provided.