Skip to content

Commit

Permalink
linting contributed
Browse files Browse the repository at this point in the history
  • Loading branch information
d2f4d131d9eac6cc27e3d6245ab1476b committed Mar 20, 2024
1 parent 032ee49 commit 70c7980
Show file tree
Hide file tree
Showing 4 changed files with 656 additions and 450 deletions.
7 changes: 2 additions & 5 deletions contributed/DIC_CT_35/export_msh.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@


os.system("gmsh -2 " + filename + ".geo -format msh2")
os.system("dolfin-convert " + filename + ".msh " + filename +".xml")
os.system("dolfin-convert " + filename + ".msh " + filename + ".xml")
os.remove(filename + ".msh")
#xml to h5 (1-3)
# xml to h5 (1-3)
mesh = Mesh(filename + ".xml")
#boundaries = MeshFunction("size_t", mesh, "mesh4_facet_region.xml")
subdomains = MeshFunction("size_t", mesh, filename + "_physical_region.xml")
boundaries = MeshFunction("size_t", mesh, filename + "_facet_region.xml")



hdf = HDF5File(mesh.mpi_comm(), filename + ".h5", "w")
hdf.write(mesh, "/mesh")
hdf.write(boundaries, "/boundaries")
Expand All @@ -41,5 +40,3 @@

#subdomains = MeshFunction("size_t", mesh,2)
#hdf.read(subdomains, "/subdomains")


Loading

0 comments on commit 70c7980

Please sign in to comment.