fvMeshToFvMesh Class Reference
Inheritance diagram for fvMeshToFvMesh:
Collaboration diagram for fvMeshToFvMesh:

Public Member Functions

 TypeName ("fvMeshToFvMesh")
 Run-time type information. More...
 
 fvMeshToFvMesh (const fvMesh &srcMesh, const fvMesh &tgtMesh, const word &engineType, const HashTable< word > &patchMap=NullObjectRef< HashTable< word >>())
 Construct from source and target meshes. If a patchMap is supplied,. More...
 
virtual ~fvMeshToFvMesh ()
 Destructor. More...
 
template<class Type >
tmp< VolField< Type > > srcToTgt (const VolField< Type > &srcFld) const
 Interpolate a source vol field to the target with no left. More...
 
template<class Type >
tmp< VolField< Type > > srcToTgt (const VolField< Type > &srcFld, const VolField< Type > &leftOverTgtFld, const UList< wordRe > &tgtCuttingPatches) const
 Interpolate a source vol field to the target with left over. More...
 
template<class Type >
tmp< VolInternalField< Type > > srcToTgt (const VolInternalField< Type > &srcFld) const
 Interpolate a source vol internal field to the target with no. More...
 
template<class Type >
tmp< VolInternalField< Type > > srcToTgt (const VolInternalField< Type > &srcFld, const VolInternalField< Type > &leftOverTgtFld) const
 Interpolate a source vol internal field to the target with left. More...
 
template<class Type >
tmp< SurfaceFieldBoundary< Type > > srcToTgt (const SurfaceFieldBoundary< Type > &srcFld) const
 ... More...
 
template<class Type >
Foam::tmp< Foam::VolField< Type > > srcToTgt (const VolField< Type > &srcFld) const
 
template<class Type >
Foam::tmp< Foam::VolField< Type > > srcToTgt (const VolField< Type > &srcFld, const VolField< Type > &leftOverTgtFld, const UList< wordRe > &tgtCuttingPatchNames) const
 
template<class Type >
Foam::tmp< Foam::VolInternalField< Type > > srcToTgt (const VolInternalField< Type > &srcFld) const
 
template<class Type >
Foam::tmp< Foam::VolInternalField< Type > > srcToTgt (const VolInternalField< Type > &srcFld, const VolInternalField< Type > &leftOverTgtFld) const
 
template<class Type >
Foam::tmp< Foam::fvMeshToFvMesh::SurfaceFieldBoundary< Type > > srcToTgt (const SurfaceFieldBoundary< Type > &srcBfld) const
 
