Mesh
Supported Versions
1
Subtype of
Serializable
Fields
The class is defined by the following fields:
Entity/Object
Variable
Description
integer
Version
integer
d
Space dimension (if equal to 0 no more fields)
integer
np
Number of mesh points
integer
Lowest mesh point index
double[d][np]
p
Mesh points
integer
nt
Number of element types (fives the number of repeats of the following fields)
string
Element type
integer
nep
Number of nodes per element
integer
ne
Number of elements
integer[ne][nep]
elem
Matrix of point indices for each element
integer
ndom
Number of geometric entity values
integer[ndom]
dom
Vector of geometric entity labels for each element
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