Interpolation class dealing with transfer of data between two primitivePatches. More...
Public Member Functions | |
PatchToPatchInterpolation (const FromPatch &fromPatch, const ToPatch &toPatch, const intersection::algorithm alg=intersection::FULL_RAY, const intersection::direction dir=intersection::VECTOR) | |
Construct from components. More... | |
~PatchToPatchInterpolation () | |
Destructor. More... | |
intersection::algorithm | projectionAlgo () const |
Return ype of intersection algorithm to use in projection. More... | |
intersection::direction | projectionDir () const |
Return direction projection to use in projection. More... | |
const scalarField & | pointDistanceToIntersection () const |
Return distance to intersection for patch points. More... | |
const scalarField & | faceDistanceToIntersection () const |
Return distance to intersection for patch face centres. More... | |
bool | movePoints () |
Correct weighting factors for moving mesh. More... | |
template<class Type > | |
tmp< Field< Type > > | pointInterpolate (const Field< Type > &pf) const |
Interpolate point field. More... | |
template<class Type > | |
tmp< Field< Type > > | pointInterpolate (const tmp< Field< Type >> &tpf) const |
template<class Type > | |
tmp< Field< Type > > | faceInterpolate (const Field< Type > &pf) const |
Interpolate face field. More... | |
template<class Type > | |
tmp< Field< Type > > | faceInterpolate (const tmp< Field< Type >> &tpf) const |
Public Member Functions inherited from PatchToPatchInterpolationBase | |
ClassName ("PatchToPatchInterpolation") | |
Runtime type information. More... | |
PatchToPatchInterpolationBase () noexcept=default | |
Default construct. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from PatchToPatchInterpolationBase | |
static scalar | projectionTol () noexcept |
Access to projection tolerance. More... | |
static scalar | setProjectionTol (const scalar tol) |
Change propagation tolerance, return previous value. More... | |
Static Protected Attributes inherited from PatchToPatchInterpolationBase | |
static scalar | projectionTol_ = 0.05 |
Relative merge tolerance for projected points missing the target. More... | |
static const scalar | directHitTol = 1e-5 |
Direct hit tolerance. More... | |
Interpolation class dealing with transfer of data between two primitivePatches.
Definition at line 122 of file PatchToPatchInterpolation.H.
PatchToPatchInterpolation | ( | const FromPatch & | fromPatch, |
const ToPatch & | toPatch, | ||
const intersection::algorithm | alg = intersection::FULL_RAY , |
||
const intersection::direction | dir = intersection::VECTOR |
||
) |
Construct from components.
Definition at line 99 of file PatchToPatchInterpolation.C.
Destructor.
Definition at line 122 of file PatchToPatchInterpolation.C.
|
inline |
Return ype of intersection algorithm to use in projection.
Definition at line 261 of file PatchToPatchInterpolation.H.
|
inline |
Return direction projection to use in projection.
Definition at line 269 of file PatchToPatchInterpolation.H.
const scalarField & pointDistanceToIntersection | ( | ) | const |
Return distance to intersection for patch points.
Definition at line 133 of file PatchToPatchInterpolation.C.
const scalarField & faceDistanceToIntersection | ( | ) | const |
Return distance to intersection for patch face centres.
Definition at line 147 of file PatchToPatchInterpolation.C.
bool movePoints | ( | ) |
Correct weighting factors for moving mesh.
Definition at line 159 of file PatchToPatchInterpolation.C.
Interpolate point field.
Definition at line 37 of file PatchToPatchInterpolate.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::New(), UList< Type >::size(), and Foam::Zero.
Definition at line 82 of file PatchToPatchInterpolate.C.
References tmp< T >::clear().
Interpolate face field.
Definition at line 96 of file PatchToPatchInterpolate.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::fv::ff(), forAll, Foam::New(), and Foam::Zero.
Definition at line 144 of file PatchToPatchInterpolate.C.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.