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 |
Static Public Member Functions | |
static scalar | setProjectionTol (const scalar t) |
Set the projection tolerance, returning the previous value. More... | |
Interpolation class dealing with transfer of data between two primitivePatches.
Definition at line 67 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 112 of file PatchToPatchInterpolation.C.
Destructor.
Definition at line 135 of file PatchToPatchInterpolation.C.
|
inlinestatic |
Set the projection tolerance, returning the previous value.
Definition at line 174 of file PatchToPatchInterpolation.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
inline |
Return ype of intersection algorithm to use in projection.
Definition at line 189 of file PatchToPatchInterpolation.H.
|
inline |
Return direction projection to use in projection.
Definition at line 195 of file PatchToPatchInterpolation.H.
const scalarField & pointDistanceToIntersection | ( | ) | const |
Return distance to intersection for patch points.
Definition at line 146 of file PatchToPatchInterpolation.C.
const scalarField & faceDistanceToIntersection | ( | ) | const |
Return distance to intersection for patch face centres.
Definition at line 160 of file PatchToPatchInterpolation.C.
bool movePoints | ( | ) |
Correct weighting factors for moving mesh.
Definition at line 172 of file PatchToPatchInterpolation.C.
Interpolate point field.
Definition at line 43 of file PatchToPatchInterpolate.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, tmp< T >::ref(), and Foam::Zero.
Definition at line 93 of file PatchToPatchInterpolate.C.
Interpolate face field.
Definition at line 107 of file PatchToPatchInterpolate.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::fv::ff(), forAll, tmp< T >::ref(), and Foam::Zero.
Definition at line 159 of file PatchToPatchInterpolate.C.