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);
static void addNote(const string ¬e)
Add extra notes for the usage information.
word findInstance(const fileName &dir, const word &name=word::null, IOobjectOption::readOption rOpt=IOobjectOption::MUST_READ, const word &stopInstance=word::null) const
Return time instance (location) of dir that contains the file name (eg, used in reading mesh data)...
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
constexpr char nl
The newline '\n' character (0x0a)
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh")
Ostream & endl(Ostream &os)
Add newline and flush stream.
static unsigned int defaultPrecision() noexcept
Return the default precision.
A bounding box defined in terms of min/max extrema points.
Ignore writing from objectRegistry::writeObject()
#define forAll(list, i)
Loop across all elements in list.
Mid-point interpolation (weighting factors = 0.5) scheme class.
Class applies a two-dimensional correction to mesh motion point field.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
Type gAverage(const FieldField< Field, Type > &f)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Defines the attributes of an object for which implicit objectRegistry management is supported...
A primitive field of type <T> with automated input and output.
Do not request registration (bool: false)