40 int main(
int argc,
char *argv[])
57 const scalar midCmptVal =
midPoint[planeNormalCmpt];
58 const scalar minCmptVal =
mesh.
bounds().
min()[planeNormalCmpt];
59 const scalar maxCmptVal =
mesh.
bounds().
max()[planeNormalCmpt];
63 if (
points[pointi][planeNormalCmpt] < midCmptVal)
65 points[pointi][planeNormalCmpt] = minCmptVal;
69 points[pointi][planeNormalCmpt] = maxCmptVal;
#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.
static unsigned int defaultPrecision()
Return the default precision.
static unsigned int highPrecision()
Return a high precision for writing data that is.
const point & min() const
Minimum point defining the bounding box.
const point & max() const
Maximum point defining the bounding box.
Mid-point interpolation (weighting factors = 0.5) scheme class.
Type & lookupObjectRef(const word &name) const
Lookup and return the object reference of the given Type.
const boundBox & bounds() const
Return mesh bounding box.
Class applies a two-dimensional correction to mesh motion point field.
direction normalDir() const
Return direction normal to plane.
void correctPoints(pointField &p) const
Correct motion points.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
int main(int argc, char *argv[])
Type gAverage(const UList< Type > &f, const label comm)
Ostream & endl(Ostream &os)
Add newline and flush stream.