← Back to team overview

dolfin team mailing list archive

Re: XML format for Higher Order meshes

 

On Mon, 25 Aug 2008, Anders Logg wrote:

The XML format could be something like

 <mesh celltype="triangle" dim="2">
   <vertices size="2868">
     <vertex index="0" x="0.534923" y="0.326073"/>
     ...
   </vertices>
   <cells size="5400">
     <triangle index="0" v0="76" v1="914" v2="1153"/>
     ...
   </cells>
   <coordinates>
     <function>

     </function>
   </coordinates>
 <mesh

Here is a slightly more explicit example:

<dolfin xmlns:dolfin="http://www.fenics.org/dolfin/";>
  <mesh celltype="triangle" dim="2">

    <vertices size="4">
      <vertex index="0" x="0.0"  y="0.0"/>
      <vertex index="1" x="1.0"  y="0.0"/>
      <vertex index="2" x="0.0"  y="1.0"/>
      <vertex index="3" x="-1.0" y="0.0"/>
    </vertices>

    <cells size="2">
      <triangle index="0" v0="0" v1="1" v2="2"/>
      <triangle index="1" v0="3" v1="0" v2="2"/>
    </cells>

    <coordinates>
      <function>
        <vector size="18">
          <entry row="0" value="?"/>
          <entry row="1" value="?"/>
          <entry row="2" value="?"/>
          ...
          <entry row="16" value="?"/>
          <entry row="17" value="?"/>
        </vector>
      </function>
      <dofmap ?????/>
    </coordinates>

  </mesh>
</dolfin>

Is this what it would look like? What exactly would the `dofmap' attribute be?

- Shawn


References