I'm generating the XML mesh file using the VMTK, and it creates the mesh and the boundary ids in just one XML file
<?xml version="1.0"?>
<dolfin xmlns:dolfin="http://www.fenicsproject.org">
. . . ( Vertices and Cells)
<domains>
<mesh_value_collection type="uint" dim="2" size="7136">
<value cell_index="2" local_entity="3" value="3" />
My questions is if there is a way to get this as a MeshFunction directly form the XML file
I want to calculate the area of the boundaries and doing
area = assemble(Constant(1.0)*ds(domain=mesh,subdomain_id=boundary_id))
keeps returning zero
Thanks in advance