90 patches_(getPatches(
entry))
141 const face&
f(patch[pFaceI]);
143 const label cellI(patch.faceCells()[pFaceI]);
148 const point& xOrigin(patch.faceCentres()[pFaceI]);
156 const label pointI(
f[fPointI]);
159 const vector u(pointDisplacement[pointI] - uMean);
161 pointRotation[pointI] = 2*(r ^ u)/
magSqr(r);
162 pointExpansion[pointI] = (r & u)/
magSqr(r);
167 const scalar divMean(
f.average(
points, pointExpansion));
172 const label pointI(cPoints[cPointI]);
176 pointDisplacementNSum[pointI] += 1;
177 pointDisplacementSum[pointI] +=
178 uMean + (omegaMean ^ r) + (divMean*r);
186 pointDisplacementNSum,
194 pointDisplacementSum,
201 if (pointDisplacementNSum[pointI])
203 pointDisplacement[pointI] =
204 pointDisplacementSum[pointI]/pointDisplacementNSum[pointI];
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
void correctBoundaryConditions()
Correct boundary field.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
void size(const label n)
Older name for setAddressableSize.
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface....
A cell is defined as a list of faces with extra functionality.
A keyword and a list of tokens is an 'entry'.
A face is a list of labels corresponding to mesh vertices.
Mesh data needed to do the Finite Volume discretisation.
Base class for interpolation of cell displacement fields, generated by fvMotionSolvers,...
const fvMesh & mesh() const
Return const-reference to the mesh.
label findPatchID(const word &patchName, const bool allowNotFound=true) const
Find patch index given a name, return -1 if not found.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
A patch is a list of labels that address the faces in the global face list.
bool interpolate() const noexcept
Same as isPointData()
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const polyBoundaryMesh & patches
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
List< word > wordList
A List of words.
List< label > labelList
A List of labels.
static constexpr const zero Zero
Global zero (0)
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
wordList patchNames(nPatches)
#define forAll(list, i)
Loop across all elements in list.
A non-counting (dummy) refCount.