Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
AMIInterpolation Class Reference

Interpolation class dealing with transfer of data between two primitive patches with an arbitrary mesh interface (AMI). More...

Inheritance diagram for AMIInterpolation:
Inheritance graph
[legend]
Collaboration diagram for AMIInterpolation:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("AMIInterpolation")
 
 declareRunTimeSelectionTable (autoPtr, AMIInterpolation, dict,(const dictionary &dict, const bool reverseTarget),(dict, reverseTarget))
 
 declareRunTimeSelectionTable (autoPtr, AMIInterpolation, component,(const bool requireMatch, const bool reverseTarget, const scalar lowWeightCorrection),(requireMatch, reverseTarget, lowWeightCorrection))
 
 AMIInterpolation (const dictionary &dict, const bool reverseTarget=false)
 
 AMIInterpolation (const bool requireMatch=true, const bool reverseTarget=false, const scalar lowWeightCorrection=-1)
 
 AMIInterpolation (const AMIInterpolation &fineAMI, const labelList &sourceRestrictAddressing, const labelList &neighbourRestrictAddressing)
 
 AMIInterpolation (const AMIInterpolation &ami)
 
virtual autoPtr< AMIInterpolationclone () const
 
virtual ~AMIInterpolation ()=default
 
bool upToDate () const
 
boolupToDate ()
 
bool distributed () const
 
bool requireMatch () const
 
bool setRequireMatch (const bool flag)
 
bool mustMatchFaces () const
 
bool reverseTarget () const
 
scalar lowWeightCorrection () const
 
bool applyLowWeightCorrection () const
 
label singlePatchProc () const
 
const List< scalar > & srcMagSf () const
 
List< scalar > & srcMagSf ()
 
const labelListListsrcAddress () const
 
labelListListsrcAddress ()
 
const scalarListListsrcWeights () const
 
scalarListListsrcWeights ()
 
const scalarFieldsrcWeightsSum () const
 
scalarFieldsrcWeightsSum ()
 
const pointListListsrcCentroids () const
 
pointListListsrcCentroids ()
 
const mapDistributesrcMap () const
 
const List< scalar > & tgtMagSf () const
 
List< scalar > & tgtMagSf ()
 
const labelListListtgtAddress () const
 
labelListListtgtAddress ()
 
const scalarListListtgtWeights () const
 
scalarListListtgtWeights ()
 
const scalarFieldtgtWeightsSum () const
 
scalarFieldtgtWeightsSum ()
 
const mapDistributetgtMap () const
 
virtual bool calculate (const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const autoPtr< searchableSurface > &surfPtr=nullptr)
 
void reset (autoPtr< mapDistribute > &&srcToTgtMap, autoPtr< mapDistribute > &&tgtToSrcMap, labelListList &&srcAddress, scalarListList &&srcWeights, labelListList &&tgtAddress, scalarListList &&tgtWeights)
 
void append (const primitivePatch &srcPatch, const primitivePatch &tgtPatch)
 
void normaliseWeights (const bool conformal, const bool output)
 
template<class Type , class CombineOp >
void interpolateToSource (const UList< Type > &fld, const CombineOp &cop, List< Type > &result, const UList< Type > &defaultValues=UList< Type >::null()) const
 
template<class Type , class CombineOp >
void interpolateToTarget (const UList< Type > &fld, const CombineOp &cop, List< Type > &result, const UList< Type > &defaultValues=UList< Type >::null()) const
 
template<class Type , class CombineOp >
tmp< Field< Type > > interpolateToSource (const Field< Type > &fld, const CombineOp &cop, const UList< Type > &defaultValues=UList< Type >::null()) const
 
template<class Type , class CombineOp >
tmp< Field< Type > > interpolateToSource (const tmp< Field< Type >> &tFld, const CombineOp &cop, const UList< Type > &defaultValues=UList< Type >::null()) const
 
template<class Type , class CombineOp >
tmp< Field< Type > > interpolateToTarget (const Field< Type > &fld, const CombineOp &cop, const UList< Type > &defaultValues=UList< Type >::null()) const
 
template<class Type , class CombineOp >
tmp< Field< Type > > interpolateToTarget (const tmp< Field< Type >> &tFld, const CombineOp &cop, const UList< Type > &defaultValues=UList< Type >::null()) const
 
