FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

meshToMesh Class Reference

mesh to mesh interpolation class. More...

#include <sampling/meshToMesh.H>


Detailed Description

mesh to mesh interpolation class.

Source files

Definition at line 61 of file meshToMesh.H.

Collaboration diagram for meshToMesh:

List of all members.

Classes

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

Public Types

enum  order { MAP, INTERPOLATE, CELL_POINT_INTERPOLATE }
 

Enumeration specifying required accuracy.

More...

Public Member Functions

 ClassName ("meshToMesh")
 meshToMesh (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.
 meshToMesh (const fvMesh &fromMesh, const fvMesh &toMesh)
 Construct from the two meshes assuming there is an exact mapping.
 ~meshToMesh ()
const fvMesh &  fromMesh () const
const fvMesh &  toMesh () const
const labelList &  cellAddressing () const
 From toMesh cells to fromMesh cells.
template<class Type >
void  mapField (Field< Type > &, const Field< Type > &, const labelList &adr) const
 Map field.
template<class Type >
void  interpolateField (Field< Type > &, const GeometricField< Type, fvPatchField, volMesh > &, const labelList &adr, const scalarListList &weights) const
 Interpolate field using inverse-distance weights.
template<class Type >
void  interpolateField (Field< Type > &, const GeometricField< Type, fvPatchField, volMesh > &, const labelList &adr, const vectorField &centres) const
 Interpolate field using cell-point interpolation.
template<class Type >
void  interpolateInternalField (Field< Type > &, const GeometricField< Type, fvPatchField, volMesh > &, order=INTERPOLATE) const
 Interpolate internal volume field.
template<class Type >
void  interpolateInternalField (Field< Type > &, const tmp< GeometricField< Type, fvPatchField, volMesh > > &, order=INTERPOLATE) const
template<class Type >
void  interpolate (GeometricField< Type, fvPatchField, volMesh > &, const GeometricField< Type, fvPatchField, volMesh > &, order=INTERPOLATE) const
 Interpolate volume field.
template<class Type >
void  interpolate (GeometricField< Type, fvPatchField, volMesh > &, const tmp< GeometricField< Type, fvPatchField, volMesh > > &, order=INTERPOLATE) const
template<class Type >
tmp< GeometricField< Type,
fvPatchField, volMesh > >  
interpolate (const GeometricField< Type, fvPatchField, volMesh > &, order=INTERPOLATE) const
 Interpolate volume field.
template<class Type >
tmp< GeometricField< Type,
fvPatchField, volMesh > >  
interpolate (const tmp< GeometricField< Type, fvPatchField, volMesh > > &, order=INTERPOLATE) const

Member Enumeration Documentation

enum order

Enumeration specifying required accuracy.

Enumerator:
MAP 
INTERPOLATE 
CELL_POINT_INTERPOLATE 

Definition at line 123 of file meshToMesh.H.


Constructor & Destructor Documentation

meshToMesh ( 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

Definition at line 44 of file meshToMesh.C.

References Foam::endl(), forAll, and WarningIn.

meshToMesh ( const fvMesh &   fromMesh,
const fvMesh &   toMesh  
)

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

between the patches

Definition at line 117 of file meshToMesh.C.

References Foam::exit(), Foam::FatalError, FatalErrorIn, and forAll.

~meshToMesh (  )

Definition at line 203 of file meshToMesh.C.

References Foam::deleteDemandDrivenData().


Member Function Documentation

ClassName ( "meshToMesh"    )
const fvMesh& fromMesh (  ) const [inline]

Definition at line 205 of file meshToMesh.H.

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

const fvMesh& toMesh (  ) const [inline]
const labelList& cellAddressing (  ) const [inline]

From toMesh cells to fromMesh cells.

Definition at line 216 of file meshToMesh.H.

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

Map field.

Definition at line 41 of file meshToMeshInterpolate.C.

References forAll.

void interpolateField ( Field< Type > &   toF,
const GeometricField< Type, fvPatchField, volMesh > &   fromVf,
const labelList &   adr,
const scalarListList &   weights  
) const

Interpolate field using inverse-distance weights.

Definition at line 63 of file meshToMeshInterpolate.C.

References forAll.

void interpolateField ( Field< Type > &   toF,
const GeometricField< Type, fvPatchField, volMesh > &   fromVf,
const labelList &   adr,
const vectorField &   centres  
) const

Interpolate field using cell-point interpolation.

Definition at line 95 of file meshToMeshInterpolate.C.

References forAll, and interpolationCellPoint< Type >::interpolate().

void interpolateInternalField ( Field< Type > &   toF,
const GeometricField< Type, fvPatchField, volMesh > &   fromVf,
meshToMesh::order   ord = INTERPOLATE  
) const
void interpolateInternalField ( Field< Type > &   toF,
const tmp< GeometricField< Type, fvPatchField, volMesh > > &   tfromVf,
meshToMesh::order   ord = INTERPOLATE  
) const

Definition at line 193 of file meshToMeshInterpolate.C.

void interpolate ( GeometricField< Type, fvPatchField, volMesh > &   toVf,
const GeometricField< Type, fvPatchField, volMesh > &   fromVf,
meshToMesh::order   ord = INTERPOLATE  
) const
void interpolate ( GeometricField< Type, fvPatchField, volMesh > &   toVf,
const tmp< GeometricField< Type, fvPatchField, volMesh > > &   tfromVf,
meshToMesh::order   ord = INTERPOLATE  
) const

Definition at line 303 of file meshToMeshInterpolate.C.

References Foam::interpolate().

tmp< GeometricField< Type, fvPatchField, volMesh > > interpolate ( const tmp< GeometricField< Type, fvPatchField, volMesh > > &   tfromVf,
meshToMesh::order   ord = INTERPOLATE  
) const

Definition at line 390 of file meshToMeshInterpolate.C.

References Foam::interpolate().


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