Home > Mesh files
Mesh files
The list of formats readable by DLW is as follows:
* DeepLines WIND mesh format
* Diodore mesh format
DeepLines WIND mesh format
The mesh file must be an ASCII file. The extension of the file is not important. It is usually a .dat file. The surface is simply meshed as an assembly of triangle elements or quadrangle elements.
-
The first word in the file must be *NODES, followed by an arbitrary number of lines with four numbers each : node identification number, X-coordinate, Y-coordinate and Z-coordinate.
-
The other keywords *TRIANGLE or/and *QUADRANGLE must be placed right below the preceding line, and no blank line is allowed. This keyword must be followed by an arbitrary number of lines, with four numbers each : triangle identification number, first, second and third node identification number or five numbers eache : quandrangle identification number, first, second, third and fourth node. The list order of the nodes attached to an element defines the normal to that element. This normal must point out towards the fluid domain.
Example
*NODES
1 0.00000e+00 0.00000e+00 0.00000e+00
2 0.00000e+00 0.00000e+00 1.00000e+02
3 0.00000e+00 1.00000e+00 1.00000e+02
4 1.00000e+02 1.00000e+02 1.00000e+02
5 0.00000e+00 1.00000e+02 0.00000e+00
6 1.00000e+02 1.00000e+02 0.00000e+00
7 5.00000e+01 0.00000e+00 1.00000e+02
8 5.00000e+01 0.00000e+00 0.00000e+00
*QUADRANGLES
10 7 2 3 4
11 1 5 6 8
12 1 2 7 8
Warning
The separator is " " (a space).
Diodore mesh format
The mesh file must be an ASCII file. The extension of the file is not important. It is usually a .dat file. The surface is simply meshed as an assembly of triangle elements or quadrangle elements. The Diodore format enables to use more complex mesh (see sub structures and multi structures). In the same file, several structures composed of sub-structures (or not) can be defined.
-
The first word in the file must be $ NODE, followed by an arbitrary number of lines with four numbers each : node identification number, X-coordinate, Y-coordinate and Z-coordinate. It mus end with "*RETURN".
-
The other keyword is "$ ELEMENT". This command is used to define groups of elements and to associate them into structures or substructure. Each element is defined with a connectivity list i.e. an element name and the list of nodes belonging to that element. The list order of the nodes attached to an element defines the normal to that element. This normal must point out towards the fluid domain. Each group of data (for a structure or a substructure) must be ended with "*RETURN".
| Parameter | Description |
|---|---|
| TYPE | Type of elements TYPE = Q4C000: for quadrangle elements TYPE = T3C000: for triangle elements |
| ELSTRUCTURE | Name of the structure to which the elements belong |
| ELSUBSTRUCTURE | Name of the sub-structure to which the elements belong |
Example
$ NODE
1 0 0 0
2 0 0 100
3 0 1 100
4 100 100 100
5 0 100 0
6 100 100 0
7 50 0 100
8 50 0 0
*RETURN
$ ELEMENT,TYPE=Q4C000,ELSTRUCTURE=BOX ,ELSUBSTRUCTURE=BOX00
10 7 2 3 4
11 1 5 6 8
12 1 2 7 8
*RETURN
$ ELEMENT,TYPE=Q4C000,ELSTRUCTURE=BOX ,ELSUBSTRUCTURE=BOX10
13 3 4 5 6
14 1 2 3 5
15 4 6 7 8
*RETURN
Warning
The separator is " " (a space).
Tip
The name of the structure must not start with "FS", "SL", "BC", "CL", "SCP" nor "SCM" and must not be: "SURFLIB", "SURFCONT", "SURFFOND", "FREESUR", "CONTSURF" nor "SEABED".