template<class Type >
tmp< Field< Type > > interpolateToSource (const Field< Type > &fld, const UList< Type > &defaultValues=UList< Type >::null()) const
 
template<class Type >
tmp< Field< Type > > interpolateToSource (const tmp< Field< Type >> &tFld, const UList< Type > &defaultValues=UList< Type >::null()) const
 
template<class Type >
tmp< Field< Type > > interpolateToTarget (const Field< Type > &fld, const UList< Type > &defaultValues=UList< Type >::null()) const
 
template<class Type >
tmp< Field< Type > > interpolateToTarget (const tmp< Field< Type >> &tFld, const UList< Type > &defaultValues=UList< Type >::null()) const
 
label srcPointFace (const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const vector &n, const label tgtFacei, point &tgtPoint) const
 
label tgtPointFace (const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const vector &n, const label srcFacei, point &srcPoint) const
 
bool checkSymmetricWeights (const bool log) const
 
void writeFaceConnectivity (const primitivePatch &srcPatch, const primitivePatch &tgtPatch, const labelListList &srcAddress) const
 
virtual void write (Ostream &os) const
 
template<class Type , class CombineOp >
Foam::tmp< Foam::Field< Type > > interpolateToSource (const Field< Type > &fld, const CombineOp &cop, const UList< Type > &defaultValues) const
 
template<class Type , class CombineOp >
Foam::tmp< Foam::Field< Type > > interpolateToSource (const tmp< Field< Type >> &tFld, const CombineOp &cop, const UList< Type > &defaultValues) const
 
template<class Type , class CombineOp >
Foam::tmp< Foam::Field< Type > > interpolateToTarget (const Field< Type > &fld, const CombineOp &cop, const UList< Type > &defaultValues) const
 
template<class Type , class CombineOp >
Foam::tmp< Foam::Field< Type > > interpolateToTarget (const tmp< Field< Type >> &tFld, const CombineOp &cop, const UList< Type > &defaultValues) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > interpolateToSource (const Field< Type > &fld, const UList< Type > &defaultValues) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > interpolateToSource (const tmp< Field< Type >> &tFld, const UList< Type > &defaultValues) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > interpolateToTarget (const Field< Type > &fld, const UList< Type > &defaultValues) const
 
template<class Type >
Foam::tmp< Foam::Field< Type > > interpolateToTarget (const tmp< Field< Type >> &tFld, const UList< Type > &defaultValues) const
 

Static Public Member Functions

static autoPtr< AMIInterpolationNew (const word &modelName, const dictionary &dict, const bool reverseTarget=false)
 
static autoPtr< AMIInterpolationNew (const word &modelName, const bool requireMatch=true, const bool reverseTarget=false, const scalar lowWeightCorrection=-1)
 

Static Public Attributes

static bool cacheIntersections_ = false
 

Protected Types

typedef treeDataPrimitivePatch< primitivePatchtreeType
 

Protected Member Functions

void operator= (const AMIInterpolation &)=delete
 
autoPtr< indexedOctree< treeType > > createTree (const primitivePatch &patch) const
 
label calcDistribution (const primitivePatch &srcPatch, const primitivePatch &tgtPatch) const
 
void projectPointsToSurface (const searchableSurface &surf, pointField &pts) const
 
const primitivePatchsrcPatch0 () const
 
const primitivePatchtgtPatch0 () const
 

Static Protected Member Functions

static void normaliseWeights (const scalarList &patchAreas, const word &patchName, const labelListList &addr, scalarListList &wght, scalarField &wghtSum, const bool conformal, const bool output, const scalar lowWeightTol)
 
static void agglomerate (const autoPtr< mapDistribute > &targetMap, const scalarList &fineSrcMagSf, const labelListList &fineSrcAddress, const scalarListList &fineSrcWeights, const labelList &sourceRestrictAddressing, const labelList &targetRestrictAddressing, scalarList &srcMagSf, labelListList &srcAddress, scalarListList &srcWeights, scalarField &srcWeightsSum, autoPtr< mapDistribute > &tgtMap)
 

Protected Attributes

bool requireMatch_
 
const bool reverseTarget_
 
const scalar lowWeightCorrection_
 
label singlePatchProc_
 
scalarList srcMagSf_
 
labelListList srcAddress_
 
scalarListList srcWeights_
 
scalarField srcWeightsSum_
 
pointListList srcCentroids_
 
pointField srcPatchPts_
 
