Hello Everyone
If I have .xml files (.xml, facet_region.xml, physical_region.xml) and I want to generate mesh. How can I do ?
Hello Everyone
If I have .xml files (.xml, facet_region.xml, physical_region.xml) and I want to generate mesh. How can I do ?
Please clarify the question. Those files typically contain the mesh already, why do you want to generate it again?
How can i use these files in the code ?
from dolfin import *
mesh = Mesh("data/mesh.xml")
subdomains = MeshFunction("size_t", mesh, "data/mesh_physical_region.xml")
boundaries = MeshFunction("size_t", mesh, "data/mesh_facet_region.xml")
something like this