Mesh
Supported Versions
1
Subtype of
Serializable
Fields
The class is defined by the following fields:
Description
The geometric entity numbering for points, edges, and boundaries must start from 0 and the geometric entity numbering for domains must start from 1 when defining a mesh through a COMSOL Multiphysics mesh file.
Example
The following displays a mesh with triangular elements on a unit square. Neither point nor edge elements are present.
4 Mesh # class
2 # sdim
5 # number of mesh points
0 # lowest mesh point index
# Mesh point coordinates on unit square
0 0
1 0
1 1
0 1
0.5 0.5
1 # number of element types
3 tri # type name
3 # number of nodes per element
4 # number of elements
# Elements, 4 triangular elements
0 1 4
3 0 4
2 3 4
1 2 4
4 # number of domains
# Domains
1
1
2
2