refPtr< primitivePatchtsrcPatch0_
 
autoPtr< mapDistributesrcMapPtr_
 
scalarList tgtMagSf_
 
labelListList tgtAddress_
 
scalarListList tgtWeights_
 
scalarField tgtWeightsSum_
 
pointListList tgtCentroids_
 
pointField tgtPatchPts_
 
refPtr< primitivePatchttgtPatch0_
 
autoPtr< mapDistributetgtMapPtr_
 
bool upToDate_
 

Detailed Description

Interpolation class dealing with transfer of data between two primitive patches with an arbitrary mesh interface (AMI).

Based on the algorithm given in:

Conservative interpolation between volume meshes by local Galerkin projection, Farrell PE and Maddison JR, 2011, Comput. Methods Appl. Mech Engrg, Volume 200, Issues 1-4, pp 89-100

Interpolation requires that the two patches should have opposite orientations (opposite normals). The 'reverseTarget' flag can be used to reverse the orientation of the target patch.

Source files

Definition at line 75 of file AMIInterpolation.H.

Member Typedef Documentation

◆ treeType

Definition at line 87 of file AMIInterpolation.H.

Constructor & Destructor Documentation

◆ AMIInterpolation() [1/4]

AMIInterpolation ( const dictionary dict,
const bool  reverseTarget = false 
)

Definition at line 543 of file AMIInterpolation.C.

◆ AMIInterpolation() [2/4]

AMIInterpolation ( const bool  requireMatch = true,
const bool  reverseTarget = false,
const scalar  lowWeightCorrection = -1 
)

Definition at line 569 of file AMIInterpolation.C.

◆ AMIInterpolation() [3/4]

AMIInterpolation ( const AMIInterpolation fineAMI,
const labelList sourceRestrictAddressing,
const labelList neighbourRestrictAddressing 
)

◆ AMIInterpolation() [4/4]

Definition at line 702 of file AMIInterpolation.C.

◆ ~AMIInterpolation()

virtual ~AMIInterpolation ( )
virtualdefault

Member Function Documentation

◆ operator=()

void operator= ( const AMIInterpolation )
protecteddelete

◆ createTree()

Foam::autoPtr< Foam::indexedOctree< Foam::AMIInterpolation::treeType > > createTree ( const primitivePatch patch) const
protected

Definition at line 46 of file AMIInterpolation.C.

References boundBox::inflate(), Foam::New(), and Foam::foamVersion::patch.

Here is the call graph for this function:

◆ calcDistribution()

Foam::label calcDistribution ( const primitivePatch srcPatch,
const primitivePatch tgtPatch 
) const
protected

Definition at line 70 of file AMIInterpolation.C.

References Foam::expressions::patchExpr::debug, Foam::endl(), InfoInFunction, Foam::sum(), and Foam::Zero.

Here is the call graph for this function:

◆ projectPointsToSurface()

void projectPointsToSurface ( const searchableSurface surf,
pointField pts 
) const
protected

◆ srcPatch0()

const Foam::primitivePatch & srcPatch0 ( ) const
inlineprotected

Definition at line 22 of file AMIInterpolationI.H.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and AMIInterpolation::tsrcPatch0_.

Here is the call graph for this function:

◆ tgtPatch0()

const Foam::primitivePatch & tgtPatch0 ( ) const
inlineprotected

Definition at line 35 of file AMIInterpolationI.H.

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

Here is the call graph for this function:

◆ normaliseWeights() [1/2]

void normaliseWeights ( const scalarList patchAreas,
const word patchName,
const labelListList addr,
scalarListList wght,
scalarField wghtSum,
const bool  conformal,
const bool  output,
const scalar  lowWeightTol 
)
staticprotected

Definition at line 161 of file AMIInterpolation.C.

References addProfiling, Foam::endl(), forAll, Foam::gAverage(), Foam::gMax(), Foam::gMin(), Foam::indent(), Foam::Info, Foam::nl, Foam::output(), Foam::returnReduce(), s, and Foam::sum().

Here is the call graph for this function:

◆ agglomerate()

void agglomerate ( const autoPtr< mapDistribute > &  targetMap,
const scalarList fineSrcMagSf,
const labelListList fineSrcAddress,
const scalarListList fineSrcWeights,
const labelList sourceRestrictAddressing,
const labelList targetRestrictAddressing,
scalarList srcMagSf,
labelListList srcAddress,
scalarListList srcWeights,
scalarField srcWeightsSum,
autoPtr< mapDistribute > &  tgtMap 
)
staticprotected

