Skip to content
Snippets Groups Projects
Commit 12efd69f authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

small .msh example

parent 06000948
No related branches found
No related tags found
No related merge requests found
...@@ -3166,6 +3166,45 @@ there are @var{ncomp} values per node (resp. per element), where ...@@ -3166,6 +3166,45 @@ there are @var{ncomp} values per node (resp. per element), where
@var{number-of-nodes-per-elements} values per element. @var{number-of-nodes-per-elements} values per element.
@end table @end table
Below is a small example (a mesh consisting of two quadrangles with an
associated nodal scalar dataset):
@smallexample
$MeshFormat
2.0 0 8
$EndMeshFormat
$Nodes
6 @var{six mesh nodes:}
1 0.0 0.0 0.0 @var{ node #1: coordinates (0.0, 0.0, 0.0)}
2 1.0 0.0 0.0 @var{ node #2: coordinates (1.0, 0.0, 0.0)}
3 1.0 1.0 0.0 @var{ etc.}
4 0.0 1.0 0.0
5 2.0 0.0 0.0
6 2.0 1.0 0.0
$EndNodes
$Elements
2 @var{two elements:}
1 3 2 99 2 1 2 3 4 @var{ quad #1: type 3, physical 99, elementary 2, nodes 1 2 3 4}
2 3 2 99 2 2 5 6 3 @var{ quad #2: type 3, physical 99, elementary 2, nodes 2 5 6 3}
$EndElements
$NodeData
1 @var{one string tag:}
"A scalar view" @var{ the name of the view ("A scalar view")}
1 @var{one real tag:}
0.0 @var{ the time value (0.0)}
3 @var{three integer tags:}
0 @var{ the time step (0; time steps always start at 0)}
1 @var{ 1-component (scalar) field}
6 @var{ six associated nodal values}
1 0.0 @var{value associated with node #1 (0.0)}
2 0.1 @var{value associated with node #2 (0.1)}
3 0.2 @var{etc.}
4 0.0
5 0.2
6 0.4
$EndNodeData
@end smallexample
@c ------------------------------------------------------------------------- @c -------------------------------------------------------------------------
@c MSH binary file format @c MSH binary file format
@c ------------------------------------------------------------------------- @c -------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment