# 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 , , and 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 , , and directions, respectively.
- Specify spacing. Each coordinate direction is divided into segments with given length. SpacingX, SpacingY, and SpacingZ are the spacings in , , and directions, respectively.

An 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 subsquently 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.