Public Member Functions | Private Member Functions | Private Attributes
PrimitivePatchInterpolation< Patch > Class Template Reference

Interpolation class within a primitive patch. Allows interpolation from points to faces and vice versa. More...

Collaboration diagram for PrimitivePatchInterpolation< Patch >:
Collaboration graph
[legend]

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 scalarListListfaceToPointWeights () const
 Face-to-point weights. More...
 
void makeFaceToPointWeights () const
 Make face-to-point weights. More...
 
const scalarListfaceToEdgeWeights () 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...
 
scalarListListfaceToPointWeightsPtr_
 Face-to-point weights. More...
 
scalarListfaceToEdgeWeightsPtr_
 Face-to-edge weights. More...
 

Detailed Description

template<class Patch>
class Foam::PrimitivePatchInterpolation< Patch >

Interpolation class within a primitive patch. Allows interpolation from points to faces and vice versa.

Source files

Definition at line 51 of file PrimitivePatchInterpolation.H.

Constructor & Destructor Documentation

◆ PrimitivePatchInterpolation() [1/2]

Disallow default bitwise copy construct.

◆ PrimitivePatchInterpolation() [2/2]

PrimitivePatchInterpolation ( const Patch &  p)

Construct from PrimitivePatch.

Definition at line 152 of file PrimitivePatchInterpolation.C.

◆ ~PrimitivePatchInterpolation()

Destructor.

Definition at line 163 of file PrimitivePatchInterpolation.C.

Member Function Documentation

◆ operator=()

void operator= ( const PrimitivePatchInterpolation< Patch > &  )
private

Disallow default bitwise assignment.

◆ faceToPointWeights()

const scalarListList & faceToPointWeights
private

Face-to-point weights.

Definition at line 39 of file PrimitivePatchInterpolation.C.

◆ makeFaceToPointWeights()

void makeFaceToPointWeights
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().

Here is the call graph for this function:

◆ faceToEdgeWeights()

const scalarList & faceToEdgeWeights
private

Face-to-edge weights.

Definition at line 95 of file PrimitivePatchInterpolation.C.

◆ makeFaceToEdgeWeights()

void makeFaceToEdgeWeights
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.

Here is the call graph for this function:

◆ clearWeights()

void clearWeights
private

Clear weights.

Definition at line 142 of file PrimitivePatchInterpolation.C.

References Foam::deleteDemandDrivenData().

Here is the call graph for this function:

◆ faceToPointInterpolate() [1/2]

tmp< Field< Type > > faceToPointInterpolate ( const Field< Type > &  ff) const

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ faceToPointInterpolate() [2/2]

tmp< Field< Type > > faceToPointInterpolate ( const tmp< Field< Type > > &  tff) const

Definition at line 218 of file PrimitivePatchInterpolation.C.

◆ pointToFaceInterpolate() [1/2]

tmp< Field< Type > > pointToFaceInterpolate ( const Field< Type > &  pf) const

Interpolate from points to faces.

Definition at line 231 of file PrimitivePatchInterpolation.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, forAll, and List::size().

Here is the call graph for this function:

◆ pointToFaceInterpolate() [2/2]

tmp< Field< Type > > pointToFaceInterpolate ( const tmp< Field< Type > > &  tpf) const

Definition at line 275 of file PrimitivePatchInterpolation.C.

◆ faceToEdgeInterpolate() [1/2]

tmp< Field< Type > > faceToEdgeInterpolate ( const Field< Type > &  ff) const

Interpolate from faces to edges.

Definition at line 288 of file PrimitivePatchInterpolation.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and List::size().

Here is the call graph for this function:

◆ faceToEdgeInterpolate() [2/2]

tmp< Field< Type > > faceToEdgeInterpolate ( const tmp< Field< Type > > &  tff) const

Definition at line 332 of file PrimitivePatchInterpolation.C.

◆ movePoints()

bool movePoints

Do what is neccessary if the mesh has moved.

Definition at line 343 of file PrimitivePatchInterpolation.C.

Field Documentation

◆ patch_

const Patch& patch_
private

Reference to patch.

Definition at line 56 of file PrimitivePatchInterpolation.H.

◆ faceToPointWeightsPtr_

scalarListList* faceToPointWeightsPtr_
mutableprivate

Face-to-point weights.

Definition at line 62 of file PrimitivePatchInterpolation.H.

◆ faceToEdgeWeightsPtr_

scalarList* faceToEdgeWeightsPtr_
mutableprivate

Face-to-edge weights.

Definition at line 65 of file PrimitivePatchInterpolation.H.


The documentation for this class was generated from the following files: