FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

transformPoints.C File Reference

Transforms the mesh points in the polyMesh directory according to the translate, rotate and scale options. More...


Detailed Description

Transforms the mesh points in the polyMesh directory according to the translate, rotate and scale options.

Usage
Options are:

-translate vector Translates the points by the given vector,

-rotate (vector vector) Rotates the points from the first vector to the second,

or -yawPitchRoll (yawdegrees pitchdegrees rolldegrees) or -rollPitchYaw (rolldegrees pitchdegrees yawdegrees)

-scale vector Scales the points by the given vector.

The any or all of the three options may be specified and are processed in the above order.

With -rotateFields (in combination with -rotate/yawPitchRoll/rollPitchYaw) it will also read & transform vector & tensor fields.

Usage
  • transformPoints [OPTIONS]
Parameters:
-translate<vector>
Translate by given vector.
-rotateFields
Also rotate vector/tensor fields.
-rotate<(vector vector)>
Rotate from first to second direction.
-scale<vector (sx sy sz)>
Scaling factors in x, y and z direction.
-case<dir>
Case directory.
-parallel
Run in parallel.
-help
Display help message.
-doc
Display Doxygen API documentation page for this application.
-srcDoc
Display Doxygen source documentation page for this application.
Note:
  • yaw: rotation about z
  • pitch: rotation about y
  • roll: rotation about x

Definition in file transformPoints.C.

#include "src/OpenFOAM/global/argList/argList.H"
#include "src/OpenFOAM/db/Time/Time.H"
#include "src/finiteVolume/fvMesh/fvMesh.H"
#include "src/finiteVolume/fields/volFields/volFields.H"
#include "src/finiteVolume/fields/surfaceFields/surfaceFields.H"
#include "src/OpenFOAM/fields/ReadFields/ReadFields.H"
#include "src/OpenFOAM/fields/GeometricFields/pointFields/pointFields.H"
#include "src/OpenFOAM/fields/Fields/transformField/transformField.H"
#include "src/OpenFOAM/fields/GeometricFields/transformGeometricField/transformGeometricField.H"
#include "src/OpenFOAM/db/IOstreams/StringStreams/IStringStream.H"
#include "src/OpenFOAM/include/createNamedMesh.H"
#include "src/OpenFOAM/include/addRegionOption.H"
#include "src/OpenFOAM/include/setRootCase.H"
#include "src/OpenFOAM/include/createTime.H"
Include dependency graph for transformPoints.C:

Go to the source code of this file.