transformPoints.C File Reference

Transform (translate, rotate, scale) the mesh points, and optionally also any vector and tensor fields. More...

Go to the source code of this file.

Detailed Description

Transform (translate, rotate, scale) the mesh points, and optionally also any vector and tensor fields.

Original source file transformPoints.C

Usage
transformPoints "\<transformations\>" [OPTION]

Supported transformations:

  • translate=
    Translational transformation by given vector
  • rotate=(<n1 vector> <n2 vector>)
    Rotational transformation from unit vector n1 to n2
  • Rx=<angle [deg] about x-axis>
    Rotational transformation by given angle about x-axis
  • Ry=<angle [deg] about y-axis>
    Rotational transformation by given angle about y-axis
  • Rz=<angle [deg] about z-axis>
    Rotational transformation by given angle about z-axis
  • Ra=<axis vector> <angle [deg] about axis>
    Rotational transformation by given angle about given axis
  • scale=<x-y-z scaling vector>
    Anisotropic scaling by the given vector in the x, y, z coordinate directions
    Options:
  • -rotateFields \n
    Additionally transform vector and tensor fields.
  • -pointSet <name> \n
    Only transform points in the given point set.
    Example usage: transformPoints \ "translate=(-0.05 -0.05 0), \ Rz=45, \ translate=(0.05 0.05 0)"
See also
Foam::transformer surfaceTransformPoints

Definition in file transformPoints.C.