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

Add FluidSimulation.zone_mesh() to get the mesh of a single zone #615

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

PProfizi
Copy link
Contributor

No description provided.

@PProfizi PProfizi added the enhancement New feature or request label Mar 29, 2024
@PProfizi PProfizi added this to the v0.7.0 milestone Mar 29, 2024
@PProfizi PProfizi self-assigned this Mar 29, 2024
@PProfizi PProfizi requested review from cbellot000 and rlagha March 29, 2024 16:42
@PProfizi PProfizi modified the milestones: v0.7.0, v0.7.1 Apr 12, 2024
@PProfizi PProfizi requested a review from cbellot000 May 3, 2024 09:11
@@ -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:
Copy link
Contributor

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()...

Copy link
Contributor Author

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.

@PProfizi PProfizi modified the milestones: v0.8.1, v0.8.2 Jul 11, 2024
@PProfizi PProfizi modified the milestones: v0.9.1, v0.9.2, v0.9.3 Nov 18, 2024
Copy link

codecov bot commented Nov 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.17%. Comparing base (11ffa75) to head (f676c0d).

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              
---- 🚨 Try these New Features:

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