DDF (Domain Data File) is a data file format to define a domain.
Typically, a domain is given its boundary as collection of vertices, lines, contours, holes.
A DDF file is a simple text file containing the definition of any
domain.
The main principle here is that any information in the file is contained in a line and is defined
by a keyword following the rules :
label |
Label of vertex (integer) |
x[1] |
First coordinate of vertex (real number) |
... |
... ... |
x[dim] |
dim-th coordinate of vertex (real number) |
size |
Mesh size around the vertex (real number) |
code |
Code associated to node (integer) |
label v1 v2 Ncode Scode
label v1 v2 cx cy r orientation Ncode Scode nb
Label of line (integer)
Label of first vertex (integer)
Label of second vertex (integer)
Code associated to line generated nodes (integer)
Code associated to line generated sides (integer)
Label of line (integer)
Label of first vertex (integer)
Label of second vertex (integer)
x-coordinate of center of circle (real)
y-coordinate of center of circle (real)
Radius of circle (real)
Orientation of arc (1: Direct, -1: Inverse (integer)
Code associated to line generated nodes (integer)
Code associated to line generated sides (integer)
Number of sub-intervals (integer)
label |
Label of contour (integer) |
nb |
Number of lines (integer) |
c[1] |
Label of the fist line in contour (integer) |
... |
... |
c[nb] |
Label of the nbth line in contour (integer) |
label |
Label of hole (integer) |
nb |
Number of lines (integer) |
h[1] |
Label of the first line in hole (integer) |
... |
... |
h[nb] |
Label of the nbth line in hole (integer) |
label |
Label of contour defining the subdomain (integer) |
ref |
Reference number for subdomain (integer) |
n |
Number of degrees of freedom per node (integer) |
lx |
Length of rectangle (real number) |
ly |
Height of rectangle (real number) |
nex |
Number of sub-intervals in the x-direction (integer) |
ney |
Number of sub-intervals in the y-direction (integer) |
ratio |
Progression ratio. A value of 1 corresponds to a uniform mesh (real number) |
bs |
Store (1) or not (0) all boundary sides (integer) |
c1 |
Code of nodes on the line y=0 (integer) |
c2 |
Code of nodes on the line x=lx (integer) |
c3 |
Code of nodes on the line y=ly (integer) |
c4 |
Code of nodes on the line x=0 (integer) |
mesh_file |
Name of mesh file where to store the resulted mesh (string) |
R |
Radius of disk (real number) |
cx |
x-coordinate of center of disk (real number) |
cy |
y-coordinate of center of disk (real number) |
type |
Mesh type (0≤type≤2). Corresponds to various types of triangulations (integer) |
ns |
Number of subdivisions of the circumference (integer) |
nl |
Number of layers (subdivisions of the radius) (integer) |
bs |
Store (1) or not (0) boundary sides (integer) |
nb_dof |
Number of degrees of freedom per node (integer) |
dc |
Code of nodes on the boundary (integer) |
nc |
Code of sides on the boundary (integer) |
mesh_file |
Name of mesh file where to store the resulted mesh (string) |
mesh_file |
Name of file where the resulting mesh is to be stored (string) |