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