47int main(
int argc,
char *argv[])
51 "Flattens the front and back planes of a 2D cartesian mesh"
63 runTime.findInstance(polyMesh::meshSubDir,
"points"),
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);
104 IOstream::defaultPrecision(
max(10u, IOstream::defaultPrecision()));
A primitive field of type <T> with automated input and output.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A bounding box defined in terms of min/max extrema points.
Mid-point interpolation (weighting factors = 0.5) scheme class.
Class applies a two-dimensional correction to mesh motion point field.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Type gAverage(const FieldField< Field, Type > &f)
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.