AMIInterpolation< SourcePatch, TargetPatch > Class Template Reference

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

Inheritance diagram for AMIInterpolation< SourcePatch, TargetPatch >:
[legend]
Collaboration diagram for AMIInterpolation< SourcePatch, TargetPatch >:
[legend]

Public Types

enum  interpolationMethod { imDirect, imMapNearest, imFaceAreaWeight, imPartialFaceAreaWeight }
 Enumeration specifying interpolation method. More...
 
typedef SourcePatch sourcePatchType
 
typedef TargetPatch targetPatchType
 

Public Member Functions

 AMIInterpolation (const SourcePatch &srcPatch, const TargetPatch &tgtPatch, const faceAreaIntersect::triangulationMode &triMode, const bool requireMatch=true, const interpolationMethod &method=imFaceAreaWeight, const scalar lowWeightCorrection=-1, const bool reverseTarget=false)
 Construct from components. More...
 
 AMIInterpolation (const SourcePatch &srcPatch, const TargetPatch &tgtPatch, const faceAreaIntersect::triangulationMode &triMode, const bool requireMatch=true, const word &methodName=interpolationMethodNames_[imFaceAreaWeight], const scalar lowWeightCorrection=-1, const bool reverseTarget=false)
 Construct from components. More...
 
 AMIInterpolation (const SourcePatch &srcPatch, const TargetPatch &tgtPatch, const autoPtr< searchableSurface > &surf, const faceAreaIntersect::triangulationMode &triMode, const bool requireMatch=true, const interpolationMethod &method=imFaceAreaWeight, const scalar lowWeightCorrection=-1, const bool reverseTarget=false)
 Construct from components, with projection surface. More...
 
 AMIInterpolation (const SourcePatch &srcPatch, const TargetPatch &tgtPatch, const autoPtr< searchableSurface > &surf, const faceAreaIntersect::triangulationMode &triMode, const bool requireMatch=true, const word &methodName=interpolationMethodNames_[imFaceAreaWeight], const scalar lowWeightCorrection=-1, const bool reverseTarget=false)
 Construct from components, with projection surface. More...
 
 AMIInterpolation (const AMIInterpolation< SourcePatch, TargetPatch > &fineAMI, const labelList &sourceRestrictAddressing, const labelList &neighbourRestrictAddressing)
 Construct from agglomeration of AMIInterpolation. Agglomeration. More...
 
 ~AMIInterpolation ()
 Destructor. More...
 
label singlePatchProc () const
 
scalar lowWeightCorrection () const
 Threshold weight below which interpolation is deactivated. More...
 
bool applyLowWeightCorrection () const
 Return true if employing a 'lowWeightCorrection'. More...
 
const List< scalar > & srcMagSf () const
 Return const access to source patch face areas. More...
 
List< scalar > & srcMagSf ()
 Return access to source patch face areas. More...
 
const labelListListsrcAddress () const
 Return const access to source patch addressing. More...
 
labelListListsrcAddress ()
 Return access to source patch addressing. More...
 
const scalarListListsrcWeights () const
 Return const access to source patch weights. More...
 
scalarListListsrcWeights ()
 Return access to source patch weights. More...
 
const scalarFieldsrcWeightsSum () const
 
scalarFieldsrcWeightsSum ()
 
const mapDistributesrcMap () const
 
const List< scalar > & tgtMagSf () const
 Return const access to target patch face areas. More...
 
List< scalar > & tgtMagSf ()
 Return access to target patch face areas. More...
 
const labelListListtgtAddress () const
 Return const access to target patch addressing. More...
 
labelListListtgtAddress ()
 Return access to target patch addressing. More...
 
const scalarListListtgtWeights () const
 Return const access to target patch weights. More...
 
scalarListListtgtWeights ()
 Return access to target patch weights. More...
 
const scalarFieldtgtWeightsSum () const
 
scalarFieldtgtWeightsSum ()
 
const mapDistributetgtMap () const
 
void update (const SourcePatch &srcPatch, const TargetPatch &tgtPatch)
 Update addressing and weights. More...
 
void append (const SourcePatch &srcPatch, const TargetPatch &tgtPatch)
 Append additional addressing and weights. More...
 
