42 int main(
int argc,
char *argv[])
64 Info<<
"bounding box: min = " << bb.min()
65 <<
" max = " << bb.max() <<
" meters." 73 direction planeNormalCmpt = twoDCorr.normalDir();
75 scalar midCmptVal = midPoint[planeNormalCmpt];
76 scalar minCmptVal = bb.
min()[planeNormalCmpt];
77 scalar maxCmptVal = bb.
max()[planeNormalCmpt];
81 if (
points[pointi][planeNormalCmpt] < midCmptVal)
83 points[pointi][planeNormalCmpt] = minCmptVal;
87 points[pointi][planeNormalCmpt] = maxCmptVal;
91 twoDCorr.correctPoints(
points);
#define forAll(list, i)
Loop across all elements in list.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
static unsigned int defaultPrecision()
Return the default precision.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A bounding box defined in terms of the points at its extremities.
Class applies a two-dimensional correction to mesh motion point field.
Type gAverage(const FieldField< Field, Type > &f)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A primitive field of type <T> with automated input and output.