Best way to connect domain data from xml file with mesh
Asked by
Claas Abert
I'm using the Python interface of dolfin-dev. I created a mesh with several subdomains with Gmsh and converted it with dolfin-convert which gives me two file: mesh.xml and mesh_physical_
How can I create a mesh object, where the subdomain data is included, so I can use dx(0),dx(1),... in my forms?
I tried something like
mesh = Mesh("mesh.xml")
domains = MeshFunction(
domain_collection = MeshValueCollec
mesh.domains(
mesh.domains(
But this does not work and seams to be pretty complicated.
Best regards, Claas
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Johan Hake
- Solved:
- Last query:
- Last reply:
To post a message you must log in.