595 | | = Old Mesh Format = |
596 | | |
597 | | There is a general form of a '''<mesh>''' that |
598 | | lets you the specify each element and explicitly describe their connectivity. |
599 | | |
600 | | '''''Note: This format is deprecated in favor of the mesh types described above.''''' |
601 | | {{{ |
602 | | <mesh> |
603 | | <about> |
604 | | <label>3D Mesh</label> |
605 | | </about> |
606 | | <units>um</units> |
607 | | <hide>yes</hide> |
608 | | <node id="0">0 0 0</node> |
609 | | <node id="1">1 0 0</node> |
610 | | <node id="2">2 0 0</node> |
611 | | <node id="3">3 0 0</node> |
612 | | ... |
613 | | <element id="0"> |
614 | | <nodes>0 1 5 6 25 26 30 31</nodes> |
615 | | </element> |
616 | | <element id="1"> |
617 | | <nodes>1 2 6 7 26 27 31 32</nodes> |
618 | | </element> |
619 | | ... |
620 | | </mesh> |
621 | | }}} |
622 | | |
623 | | In the general form a '''<mesh>''', you can explicitly define a set of points and their connectivity. Each point is defined as a '''<node>''' with a specific id. In this example, we have a 3D mesh, so each '''<node>''' contains an (x,y,z) coordinate. The mesh also contains a series of '''<element>''' objects, which indicate how the nodes are stitched together to form a mesh. The first element is a cube composed of nodes with identifiers (id=) 0, 1, 5, 6, 25, 26, 30, and 31. Note that this mesh has a hole in the center. There is no element defined that connects the inner nodes. This is not an error. It represents a hole in the underlying structure. |
624 | | |
625 | | Each value in the field corresponds to a node in the mesh. The first value represents the field at the first node (id=0), the next value at the next node (id=1), and so forth. |
626 | | |
627 | | '''<node>''':: |
628 | | These are the points of the mesh. Each '''<node>''' subelement contains the x y and z coordinates of a point. The "id" is important. It is used by '''<element>''' subelements to stitch together points to form a cell element. |
629 | | '''<element>''':: |
630 | | These are the cells of the mesh. Each '''<element>''' contains the node ids of the points that compose the cell. |