OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

meshToMesh Class Reference

mesh to mesh interpolation class. More...

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 fvMeshfromMesh () const
const fvMeshtoMesh () const
const labelListcellAddressing () 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

Detailed Description

mesh to mesh interpolation class.

Source files

Definition at line 56 of file meshToMesh.H.


Member Enumeration Documentation

enum order

Enumeration specifying required accuracy.

Enumerator:
MAP 
INTERPOLATE 
CELL_POINT_INTERPOLATE 

Definition at line 118 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 36 of file meshToMesh.C.

meshToMesh ( const fvMesh fromMesh,
const fvMesh toMesh 
)

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

between the patches

Definition at line 109 of file meshToMesh.C.

~meshToMesh (  ) 

Definition at line 195 of file meshToMesh.C.


Member Function Documentation

ClassName ( "meshToMesh"   ) 

const fvMesh& fromMesh (  )  const [inline]

Definition at line 204 of file meshToMesh.H.

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

Here is the caller graph for this function:

const fvMesh& toMesh (  )  const [inline]

Definition at line 209 of file meshToMesh.H.

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

Here is the caller graph for this function:

const labelList& cellAddressing (  )  const [inline]

From toMesh cells to fromMesh cells.

Definition at line 215 of file meshToMesh.H.

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

Map field.

Definition at line 33 of file meshToMeshInterpolate.C.

References forAll.

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

Interpolate field using inverse-distance weights.

Definition at line 55 of file meshToMeshInterpolate.C.

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

Interpolate field using cell-point interpolation.

Definition at line 87 of file meshToMeshInterpolate.C.

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

Interpolate internal volume field.

Definition at line 113 of file meshToMeshInterpolate.C.

Referenced by meshToMesh::interpolate().

Here is the caller graph for this function:

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

Definition at line 185 of file meshToMeshInterpolate.C.

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

Interpolate volume field.

Definition at line 198 of file meshToMeshInterpolate.C.

References meshToMesh::interpolateInternalField().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 295 of file meshToMeshInterpolate.C.

tmp< GeometricField< Type, fvPatchField, volMesh > > interpolate ( const GeometricField< Type, fvPatchField, volMesh > &  fromVf,
meshToMesh::order  ord = INTERPOLATE 
) const [inline]

Interpolate volume field.

Definition at line 308 of file meshToMeshInterpolate.C.

References meshToMesh::interpolate().

Here is the call graph for this function:

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

Definition at line 382 of file meshToMeshInterpolate.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd