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::algorithm::fullRay, const intersection::direction dir=intersection::direction::vector) | |
Construct from components. More... | |
PatchToPatchInterpolation (const PatchToPatchInterpolation &)=delete | |
Disallow default bitwise copy construction. 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 |
void | operator= (const PatchToPatchInterpolation &)=delete |
Disallow default bitwise assignment. More... | |
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 65 of file PatchToPatchInterpolation.H.
PatchToPatchInterpolation | ( | const FromPatch & | fromPatch, |
const ToPatch & | toPatch, | ||
const intersection::algorithm | alg = intersection::algorithm::fullRay , |
||
const intersection::direction | dir = intersection::direction::vector |
||
) |
Construct from components.
Definition at line 110 of file PatchToPatchInterpolation.C.
|
delete |
Disallow default bitwise copy construction.
Destructor.
Definition at line 133 of file PatchToPatchInterpolation.C.
References PatchToPatchInterpolation< FromPatch, ToPatch >::pointDistanceToIntersection().
|
inlinestatic |
Set the projection tolerance, returning the previous value.
Definition at line 170 of file PatchToPatchInterpolation.H.
References Foam::abort(), Foam::FatalError, and FatalErrorInFunction.
|
inline |
Return ype of intersection algorithm to use in projection.
Definition at line 185 of file PatchToPatchInterpolation.H.
|
inline |
Return direction projection to use in projection.
Definition at line 191 of file PatchToPatchInterpolation.H.
References PatchToPatchInterpolation< FromPatch, ToPatch >::faceDistanceToIntersection(), PatchToPatchInterpolation< FromPatch, ToPatch >::faceInterpolate(), PatchToPatchInterpolation< FromPatch, ToPatch >::movePoints(), PatchToPatchInterpolation< FromPatch, ToPatch >::operator=(), PatchToPatchInterpolation< FromPatch, ToPatch >::pointDistanceToIntersection(), and PatchToPatchInterpolation< FromPatch, ToPatch >::pointInterpolate().
const scalarField & pointDistanceToIntersection | ( | ) | const |
Return distance to intersection for patch points.
Definition at line 144 of file PatchToPatchInterpolation.C.
References PatchToPatchInterpolation< FromPatch, ToPatch >::faceDistanceToIntersection().
Referenced by PatchToPatchInterpolation< FromPatch, ToPatch >::projectionDir(), and PatchToPatchInterpolation< FromPatch, ToPatch >::~PatchToPatchInterpolation().
const scalarField & faceDistanceToIntersection | ( | ) | const |
Return distance to intersection for patch face centres.
Definition at line 158 of file PatchToPatchInterpolation.C.
Referenced by PatchToPatchInterpolation< FromPatch, ToPatch >::pointDistanceToIntersection(), and PatchToPatchInterpolation< FromPatch, ToPatch >::projectionDir().
bool movePoints | ( | ) |
Correct weighting factors for moving mesh.
Definition at line 170 of file PatchToPatchInterpolation.C.
Referenced by PatchToPatchInterpolation< FromPatch, ToPatch >::projectionDir().
Interpolate point field.
Definition at line 40 of file PatchToPatchInterpolate.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, tmp< T >::ref(), List< Type >::size(), and Foam::Zero.
Referenced by PatchToPatchInterpolation< FromPatch, ToPatch >::projectionDir().
Definition at line 90 of file PatchToPatchInterpolate.C.
References tmp< T >::clear(), and PatchToPatchInterpolation< FromPatch, ToPatch >::faceInterpolate().
Interpolate face field.
Definition at line 104 of file PatchToPatchInterpolate.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, tmp< T >::ref(), List< Type >::size(), and Foam::Zero.
Referenced by PatchToPatchInterpolation< FromPatch, ToPatch >::pointInterpolate(), and PatchToPatchInterpolation< FromPatch, ToPatch >::projectionDir().
Definition at line 156 of file PatchToPatchInterpolate.C.
|
delete |
Disallow default bitwise assignment.
Referenced by PatchToPatchInterpolation< FromPatch, ToPatch >::projectionDir().