Next: parameter
Up: Scene description file
Previous: Comments
 
Contents
The dimension block contains information about the grid and the size of the domain .
The following keywords are allowed:
- length <,,>
- defines the domain as
If not specified, the default domain is
.
- resolution <,,>
- defines the number of cells in each direction, numbered from
1 to , 1 to and from 1 to .
The program will add ''ghost cells'' in each direction,
so the exact number of cells is , respectively numbered from 0 to .
If not specified, the default number of cells will be .
This parameter has to be specified before one of the following parameters x, y or z.
- x
- defines a non-equidistant grid,
where the values define the positions of the grid lines and the values are optional numbers
of the grid lines. These values are ignored by the parser and only serve for compatibility with gnuplot's data format.
The program will compute the width of every cell from .
Thus the first grid line does not need to be positioned at 0.
Furthermore, the width of the ''ghost cells'' will be the same as the width of the adjacent
inner cell. If not specified, the grid will be equidistant and the widths are calculated using resolution and length.
- y
- See x
.
- z
- See x
.
Example:
dimension {
resolution <5, 4, 1>
length <3.0, 2.0, 0.5>
x 0 0.0
1 0.5
2 1.1
3 1.9
4 2.5
5 3.0
}
generates the grid shown in figure .
Figure:
Ghost cells are bounded by thin lines and inner cells are bounded by thick lines.
|
Next: parameter
Up: Scene description file
Previous: Comments
 
Contents
Martin Engel
2004-03-15