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

Update fluid examples with the MeshInfo #442

Merged
merged 2 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions examples/00-Different-analysis-types/05-fluid-simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,17 @@


###############################################################################
# Explore the available structure
# -------------------------------
# Explore the available metadata
# ------------------------------
# Check the available cell and face zones
# print(simulation.zones)
print(simulation.cell_zones)
print(simulation.face_zones)

###############################################################################
# The mesh metadata is available separately from the mesh
# as accessing the mesh means loading it.
# Use the mesh_info property to explore the mesh structure to define queries
print(simulation.mesh_info)

###############################################################################
# Check the available species
Expand Down
13 changes: 10 additions & 3 deletions examples/04-Fluid-Examples/00-explore-fluid-simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,17 @@


###############################################################################
# Explore the available structure
# -------------------------------
# Explore the available metadata
# ------------------------------
# Check the available cell and face zones
# print(simulation.zones)
print(simulation.cell_zones)
print(simulation.face_zones)

###############################################################################
# The mesh metadata is available separately from the mesh
# as accessing the mesh means loading it.
# Use the mesh_info property to explore the mesh structure to define queries
print(simulation.mesh_info)

###############################################################################
# Check the available species
Expand Down