void normaliseWeights (const bool conformal, const bool output)
 Normalise the weights. More...
 
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
 Interpolate from target to source with supplied op. More...
 
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
 Interpolate from target tmp field to source with supplied op. More...
 
template<class Type , class CombineOp >
tmp< Field< Type > > interpolateToTarget (const Field< Type > &fld, const CombineOp &cop, const UList< Type > &defaultValues=UList< Type >::null()) const
 Interpolate from source to target with supplied op. More...
 
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
 Interpolate from source tmp field to target with supplied op. More...
 
template<class Type >
tmp< Field< Type > > interpolateToSource (const Field< Type > &fld, const UList< Type > &defaultValues=UList< Type >::null()) const
 Interpolate from target to source. More...
 
template<class Type >
tmp< Field< Type > > interpolateToSource (const tmp< Field< Type >> &tFld, const UList< Type > &defaultValues=UList< Type >::null()) const
 Interpolate from target tmp field. More...
 
template<class Type >
tmp< Field< Type > > interpolateToTarget (const Field< Type > &fld, const UList< Type > &defaultValues=UList< Type >::null()) const
 Interpolate from source to target. More...
 
template<class Type >
tmp< Field< Type > > interpolateToTarget (const tmp< Field< Type >> &tFld, const UList< Type > &defaultValues=UList< Type >::null()) const
 Interpolate from source tmp field. More...
 
label srcPointFace (const SourcePatch &srcPatch, const TargetPatch &tgtPatch, const vector &n, const label tgtFacei, point &tgtPoint) const
 Return source patch face index of point on target patch face. More...
 
label tgtPointFace (const SourcePatch &srcPatch, const TargetPatch &tgtPatch, const vector &n, const label srcFacei, point &srcPoint) const
 Return target patch face index of point on source patch face. More...
 
void writeFaceConnectivity (const SourcePatch &srcPatch, const TargetPatch &tgtPatch, const labelListList &srcAddress) const
 Write face connectivity as OBJ file. More...
 
template<class Patch >
Foam::tmp< Foam::scalarFieldpatchMagSf (const Patch &patch, const faceAreaIntersect::triangulationMode triMode)
 
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

template<class Patch >
static tmp< scalarFieldpatchMagSf (const Patch &patch, const faceAreaIntersect::triangulationMode triMode)
 Calculate the patch face magnitudes for the given tri-mode. More...
 

Static Public Attributes

static const Enum< interpolationMethodinterpolationMethodNames_
 
static bool cacheIntersections_
 

Detailed Description

template<class SourcePatch, class TargetPatch>
class Foam::AMIInterpolation< SourcePatch, TargetPatch >

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 81 of file AMIInterpolation.H.

Member Typedef Documentation

◆ sourcePatchType

typedef SourcePatch sourcePatchType

Definition at line 352 of file AMIInterpolation.H.

◆ targetPatchType

typedef TargetPatch targetPatchType

Definition at line 355 of file AMIInterpolation.H.

Member Enumeration Documentation

◆ interpolationMethod

Enumeration specifying interpolation method.

Enumerator
imDirect 
imMapNearest 
imFaceAreaWeight 
imPartialFaceAreaWeight 

Definition at line 90 of file AMIInterpolation.H.

Constructor & Destructor Documentation

◆ AMIInterpolation() [1/5]

AMIInterpolation ( const SourcePatch &  srcPatch,
const TargetPatch &  tgtPatch,
const faceAreaIntersect::triangulationMode triMode,
const bool  requireMatch = true,
const interpolationMethod method = imFaceAreaWeight,
const scalar  lowWeightCorrection = -1,
const bool  reverseTarget = false 
)

Construct from components.

Definition at line 600 of file AMIInterpolation.C.

References update().

Here is the call graph for this function:

◆ AMIInterpolation() [2/5]

AMIInterpolation ( const SourcePatch &  srcPatch,
const TargetPatch &  tgtPatch,
const faceAreaIntersect::triangulationMode triMode,
const bool  requireMatch = true,
const word methodName = interpolationMethodNames_[imFaceAreaWeight],
const scalar  lowWeightCorrection = -1,
const bool  reverseTarget = false 
)

