Skip to content

Dimensions Block

The dimensions block is used to setup a cartesian coordinate system, containing the dimensions in x, y, and z direction. Further, the number of grid points in each direction is prescribed.

Warning

This block is mandatory for all simulations.


Flags Overview

Note

All flags and their description are included in the table below. A detailed description of which values are possible for each input flag follows.

Flag Required Description
LENGTH_X Yes Domain length in x-direction
LENGTH_Y Yes Domain length in y-direction
LENGTH_Z Yes Domain length in z-direction
DIMX_TOTAL Yes Grid Points in x-direction
DIMY_TOTAL Yes Grid Points in y-direction
DIMZ_TOTAL Yes Grid Points in z-direction

Flags Details

Length_x

Maximum x coordinate length of the computational domain.

  • Type: Real (m)
  • Values: Whatever suits your simulation.
  • Default: -

Length_y

Maximum y coordinate length of the computational domain.

  • Type: Real (m)
  • Values: Whatever suits your simulation.
  • Default: -

Length_z

Maximum z coordinate length of the computational domain.

  • Type: Real (m)
  • Values: Whatever suits your simulation.
  • Default: -

Dimx_total

Number of grid points along x coordinate

  • Type: Integer
  • Values: Whatever suits your simulation.
  • Default: -

Dimy_total

Number of grid points along y coordinate

  • Type: Integer
  • Values: Whatever suits your simulation.
  • Default: -

Dimz_total

Number of grid points along z coordinate

  • Type: Integer
  • Values: Whatever suits your simulation.
  • Default: -

Example:

In this example, a box domain of 1 x 1 x 1 m is discretized by 1000 x 1000 x 1000 grid points.

&NML_DIMENSIONS
    LENGTH_X = 1.0
    LENGTH_Y = 1.0
    LENGTH_Z = 1.0
    DIMX_TOTAL = 1000
    DIMY_TOTAL = 1000
    DIMZ_TOTAL = 1000
/