47int 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);
@ NO_REGISTER
Do not request registration (bool: false).
@ MUST_READ
Reading required.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
static unsigned int minPrecision(unsigned int prec) noexcept
Set the minimum default precision.
static void addNote(const string ¬e)
Add extra notes for the usage information.
A bounding box defined in terms of min/max extrema points.
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.
Type gAverage(const FieldField< Field, Type > &f, const label comm)
The global arithmetic average of a FieldField.
messageStream Info
Information stream (stdout output on master, null elsewhere).
vectorIOField pointIOField
pointIOField is a vectorIOField.
Ostream & endl(Ostream &os)
Add newline and flush stream.
vector point
Point is a vector.
constexpr char nl
The newline '\n' character (0x0a).
#define forAll(list, i)
Loop across all elements in list.