◆ TypeName()

TypeName ( "AMIInterpolation"  )

◆ declareRunTimeSelectionTable() [1/2]

declareRunTimeSelectionTable ( autoPtr  ,
AMIInterpolation  ,
dict  ,
(const dictionary &dict, const bool reverseTarget ,
(dict, reverseTarget  
)

◆ declareRunTimeSelectionTable() [2/2]

declareRunTimeSelectionTable ( autoPtr  ,
AMIInterpolation  ,
component  ,
(const bool requireMatch, const bool reverseTarget, const scalar lowWeightCorrection ,
(requireMatch, reverseTarget, lowWeightCorrection  
)

◆ New() [1/2]

Foam::autoPtr< Foam::AMIInterpolation > New ( const word modelName,
const dictionary dict,
const bool  reverseTarget = false 
)
static

Definition at line 26 of file AMIInterpolationNew.C.

References DebugInfo, dict, Foam::endl(), Foam::exit(), Foam::FatalError, and FatalErrorInLookup.

Referenced by regionModel::interRegionAMI().

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

◆ New() [2/2]

Foam::autoPtr< Foam::AMIInterpolation > New ( const word modelName,
const bool  requireMatch = true,
const bool  reverseTarget = false,
const scalar  lowWeightCorrection = -1 
)
static

Definition at line 51 of file AMIInterpolationNew.C.

References DebugInfo, Foam::endl(), Foam::exit(), Foam::FatalError, and FatalErrorInLookup.

Here is the call graph for this function:

◆ clone()

virtual autoPtr<AMIInterpolation> clone ( ) const
inlinevirtual

Reimplemented in advancingFrontAMI, faceAreaWeightAMI, nearestFaceAMI, and faceAreaWeightAMI2D.

Definition at line 334 of file AMIInterpolation.H.

References autoPtr::New().

Here is the call graph for this function:

◆ upToDate() [1/2]

bool & upToDate ( ) const
inline

Definition at line 49 of file AMIInterpolationI.H.

◆ upToDate() [2/2]

bool& upToDate ( )
inline

◆ distributed()

bool distributed ( ) const
inline

Definition at line 61 of file AMIInterpolationI.H.

◆ requireMatch()

bool requireMatch ( ) const
inline

Definition at line 67 of file AMIInterpolationI.H.

◆ setRequireMatch()

bool setRequireMatch ( const bool  flag)
inline

Definition at line 73 of file AMIInterpolationI.H.

◆ mustMatchFaces()

bool mustMatchFaces ( ) const
inline

Definition at line 80 of file AMIInterpolationI.H.

◆ reverseTarget()

bool reverseTarget ( ) const
inline

Definition at line 86 of file AMIInterpolationI.H.

◆ lowWeightCorrection()

Foam::scalar lowWeightCorrection ( ) const
inline

Definition at line 92 of file AMIInterpolationI.H.

◆ applyLowWeightCorrection()

bool applyLowWeightCorrection ( ) const
inline

Definition at line 98 of file AMIInterpolationI.H.

◆ singlePatchProc()

Foam::label singlePatchProc ( ) const
inline

Definition at line 104 of file AMIInterpolationI.H.

Referenced by AMIWeights::reportPatch().

Here is the caller graph for this function:

◆ srcMagSf() [1/2]

Foam::List< Foam::scalar > & srcMagSf ( ) const
inline

Definition at line 110 of file AMIInterpolationI.H.

Referenced by AMIInterpolation::AMIInterpolation().

Here is the caller graph for this function:

◆ srcMagSf() [2/2]

List<scalar>& srcMagSf ( )
inline

◆ srcAddress() [1/2]

Foam::labelListList & srcAddress ( ) const
inline

◆ srcAddress() [2/2]

labelListList& srcAddress ( )
inline

◆ srcWeights() [1/2]

Foam::scalarListList & srcWeights ( ) const
inline

◆ srcWeights() [2/2]

scalarListList& srcWeights ( )
inline

◆ srcWeightsSum() [1/2]

Foam::scalarField & srcWeightsSum ( ) const
inline

Definition at line 146 of file AMIInterpolationI.H.

Referenced by AMIWeights::reportPatch(), cyclicACMIPolyPatch::resetAMI(), and AMIWeights::writeWeightFields().

Here is the caller graph for this function:

◆ srcWeightsSum() [2/2]

scalarField& srcWeightsSum ( )
inline

◆ srcCentroids() [1/2]

Foam::pointListList & srcCentroids ( ) const
inline

Definition at line 158 of file AMIInterpolationI.H.

◆ srcCentroids() [2/2]

pointListList& srcCentroids ( )
inline

◆ srcMap()

const Foam::mapDistribute & srcMap ( ) const
inline

Definition at line 170 of file AMIInterpolationI.H.

Referenced by mappedPatchFieldBase< scalar >::distribute().

Here is the caller graph for this function:

◆ tgtMagSf() [1/2]

Foam::List< Foam::scalar > & tgtMagSf ( ) const
inline

Definition at line 176 of file AMIInterpolationI.H.

Referenced by AMIInterpolation::AMIInterpolation().

Here is the caller graph for this function:

◆ tgtMagSf() [2/2]

List<scalar>& tgtMagSf ( )
inline

◆ tgtAddress() [1/2]

Foam::labelListList & tgtAddress ( ) const
inline

Definition at line 188 of file AMIInterpolationI.H.

Referenced by AMIInterpolation::AMIInterpolation(), mappedPatchFieldBase< scalar >::distribute(), and AMIWeights::reportPatch().

Here is the caller graph for this function:

◆ tgtAddress() [2/2]

labelListList& tgtAddress ( )
inline

◆ tgtWeights() [1/2]

Foam::scalarListList & tgtWeights ( ) const
inline

Definition at line 200 of file AMIInterpolationI.H.

Referenced by AMIInterpolation::AMIInterpolation(), and mappedPatchFieldBase< scalar >::distribute().

Here is the caller graph for this function:

◆ tgtWeights() [2/2]

scalarListList& tgtWeights ( )
inline

◆ tgtWeightsSum() [1/2]

Foam::scalarField & tgtWeightsSum ( ) const
inline

Definition at line 212 of file AMIInterpolationI.H.

Referenced by AMIWeights::reportPatch(), cyclicACMIPolyPatch::resetAMI(), and AMIWeights::writeWeightFields().

Here is the caller graph for this function:

◆ tgtWeightsSum() [2/2]

scalarField& tgtWeightsSum ( )
inline

◆ tgtMap()

const Foam::mapDistribute & tgtMap ( ) const
inline

Definition at line 224 of file AMIInterpolationI.H.

Referenced by mappedPatchFieldBase< scalar >::distribute().

Here is the caller graph for this function:

◆ calculate()

bool calculate ( const primitivePatch srcPatch,
const primitivePatch tgtPatch,
const autoPtr< searchableSurface > &  surfPtr = nullptr 
)
virtual

◆ reset()

void reset ( autoPtr< mapDistribute > &&  srcToTgtMap,
autoPtr< mapDistribute > &&  tgtToSrcMap,
labelListList &&  srcAddress,
scalarListList &&  srcWeights,
labelListList &&  tgtAddress,
scalarListList &&  tgtWeights 
)

Definition at line 795 of file AMIInterpolation.C.

References DebugInFunction, Foam::endl(), forAll, and Foam::sum().

Here is the call graph for this function:

◆ append()

void append ( const primitivePatch srcPatch,
const primitivePatch tgtPatch 
)

Definition at line 832 of file AMIInterpolation.C.

References addProfiling, List::append(), forAll, and Foam::identity().

Here is the call graph for this function:

◆ normaliseWeights() [2/2]

void normaliseWeights ( const bool  conformal,
const bool  output 
)

Definition at line 1011 of file AMIInterpolation.C.

References Foam::output().

Here is the call graph for this function:

◆ interpolateToSource() [1/9]

void interpolateToSource ( const UList< Type > &  fld,
const CombineOp &  cop,
List< Type > &  result,
const UList< Type > &  defaultValues = UList<Type>::null() 
) const

◆ interpolateToTarget() [1/9]

void interpolateToTarget ( const UList< Type > &  fld,
const CombineOp &  cop,
List< Type > &  result,
const UList< Type > &  defaultValues = UList<Type>::null() 
) const

Definition at line 29 of file AMIInterpolationTemplates.C.

References Foam::abort(), addProfiling, mapDistribute::distribute(), Foam::FatalError, FatalErrorInFunction, fld, forAll, Foam::nl, List::setSize(), and UList::size().

Referenced by mappedPatchBase::distribute().

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

◆ interpolateToSource() [2/9]

tmp<Field<Type> > interpolateToSource ( const Field< Type > &  fld,
const CombineOp &  cop,
const UList< Type > &  defaultValues = UList< Type >::null() 
) const

◆ interpolateToSource() [3/9]

tmp<Field<Type> > interpolateToSource ( const tmp< Field< Type >> &  tFld,
const CombineOp &  cop,
const UList< Type > &  defaultValues = UList< Type >::null() 
) const

◆ interpolateToTarget() [2/9]

tmp<Field<Type> > interpolateToTarget ( const Field< Type > &  fld,
const CombineOp &  cop,
const UList< Type > &  defaultValues = UList< Type >::null() 
) const

◆ interpolateToTarget() [3/9]

tmp<Field<Type> > interpolateToTarget ( const tmp< Field< Type >> &  tFld,
const CombineOp &  cop,
const UList< Type > &  defaultValues = UList< Type >::null() 
) const

◆ interpolateToSource() [4/9]

tmp<Field<Type> > interpolateToSource ( const Field< Type > &  fld,
const UList< Type > &  defaultValues = UList< Type >::null() 
) const

◆ interpolateToSource() [5/9]

tmp<Field<Type> > interpolateToSource ( const tmp< Field< Type >> &  tFld,
const UList< Type > &  defaultValues = UList< Type >::null() 
) const

◆ interpolateToTarget() [4/9]

tmp<Field<Type> > interpolateToTarget ( const Field< Type > &  fld,
const UList< Type > &  defaultValues = UList< Type >::null() 
) const

◆ interpolateToTarget() [5/9]

tmp<Field<Type> > interpolateToTarget ( const tmp< Field< Type >> &  tFld,
const UList< Type > &  defaultValues = UList< Type >::null() 
) const

◆ srcPointFace()

Foam::label srcPointFace ( const primitivePatch srcPatch,
const primitivePatch tgtPatch,
const vector n,
const label  tgtFacei,
point tgtPoint 
) const

◆ tgtPointFace()

Foam::label tgtPointFace ( const primitivePatch srcPatch,
const primitivePatch tgtPatch,
const vector n,
const label  srcFacei,
point srcPoint 
) const

◆ checkSymmetricWeights()

bool checkSymmetricWeights ( const bool  log) const

Definition at line 1141 of file AMIInterpolation.C.

References Foam::endl(), forAll, found, Log, Foam::nl, and UPstream::parRun().

Here is the call graph for this function:

◆ writeFaceConnectivity()

void writeFaceConnectivity ( const primitivePatch srcPatch,
const primitivePatch tgtPatch,
const labelListList srcAddress 
) const

◆ write()

void write ( Ostream os) const
virtual

Reimplemented in faceAreaWeightAMI, and faceAreaWeightAMI2D.

Definition at line 1236 of file AMIInterpolation.C.

References os(), Foam::type(), and Ostream::writeEntry().

Referenced by faceAreaWeightAMI2D::write(), and faceAreaWeightAMI::write().

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

◆ interpolateToSource() [6/9]

Foam::tmp<Foam::Field<Type> > interpolateToSource ( const Field< Type > &  fld,
const CombineOp &  cop,
const UList< Type > &  defaultValues 
) const

Definition at line 201 of file AMIInterpolationTemplates.C.

References fld, Foam::New(), and Foam::Zero.

Here is the call graph for this function:

◆ interpolateToSource() [7/9]

Foam::tmp<Foam::Field<Type> > interpolateToSource ( const tmp< Field< Type >> &  tFld,
const CombineOp &  cop,
const UList< Type > &  defaultValues 
) const

Definition at line 223 of file AMIInterpolationTemplates.C.

◆ interpolateToTarget() [6/9]

Foam::tmp<Foam::Field<Type> > interpolateToTarget ( const Field< Type > &  fld,
const CombineOp &  cop,
const UList< Type > &  defaultValues 
) const

Definition at line 235 of file AMIInterpolationTemplates.C.

References fld, Foam::New(), and Foam::Zero.

Here is the call graph for this function:

◆ interpolateToTarget() [7/9]

Foam::tmp<Foam::Field<Type> > interpolateToTarget ( const tmp< Field< Type >> &  tFld,
const CombineOp &  cop,
const UList< Type > &  defaultValues 
) const

Definition at line 257 of file AMIInterpolationTemplates.C.

◆ interpolateToSource() [8/9]

Foam::tmp<Foam::Field<Type> > interpolateToSource ( const Field< Type > &  fld,
const UList< Type > &  defaultValues 
) const

Definition at line 269 of file AMIInterpolationTemplates.C.

References fld.

◆ interpolateToSource() [9/9]

Foam::tmp<Foam::Field<Type> > interpolateToSource ( const tmp< Field< Type >> &  tFld,
const UList< Type > &  defaultValues 
) const

Definition at line 280 of file AMIInterpolationTemplates.C.

◆ interpolateToTarget() [8/9]

Foam::tmp<Foam::Field<Type> > interpolateToTarget ( const Field< Type > &  fld,
const UList< Type > &  defaultValues 
) const

Definition at line 291 of file AMIInterpolationTemplates.C.

References fld.

◆ interpolateToTarget() [9/9]

Foam::tmp<Foam::Field<Type> > interpolateToTarget ( const tmp< Field< Type >> &  tFld,
const UList< Type > &  defaultValues 
) const

Definition at line 302 of file AMIInterpolationTemplates.C.

Member Data Documentation

◆ cacheIntersections_

bool cacheIntersections_ = false
static

Definition at line 81 of file AMIInterpolation.H.

◆ requireMatch_

bool requireMatch_
protected

Definition at line 93 of file AMIInterpolation.H.

Referenced by advancingFrontAMI::checkPatches().

◆ reverseTarget_

const bool reverseTarget_
protected

Definition at line 97 of file AMIInterpolation.H.

◆ lowWeightCorrection_

const scalar lowWeightCorrection_
protected

Definition at line 100 of file AMIInterpolation.H.

◆ singlePatchProc_

label singlePatchProc_
protected

Definition at line 104 of file AMIInterpolation.H.

◆ srcMagSf_

scalarList srcMagSf_
protected

Definition at line 110 of file AMIInterpolation.H.

◆ srcAddress_

labelListList srcAddress_
protected

Definition at line 113 of file AMIInterpolation.H.

◆ srcWeights_

scalarListList srcWeights_
protected

Definition at line 116 of file AMIInterpolation.H.

◆ srcWeightsSum_

scalarField srcWeightsSum_
protected

Definition at line 119 of file AMIInterpolation.H.

◆ srcCentroids_

pointListList srcCentroids_
protected

Definition at line 122 of file AMIInterpolation.H.

◆ srcPatchPts_

pointField srcPatchPts_
protected

Definition at line 126 of file AMIInterpolation.H.

◆ tsrcPatch0_

refPtr<primitivePatch> tsrcPatch0_
protected

Definition at line 129 of file AMIInterpolation.H.

Referenced by advancingFrontAMI::srcPatch(), and AMIInterpolation::srcPatch0().

◆ srcMapPtr_

autoPtr<mapDistribute> srcMapPtr_
protected

Definition at line 132 of file AMIInterpolation.H.

Referenced by AMIInterpolation::AMIInterpolation().

◆ tgtMagSf_

scalarList tgtMagSf_
protected

Definition at line 139 of file AMIInterpolation.H.

◆ tgtAddress_

labelListList tgtAddress_
protected

Definition at line 142 of file AMIInterpolation.H.

◆ tgtWeights_

scalarListList tgtWeights_
protected

Definition at line 145 of file AMIInterpolation.H.

◆ tgtWeightsSum_

scalarField tgtWeightsSum_
protected

Definition at line 148 of file AMIInterpolation.H.

◆ tgtCentroids_

pointListList tgtCentroids_
protected

Definition at line 151 of file AMIInterpolation.H.

◆ tgtPatchPts_

pointField tgtPatchPts_
protected

Definition at line 155 of file AMIInterpolation.H.

◆ ttgtPatch0_

refPtr<primitivePatch> ttgtPatch0_
protected

Definition at line 158 of file AMIInterpolation.H.

◆ tgtMapPtr_

autoPtr<mapDistribute> tgtMapPtr_
protected

Definition at line 161 of file AMIInterpolation.H.

Referenced by AMIInterpolation::AMIInterpolation().

◆ upToDate_

bool upToDate_
protected

Definition at line 164 of file AMIInterpolation.H.


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