dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #22270
Re: [Question #150226]: Using mesher region information / tags
On Wed, Mar 23, 2011 at 10:59:05PM -0000, Neilen Marais wrote:
> Question #150226 on DOLFIN changed:
> https://answers.launchpad.net/dolfin/+question/150226
>
> Neilen Marais posted a new comment:
> Anders,
>
> I think I could cook up a patch, but I have searched (in vain) for a
> description of the dolfin xml format. If you could point me in the right
> direction I'm sure I could have a patch done in no time!
Just create a mesh and save it to XML to see what it looks
like. Attach some MeshFunctions to the mesh to see how they are stored:
from dolfin import *
mesh = UnitSquare(2, 2)
mesh.create_mesh_function("cell_domains", 2) # 2 = dim of cells in 2D
mesh.create_mesh_function("exterior_facet_domains", 1) # 1 = dim of facets in 2D
file = File("mesh.xml")
file << mesh
--
Anders
Follow ups
References