Construct from components.

Definition at line 633 of file AMIInterpolation.C.

References update().

Here is the call graph for this function:

◆ AMIInterpolation() [3/5]

AMIInterpolation ( const SourcePatch &  srcPatch,
const TargetPatch &  tgtPatch,
const autoPtr< searchableSurface > &  surf,
const faceAreaIntersect::triangulationMode triMode,
const bool  requireMatch = true,
const interpolationMethod method = imFaceAreaWeight,
const scalar  lowWeightCorrection = -1,
const bool  reverseTarget = false 
)

Construct from components, with projection surface.

Definition at line 666 of file AMIInterpolation.C.

◆ AMIInterpolation() [4/5]

AMIInterpolation ( const SourcePatch &  srcPatch,
const TargetPatch &  tgtPatch,
const autoPtr< searchableSurface > &  surf,
const faceAreaIntersect::triangulationMode triMode,
const bool  requireMatch = true,
const word methodName = interpolationMethodNames_[imFaceAreaWeight],
const scalar  lowWeightCorrection = -1,
const bool  reverseTarget = false 
)

Construct from components, with projection surface.

Definition at line 700 of file AMIInterpolation.C.

◆ AMIInterpolation() [5/5]

AMIInterpolation ( const AMIInterpolation< SourcePatch, TargetPatch > &  fineAMI,
const labelList sourceRestrictAddressing,
const labelList neighbourRestrictAddressing 
)

◆ ~AMIInterpolation()

Destructor.

Definition at line 840 of file AMIInterpolation.C.

Member Function Documentation

◆ patchMagSf() [1/2]

static tmp<scalarField> patchMagSf ( const Patch &  patch,
const faceAreaIntersect::triangulationMode  triMode 
)
static

Calculate the patch face magnitudes for the given tri-mode.

◆ singlePatchProc()

Foam::label singlePatchProc ( ) const
inline

Set to -1, or the processor holding all faces (both sides) of the AMI

Definition at line 31 of file AMIInterpolationI.H.

Referenced by AMIWeights::reportPatch().

Here is the caller graph for this function:

◆ lowWeightCorrection()

Foam::scalar lowWeightCorrection ( ) const
inline

Threshold weight below which interpolation is deactivated.

Definition at line 39 of file AMIInterpolationI.H.

◆ applyLowWeightCorrection()

bool applyLowWeightCorrection ( ) const
inline

Return true if employing a 'lowWeightCorrection'.

Definition at line 48 of file AMIInterpolationI.H.

◆ srcMagSf() [1/2]

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

Return const access to source patch face areas.

Definition at line 56 of file AMIInterpolationI.H.

Referenced by AMIInterpolation< SourcePatch, TargetPatch >::AMIInterpolation().

Here is the caller graph for this function:

◆ srcMagSf() [2/2]

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

Return access to source patch face areas.

Definition at line 64 of file AMIInterpolationI.H.

◆ srcAddress() [1/2]

const Foam::labelListList & srcAddress ( ) const
inline

Return const access to source patch addressing.

Definition at line 72 of file AMIInterpolationI.H.

Referenced by AMIInterpolation< SourcePatch, TargetPatch >::AMIInterpolation(), mapNearestAMI< SourcePatch, TargetPatch >::normaliseWeights(), and AMIWeights::reportPatch().

Here is the caller graph for this function:

◆ srcAddress() [2/2]

Foam::labelListList & srcAddress ( )
inline

Return access to source patch addressing.

Definition at line 80 of file AMIInterpolationI.H.

◆ srcWeights() [1/2]

const Foam::scalarListList & srcWeights ( ) const
inline

Return const access to source patch weights.

Definition at line 88 of file AMIInterpolationI.H.

Referenced by AMIInterpolation< SourcePatch, TargetPatch >::AMIInterpolation(), mapNearestAMI< SourcePatch, TargetPatch >::normaliseWeights(), and cyclicACMIPolyPatch::resetAMI().

Here is the caller graph for this function:

◆ srcWeights() [2/2]

Foam::scalarListList & srcWeights ( )
inline

Return access to source patch weights.

Definition at line 96 of file AMIInterpolationI.H.

