Go to the documentation of this file.
47 int main(
int argc,
char *argv[])
51 "Flattens the front and back planes of a 2D cartesian mesh"
74 Info<<
"bounding box: min = " << bb.min()
75 <<
" max = " << bb.max() <<
" metres."
83 direction planeNormalCmpt = twoDCorr.normalDir();
85 scalar midCmptVal =
midPoint[planeNormalCmpt];
86 scalar minCmptVal = bb.min()[planeNormalCmpt];
87 scalar maxCmptVal = bb.max()[planeNormalCmpt];
91 if (
points[pointi][planeNormalCmpt] < midCmptVal)
93 points[pointi][planeNormalCmpt] = minCmptVal;
97 points[pointi][planeNormalCmpt] = maxCmptVal;
101 twoDCorr.correctPoints(
points);
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A primitive field of type <T> with automated input and output.
Type gAverage(const FieldField< Field, Type > &f)
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
static void addNote(const string ¬e)
Add extra notes for the usage information.
Mid-point interpolation (weighting factors = 0.5) scheme class.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
Class applies a two-dimensional correction to mesh motion point field.
messageStream Info
Information stream (uses stdout - output is on the master only)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
word findInstance(const fileName &dir, const word &name=word::null, const IOobject::readOption rOpt=IOobject::MUST_READ, const word &stopInstance=word::null) const
static unsigned int defaultPrecision()
Return the default precision.
A bounding box defined in terms of min/max extrema points.