CartesianΒΆ

Type:section
Appearance:simple
Excludes:PointList, Unstructured

Use this section to export the fields on a regular Cartesian grid. There are three ways to define a Cartesian grid.

  • Set the grid points as vectors. GridPointsX, GridPointsY, and GridPointsZ are the point vectors in x, y, and z directions, respectively.
  • Specify number of used grid points. For each coordinate direction, equally spaced grid points are used to sample the bounding box. NGridPointsX, NGridPointsY, and NGridPointsZ are the numbers of points in x, y, and z directions, respectively.
  • Specify spacing. Each coordinate direction is divided into segments with given length. SpacingX, SpacingY, and SpacingZ are the spacings in x, y, and z directions, respectively.

Coordinates and spacings are expressed in meters \units{m}.

A typical setting may, e.g., look like this:

PostProcess {
  ExportFields {
    FieldBagPath = "project_results/fieldbag.jcm"
    OutputFileName = "project_results/cartesian_xz.jcm"
    Cartesian {
      NGridPointsX = 200
      GridPointsY = 0.0
      NGridPointsZ = 150
    }
  }
}

In addition the so defined cartesian grid can be subsequently rotated and shifted with the Rotation and Origin parameter. These define an affine coordinate transformation applied to the cartesian grid. The fields are exported on the transformed grid.

Note

The UnitOfLength scaling affects only quantities defined in layout.jcm. Values provided for this parameter are not automatically rescaled. Ensure consistency with the selected UnitOfLength.