◆ srcWeightsSum() [1/2]

const Foam::scalarField & srcWeightsSum ( ) const
inline

Return const access to normalisation factor of source patch weights (i.e. the sum before normalisation)

Definition at line 104 of file AMIInterpolationI.H.

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

Here is the caller graph for this function:

◆ srcWeightsSum() [2/2]

Foam::scalarField & srcWeightsSum ( )
inline

Return access to normalisation factor of source patch weights (i.e. the sum before normalisation)

Definition at line 112 of file AMIInterpolationI.H.

◆ srcMap()

const Foam::mapDistribute & srcMap ( ) const
inline

Source map pointer - valid only if singlePatchProc = -1 This gets source data into a form to be consumed by tgtAddress, tgtWeights

Definition at line 120 of file AMIInterpolationI.H.

◆ tgtMagSf() [1/2]

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

Return const access to target patch face areas.

Definition at line 128 of file AMIInterpolationI.H.

Referenced by AMIInterpolation< SourcePatch, TargetPatch >::AMIInterpolation(), and mapNearestAMI< SourcePatch, TargetPatch >::normaliseWeights().

Here is the caller graph for this function:

◆ tgtMagSf() [2/2]

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

Return access to target patch face areas.

Definition at line 136 of file AMIInterpolationI.H.

◆ tgtAddress() [1/2]

const Foam::labelListList & tgtAddress ( ) const
inline

Return const access to target patch addressing.

Definition at line 144 of file AMIInterpolationI.H.

Referenced by AMIInterpolation< SourcePatch, TargetPatch >::AMIInterpolation(), mapNearestAMI< SourcePatch, TargetPatch >::normaliseWeights(), and AMIWeights::reportPatch().

Here is the caller graph for this function:

◆ tgtAddress() [2/2]

Foam::labelListList & tgtAddress ( )
inline

Return access to target patch addressing.

Definition at line 152 of file AMIInterpolationI.H.

◆ tgtWeights() [1/2]

const Foam::scalarListList & tgtWeights ( ) const
inline

Return const access to target patch weights.

Definition at line 160 of file AMIInterpolationI.H.

Referenced by AMIInterpolation< SourcePatch, TargetPatch >::AMIInterpolation(), mapNearestAMI< SourcePatch, TargetPatch >::normaliseWeights(), and cyclicACMIPolyPatch::resetAMI().

Here is the caller graph for this function:

◆ tgtWeights() [2/2]

Foam::scalarListList & tgtWeights ( )
inline

Return access to target patch weights.

Definition at line 168 of file AMIInterpolationI.H.

◆ tgtWeightsSum() [1/2]

const Foam::scalarField & tgtWeightsSum ( ) const
inline

Return const access to normalisation factor of target patch weights (i.e. the sum before normalisation)

Definition at line 176 of file AMIInterpolationI.H.

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

Here is the caller graph for this function:

◆ tgtWeightsSum() [2/2]

Foam::scalarField & tgtWeightsSum ( )
inline

Return access to normalisation factor of target patch weights (i.e. the sum before normalisation)

Definition at line 184 of file AMIInterpolationI.H.

◆ tgtMap()

const Foam::mapDistribute & tgtMap ( ) const
inline

Target map pointer - valid only if singlePatchProc=-1. This gets target data into a form to be consumed by srcAddress, srcWeights

Definition at line 192 of file AMIInterpolationI.H.

◆ update()

void update ( const SourcePatch &  srcPatch,
const TargetPatch &  tgtPatch 
)

Update addressing and weights.

Definition at line 848 of file AMIInterpolation.C.

References addProfiling, mapDistributeBase::constructMap(), Foam::expressions::patchExpr::debug, DebugInfo, Foam::endl(), Foam::gSum(), Foam::indent(), Foam::Info, Foam::nl, Foam::returnReduce(), and mapDistributeBase::subMap().

Here is the call graph for this function:

◆ append()

void append ( const SourcePatch &  srcPatch,
const TargetPatch &  tgtPatch 
)

Append additional addressing and weights.

Definition at line 1061 of file AMIInterpolation.C.

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

Here is the call graph for this function:

◆ normaliseWeights()

