RotationΒΆ

Type:Rotation
Range:[SO(3)]
Default:-/-
Appearance:optional

The Rotation parameter \TField{R} \in \mathrm{SO}(3) together with the Origin parameter \pvec{x}_0 \in  \mathrm{R}^3 is used to apply an affine coordinate transformation to the defined cartesian grid. The cartesian grid is set up as defined and subsequently transformed. The fields are exported on the transformed grid.

The affine coordinate transformation is given by a rotation matrix \TField{R} \in \mathrm{SO}(3) and a translation vector \pvec{x}_0 \in  \mathrm{R}^3. It is applied to the cartesian coordinates \pvec{x_{cart}} as follows:

\begin{eqnarray*}
\pvec{x} & = &  \TField{R} \pvec{x_{cart}}+ \pvec{x_0}
\end{eqnarray*}

A typical example involves the rotation around the z-axis defined by Euler Angles (cf. Data Structure)

PostProcess {
  ExportFields {
    FieldBagPath = "project_results/fieldbag.jcm"
    OutputFileName = "project_results/cartesian_xz_rot45.jcm"
    Cartesian {
      NGridPointsX = 200
      GridPointsY = 0.0
      NGridPointsZ = 150
      Rotation = [45, 0, 0]
    }
  }
}