Skip to content

Commit

Permalink
Merge pull request #81 from keiyamamo/save_mesh
Browse files Browse the repository at this point in the history
Save mesh
  • Loading branch information
keiyamamo authored Sep 4, 2023
2 parents a209f92 + be09bdd commit 803b318
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions turtleFSI/monolithic.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@
# Get mesh information
mesh, domains, boundaries = get_mesh_domain_and_boundaries(**vars())

# Save mesh, domains, and boundaries for post-processing
if restart_folder is None:
mesh_path = results_folder.joinpath("Mesh", "mesh.h5")
with HDF5File(mesh.mpi_comm(), mesh_path.__str__(), "w") as hdf:
hdf.write(mesh, "/mesh")
hdf.write(boundaries, "/boundaries")
hdf.write(domains, "/domains")

# Control FEniCS output
set_log_level(loglevel)

Expand Down

0 comments on commit 803b318

Please sign in to comment.