Mesh
Current Version
8
Subtype of
Serializable
Fields
Description
The geometric entity numbering for points, edges, and boundaries must start from 0 and the geometric entity numbering for solid domains must start from 1 when defining a mesh through a COMSOL Multiphysics mesh file. Domain 0 is reserved for the infinite void and negative numbers are used for finite voids.
For information about the local mesh numbering for the mesh element type in COMSOL Multiphysics, see Mesh Element Numbering Conventions.
Example
The following displays a mesh with triangular elements on a unit square. Neither point nor edge elements are present.
# Major & minor version
0 1
1 # number of tags
# Tags
5 mesh1
1 # number of types
# Types
3 obj
 
# --------- Object 0 ----------
 
0 0 1
4 Mesh # class
8 # version
2 # sdim
 
# Include geometric model
1
 
# Geometric model
 
3 # Number of geometric entities per dimension
0
0
1
 
0 # Voids are labeled
 
0 # Up and down domains for boundaries
 
0 # Isolated vertices in domains
 
 
# Mesh data
 
4 # number of mesh vertices
 
# Mesh vertex coordinates
0 1
0 0
1 1
1 0
 
1 # number of element types
 
# Type #0
 
3 tri # type name
 
 
3 # number of vertices per element
2 # number of elements
# Elements
0 1 2
3 2 1
 
2 # number of geometric entity indices
# Geometric entity indices
1
1