meshToMesh0 Class Reference

Serial mesh to mesh interpolation class. More...

Classes

class  patchFieldInterpolator
 Patch-field interpolation class. More...
 

Public Types

enum  order { MAP , INTERPOLATE , CELL_POINT_INTERPOLATE , CELL_VOLUME_WEIGHT }
 Enumeration specifying required accuracy. More...
 

Public Member Functions

 ClassName ("meshToMesh0")
 
 meshToMesh0 (const fvMesh &fromMesh, const fvMesh &toMesh, const HashTable< word > &patchMap, const wordList &cuttingPatchNames)
 Construct from the two meshes, the patch name map for the patches. More...
 
 meshToMesh0 (const fvMesh &fromMesh, const fvMesh &toMesh)
 Construct from the two meshes assuming there is an exact mapping. More...
 
 ~meshToMesh0 ()
 Destructor. More...
 
const fvMeshfromMesh () const
 
const fvMeshtoMesh () const
 
const labelListcellAddressing () const
 From toMesh cells to fromMesh cells. More...
 
scalar V () const
 Overlap volume. More...
 
template<class Type >
void mapField (Field< Type > &, const Field< Type > &, const labelList &adr) const
 Map field. More...
 
template<class Type >
void interpolateField (Field< Type > &, const VolField< Type > &, const labelList &adr, const scalarListList &weights) const
 Interpolate field using inverse-distance weights. More...
 
template<class Type >
void interpolateField (Field< Type > &, const VolField< Type > &, const labelListList &adr, const scalarListList &weights) const
 Interpolate field using inverse-volume weights. More...
 
template<class Type >
void interpolateField (Field< Type > &, const VolField< Type > &, const labelList &adr, const vectorField &centres) const
 Interpolate field using cell-point interpolation. More...
 
template<class Type >
void interpolateInternalField (Field< Type > &, const VolField< Type > &, order=INTERPOLATE) const
 Interpolate internal volume field. More...
 
template<class Type >
void interpolateInternalField (Field< Type > &, const tmp< VolField< Type >> &, order=INTERPOLATE) const
 
template<class Type >
void interpolate (VolField< Type > &, const VolField< Type > &, order=INTERPOLATE) const
 Interpolate volume field. More...
 
template<class Type >
void interpolate (VolField< Type > &, const tmp< VolField< Type >> &, order=INTERPOLATE) const
 
template<class Type >
tmp< VolField< Type > > interpolate (const VolField< Type > &, order=INTERPOLATE) const
 Interpolate volume field. More...
 
template<class Type >
tmp< VolField< Type > > interpolate (const tmp< VolField< Type >> &, order=INTERPOLATE) const
 

Detailed Description

Serial mesh to mesh interpolation class.

Source files

Definition at line 60 of file meshToMesh0.H.

Member Enumeration Documentation

◆ order

enum order

Enumeration specifying required accuracy.

Enumerator
MAP 
INTERPOLATE 
CELL_POINT_INTERPOLATE 
CELL_VOLUME_WEIGHT 

Definition at line 143 of file meshToMesh0.H.

Constructor & Destructor Documentation

◆ meshToMesh0() [1/2]

meshToMesh0 ( const fvMesh fromMesh,
const fvMesh toMesh,
const HashTable< word > &  patchMap,
const wordList cuttingPatchNames 
)

Construct from the two meshes, the patch name map for the patches.

to be interpolated and the names of the toMesh-patches which cut the fromMesh

◆ meshToMesh0() [2/2]

meshToMesh0 ( const fvMesh fromMesh,
const fvMesh toMesh 
)

Construct from the two meshes assuming there is an exact mapping.

between the patches

◆ ~meshToMesh0()

Destructor.

Member Function Documentation

◆ ClassName()

ClassName ( "meshToMesh0"  )

◆ fromMesh()

const fvMesh& fromMesh ( ) const
inline

Definition at line 230 of file meshToMesh0.H.

Referenced by Foam::MapConsistentVolFields(), and Foam::MapVolFields().

Here is the caller graph for this function:

◆ toMesh()

const fvMesh& toMesh ( ) const
inline

Definition at line 235 of file meshToMesh0.H.

Referenced by Foam::MapConsistentVolFields(), Foam::MapLagrangianFields(), and Foam::MapVolFields().

Here is the caller graph for this function:

◆ cellAddressing()

const labelList& cellAddressing ( ) const
inline

From toMesh cells to fromMesh cells.

Definition at line 241 of file meshToMesh0.H.

◆ V()

scalar V ( ) const
inline

Overlap volume.

Definition at line 247 of file meshToMesh0.H.

◆ mapField()

void mapField ( Field< Type > &  ,
const Field< Type > &  ,
const labelList adr 
) const

Map field.

◆ interpolateField() [1/3]

void interpolateField ( Field< Type > &  ,
const VolField< Type > &  ,
const labelList adr,
const scalarListList weights 
) const

Interpolate field using inverse-distance weights.

◆ interpolateField() [2/3]

void interpolateField ( Field< Type > &  ,
const VolField< Type > &  ,
const labelListList adr,
const scalarListList weights 
) const

Interpolate field using inverse-volume weights.

◆ interpolateField() [3/3]

void interpolateField ( Field< Type > &  ,
const VolField< Type > &  ,
const labelList adr,
const vectorField centres 
) const

Interpolate field using cell-point interpolation.

◆ interpolateInternalField() [1/2]

void interpolateInternalField ( Field< Type > &  ,
const VolField< Type > &  ,
order  = INTERPOLATE 
) const

Interpolate internal volume field.

◆ interpolateInternalField() [2/2]

void interpolateInternalField ( Field< Type > &  ,
const tmp< VolField< Type >> &  ,
order  = INTERPOLATE 
) const

◆ interpolate() [1/4]

void interpolate ( VolField< Type > &  ,
const VolField< Type > &  ,
order  = INTERPOLATE 
) const

Interpolate volume field.

Referenced by Foam::MapConsistentVolFields(), and Foam::MapVolFields().

Here is the caller graph for this function:

◆ interpolate() [2/4]

void interpolate ( VolField< Type > &  ,
const tmp< VolField< Type >> &  ,
order  = INTERPOLATE 
) const

◆ interpolate() [3/4]

tmp<VolField<Type> > interpolate ( const VolField< Type > &  ,
order  = INTERPOLATE 
) const

Interpolate volume field.

◆ interpolate() [4/4]

tmp<VolField<Type> > interpolate ( const tmp< VolField< Type >> &  ,
order  = INTERPOLATE 
) const

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