Interpolation class within a primitive patch. Allows interpolation from points to faces and vice versa. More...
Public Member Functions | |
PrimitivePatchInterpolation (const Patch &p) | |
Construct from PrimitivePatch. More... | |
~PrimitivePatchInterpolation () | |
Destructor. More... | |
template<class Type > | |
tmp< Field< Type > > | faceToPointInterpolate (const Field< Type > &ff) const |
Interpolate from faces to points. More... | |
template<class Type > | |
tmp< Field< Type > > | faceToPointInterpolate (const tmp< Field< Type > > &tff) const |
template<class Type > | |
tmp< Field< Type > > | pointToFaceInterpolate (const Field< Type > &pf) const |
Interpolate from points to faces. More... | |
template<class Type > | |
tmp< Field< Type > > | pointToFaceInterpolate (const tmp< Field< Type > > &tpf) const |
template<class Type > | |
tmp< Field< Type > > | faceToEdgeInterpolate (const Field< Type > &ff) const |
Interpolate from faces to edges. More... | |
template<class Type > | |
tmp< Field< Type > > | faceToEdgeInterpolate (const tmp< Field< Type > > &tff) const |
bool | movePoints () |
Do what is neccessary if the mesh has moved. More... | |
Private Member Functions | |
PrimitivePatchInterpolation (const PrimitivePatchInterpolation &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const PrimitivePatchInterpolation &) |
Disallow default bitwise assignment. More... | |
const scalarListList & | faceToPointWeights () const |
Face-to-point weights. More... | |
void | makeFaceToPointWeights () const |
Make face-to-point weights. More... | |
const scalarList & | faceToEdgeWeights () const |
Face-to-edge weights. More... | |
void | makeFaceToEdgeWeights () const |
Make face-to-edge weights. More... | |
void | clearWeights () |
Clear weights. More... | |
Private Attributes | |
const Patch & | patch_ |
Reference to patch. More... | |
scalarListList * | faceToPointWeightsPtr_ |
Face-to-point weights. More... | |
scalarList * | faceToEdgeWeightsPtr_ |
Face-to-edge weights. More... | |
Interpolation class within a primitive patch. Allows interpolation from points to faces and vice versa.
Definition at line 51 of file PrimitivePatchInterpolation.H.
|
private |
Disallow default bitwise copy construct.
PrimitivePatchInterpolation | ( | const Patch & | p | ) |
Construct from PrimitivePatch.
Definition at line 152 of file PrimitivePatchInterpolation.C.
Destructor.
Definition at line 163 of file PrimitivePatchInterpolation.C.
|
private |
Disallow default bitwise assignment.
|
private |
Face-to-point weights.
Definition at line 39 of file PrimitivePatchInterpolation.C.
|
private |
Make face-to-point weights.
Definition at line 51 of file PrimitivePatchInterpolation.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::mag(), points, List::setSize(), and List::size().
|
private |
Face-to-edge weights.
Definition at line 95 of file PrimitivePatchInterpolation.C.
|
private |
Make face-to-edge weights.
Definition at line 107 of file PrimitivePatchInterpolation.C.
References Foam::abort(), Foam::constant::atomic::alpha, Foam::e, Foam::FatalError, FatalErrorInFunction, forAll, Foam::mag(), N, and points.
|
private |
Clear weights.
Definition at line 142 of file PrimitivePatchInterpolation.C.
References Foam::deleteDemandDrivenData().
Interpolate from faces to points.
Definition at line 174 of file PrimitivePatchInterpolation.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, Foam::fv::ff(), forAll, and w().
Referenced by sampledPatchInternalField::interpolateField(), and patchWriter::write().
Definition at line 218 of file PrimitivePatchInterpolation.C.
Interpolate from points to faces.
Definition at line 231 of file PrimitivePatchInterpolation.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, and List::size().
Definition at line 275 of file PrimitivePatchInterpolation.C.
Interpolate from faces to edges.
Definition at line 288 of file PrimitivePatchInterpolation.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and List::size().
Definition at line 332 of file PrimitivePatchInterpolation.C.
bool movePoints |
Do what is neccessary if the mesh has moved.
Definition at line 343 of file PrimitivePatchInterpolation.C.
|
private |
Reference to patch.
Definition at line 56 of file PrimitivePatchInterpolation.H.
|
mutableprivate |
Face-to-point weights.
Definition at line 62 of file PrimitivePatchInterpolation.H.
|
mutableprivate |
Face-to-edge weights.
Definition at line 65 of file PrimitivePatchInterpolation.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.