- Public Member Functions inherited from meshToMesh
 TypeName ("meshToMesh")
 Run-time type information. More...
 
 meshToMesh (const polyMesh &srcMesh, const polyMesh &tgtMesh, const word &engineType, const HashTable< word > &patchMap=NullObjectRef< HashTable< word >>())
 Construct from source and target meshes. If a patchMap is supplied,. More...
 
 meshToMesh (const meshToMesh &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~meshToMesh ()
 Destructor. More...
 
const polyMeshsrcMesh () const
 Return const access to the source mesh. More...
 
const polyMeshtgtMesh () const
 Return const access to the target mesh. More...
 
bool consistent () const
 Is the interpolation between consistent meshes? I.e., are all. More...
 
remote srcToTgtPoint (const label srcCelli, const point &p) const
 Find the target processor and cell associated with a point in a. More...
 
void operator= (const meshToMesh &)=delete
 Disallow default bitwise assignment. More...
 

Additional Inherited Members

- Protected Member Functions inherited from meshToMesh
const cellsToCellscellsInterpolation () const
 Return the interpolation engine between source and target cells. More...
 
const cellsToCellsStabilisationsrcCellsStabilisation () const
 Return the stabilisation engine for the source cells. More...
 
const cellsToCellsStabilisationtgtCellsStabilisation () const
 Return the stabilisation engine for the target cells. More...
 
const List< labelPair > & patchIndices () const
 Return the list of corresponding source and target patch indices. More...
 
const patchToPatchpatchInterpolation (const label i) const
 Return the interpolation engine between a source and a target. More...
 
const patchToPatchStabilisationsrcPatchStabilisation (const label i) const
 Return the stabilisation engine for a source patch. More...
 
const patchToPatchStabilisationtgtPatchStabilisation (const label i) const
 Return the stabilisation engine for a target patch. More...
 

Detailed Description

Source files

Definition at line 49 of file fvMeshToFvMesh.H.

Constructor & Destructor Documentation

◆ fvMeshToFvMesh()

fvMeshToFvMesh ( const fvMesh srcMesh,
const fvMesh tgtMesh,
const word engineType,
const HashTable< word > &  patchMap = NullObjectRef<HashTable<word>>() 
)

Construct from source and target meshes. If a patchMap is supplied,.

then interpolate between the specified patches. If not, then assume a consistent mesh with consistently named patches and interpolate 1-to-1 between patches with the same name.

Definition at line 38 of file fvMeshToFvMesh.C.

References Foam::dimless, Foam::endl(), Foam::Info, DimensionedField< Type, GeoMesh >::New(), and meshToMesh::srcMesh().

Here is the call graph for this function:

◆ ~fvMeshToFvMesh()

~fvMeshToFvMesh ( )
virtual

Destructor.

Definition at line 79 of file fvMeshToFvMesh.C.

Member Function Documentation

◆ TypeName()

TypeName ( "fvMeshToFvMesh"  )

Run-time type information.

◆ srcToTgt() [1/10]

tmp<VolField<Type> > srcToTgt ( const VolField< Type > &  srcFld) const

Interpolate a source vol field to the target with no left.

over values specified. If the interpolation weight sum is less than one for a face then they will be normalised. If the interpolation weight sum is zero for a face then that face's value will be NaN.

Referenced by Foam::MeshToMeshMapVolFields(), and Foam::MeshToMeshMapVolInternalFields().

Here is the caller graph for this function:

◆ srcToTgt() [2/10]

tmp<VolField<Type> > srcToTgt ( const VolField< Type > &  srcFld,
const VolField< Type > &  leftOverTgtFld,
const UList< wordRe > &  tgtCuttingPatches 
) const

Interpolate a source vol field to the target with left over.

values specified. If the interpolation weight sum is less than one for a face then the average will include the left over value multiplied by one minus the weight sum.

◆ srcToTgt() [3/10]

tmp<VolInternalField<Type> > srcToTgt ( const VolInternalField< Type > &  srcFld) const

Interpolate a source vol internal field to the target with no.

left over values specified. As the corresponding srcToTgt.

◆ srcToTgt() [4/10]

tmp<VolInternalField<Type> > srcToTgt ( const VolInternalField< Type > &  srcFld,
const VolInternalField< Type > &  leftOverTgtFld 
) const

Interpolate a source vol internal field to the target with left.

over values specified. As the corresponding srcToTgt.

◆ srcToTgt() [5/10]

tmp<SurfaceFieldBoundary<Type> > srcToTgt ( const SurfaceFieldBoundary< Type > &  srcFld) const

...

◆ srcToTgt() [6/10]

◆ srcToTgt() [7/10]

Foam::tmp<Foam::VolField<Type> > srcToTgt ( const VolField< Type > &  srcFld,
const VolField< Type > &  leftOverTgtFld,
const UList< wordRe > &  tgtCuttingPatchNames 
) const

◆ srcToTgt() [8/10]

Foam::tmp<Foam::VolInternalField<Type> > srcToTgt ( const VolInternalField< Type > &  srcFld) const

Definition at line 272 of file fvMeshToFvMeshTemplates.C.

References Foam::compressible::New(), tmp< T >::ref(), and Foam::typedName().

Here is the call graph for this function:

◆ srcToTgt() [9/10]

Foam::tmp<Foam::VolInternalField<Type> > srcToTgt ( const VolInternalField< Type > &  srcFld,
const VolInternalField< Type > &  leftOverTgtFld 
) const

Definition at line 293 of file fvMeshToFvMeshTemplates.C.

References Foam::compressible::New(), and Foam::typedName().

Here is the call graph for this function:

◆ srcToTgt() [10/10]

Foam::tmp<Foam::fvMeshToFvMesh::SurfaceFieldBoundary<Type> > srcToTgt ( const SurfaceFieldBoundary< Type > &  srcBfld) const

Definition at line 312 of file fvMeshToFvMeshTemplates.C.

References forAll, and PtrList< T >::set().

Here is the call graph for this function:

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