Hi there! I am new to GMSH and FEniCS. My apologies if the below question is a trivial one. But I tried many of the suggestions listed in the discourse site but nothing seems to work. Need help with this.
I am using Dolfin version 2019.2.0 and GMSH 3.0.1.
I created a .geo and .msh file in GMSH and converted it to xdmf using the command
dolfin-convert annulusgeometry.msh annulusgeometry.xdmf
Then in the FEniCS script, I plugged in the following set of commands (from one of the suggested solution in the site):
import meshio
msh = meshio.read(“annulusgeometry.msh”)
meshio.write(“mf.xdmf”, meshio.Mesh(points=msh.points, cells={“triangle”: msh.cells[“triangle”]},
cell_data={“triangle”: {“name_to_read”: msh.cell_data[“triangle”][“gmsh:physical”]}}))
meshio.write(“cf.xdmf”, meshio.Mesh(
points=msh.points, cells={“tetra”: msh.cells[“tetra”]},
cell_data={“tetra”: {“name_to_read”:
msh.cell_data[“tetra”][“gmsh:physical”]}}))
from dolfin import *
mesh = Mesh()
with XDMFFile(“mesh.xdmf”) as infile:
infile.read(mesh)
mvc = MeshValueCollection(“size_t”, mesh, 2)
with XDMFFile(“mf.xdmf”) as infile:
infile.read(mvc, “name_to_read”)
mf = cpp.mesh.MeshFunctionSizet(mesh, mvc)
mvc = MeshValueCollection(“size_t”, mesh, 3)
with XDMFFile(“cf.xdmf”) as infile:
infile.read(mvc, “name_to_read”)
cf = cpp.mesh.MeshFunctionSizet(mesh, mvc)
ds_custom = Measure(“ds”, domain=mesh, subdomain_data=mf)
When executing, I am getting the error No module named ‘h5py’
I installed h5py and executed the program. Then I got a gigantic error message which started with
h5py is running against HDF5 1.10.4 when it was built against 1.12.0, this may cause problems
How to overcome this?