void normaliseWeights ( const bool  conformal,
const bool  output 
)

Normalise the weights.

Definition at line 1253 of file AMIInterpolation.C.

◆ interpolateToSource() [1/9]

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

Interpolate from target to source with supplied op to combine existing value with remote value and weight

Definition at line 1374 of file AMIInterpolation.C.

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

Referenced by mappedPatchBase::distribute(), regionModel::mapRegionPatchField(), and regionModel::mapRegionPatchInternalField().

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

◆ interpolateToTarget() [1/9]

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

Interpolate from source to target with supplied op to combine existing value with remote value and weight

Definition at line 1287 of file AMIInterpolation.C.

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

Here is the call 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

Interpolate from target to source with supplied op.

◆ interpolateToSource() [3/9]

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

Interpolate from target tmp field to source with supplied op.

◆ interpolateToTarget() [2/9]

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

Interpolate from source to target with supplied op.

◆ interpolateToTarget() [3/9]

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

Interpolate from source tmp field to target with supplied op.

◆ interpolateToSource() [4/9]

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

Interpolate from target to source.

◆ interpolateToSource() [5/9]

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

Interpolate from target tmp field.

◆ interpolateToTarget() [4/9]

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

Interpolate from source to target.

◆ interpolateToTarget() [5/9]

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

Interpolate from source tmp field.

◆ srcPointFace()

Foam::label srcPointFace ( const SourcePatch &  srcPatch,
const TargetPatch &  tgtPatch,
const vector n,
const label  tgtFacei,
point tgtPoint 
) const

Return source patch face index of point on target patch face.

Definition at line 1602 of file AMIInterpolation.C.

References PointHit< Point >::distance(), PointHit< Point >::eligibleMiss(), f(), PointHit< Point >::hit(), n, and PointHit< Point >::setDistance().

Here is the call graph for this function:

◆ tgtPointFace()

Foam::label tgtPointFace ( const SourcePatch &  srcPatch,
const TargetPatch &  tgtPatch,
const vector n,
const label  srcFacei,
point srcPoint 
) const

Return target patch face index of point on source patch face.

Definition at line 1650 of file AMIInterpolation.C.

References PointHit< Point >::distance(), PointHit< Point >::eligibleMiss(), f(), PointHit< Point >::hit(), n, and PointHit< Point >::setDistance().

Here is the call graph for this function:

◆ writeFaceConnectivity()

void writeFaceConnectivity ( const SourcePatch &  srcPatch,
const TargetPatch &  tgtPatch,
const labelListList srcAddress 
) const

Write face connectivity as OBJ file.

Definition at line 1698 of file AMIInterpolation.C.

References Foam::endl(), forAll, Foam::name(), and Foam::meshTools::writeOBJ().

Here is the call graph for this function:

◆ patchMagSf() [2/2]

Foam::tmp<Foam::scalarField> patchMagSf ( const Patch &  patch,
const faceAreaIntersect::triangulationMode  triMode 
)

Definition at line 60 of file AMIInterpolation.C.

References forAll, Foam::foamVersion::patch, tmp< T >::ref(), and Foam::Zero.

Here is the call 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 1462 of file AMIInterpolation.C.

References fld, tmp< T >::ref(), 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 1493 of file AMIInterpolation.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 1507 of file AMIInterpolation.C.

References fld, tmp< T >::ref(), 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 1538 of file AMIInterpolation.C.

◆ interpolateToSource() [8/9]

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

Definition at line 1552 of file AMIInterpolation.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 1565 of file AMIInterpolation.C.

◆ interpolateToTarget() [8/9]

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

Definition at line 1578 of file AMIInterpolation.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 1591 of file AMIInterpolation.C.

Member Data Documentation

◆ interpolationMethodNames_

const Foam::Enum< typename Foam::AMIInterpolation< SourcePatch, TargetPatch >::interpolationMethod > interpolationMethodNames_
static

Definition at line 98 of file AMIInterpolation.H.

Referenced by meshToMesh::meshToMesh(), and cyclicAMIPolyPatch::write().

◆ cacheIntersections_

bool cacheIntersections_
static
Initial value:
=
false

Definition at line 100 of file AMIInterpolation.H.


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