mesh to mesh interpolation class. More...
#include <sampling/meshToMesh.H>
mesh to mesh interpolation class.
Definition at line 61 of file meshToMesh.H.
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 ¢res) 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 |
enum order |
Enumeration specifying required accuracy.
Definition at line 123 of file meshToMesh.H.
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().
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]
|
Definition at line 210 of file meshToMesh.H.
Referenced by Foam::MapConsistentVolFields(), Foam::MapLagrangianFields(), and Foam::MapVolFields().
const labelList& cellAddressing | ( | ) | const [inline]
|
From toMesh cells to fromMesh cells.
Definition at line 216 of file meshToMesh.H.
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 |
Interpolate internal volume field.
Definition at line 121 of file meshToMeshInterpolate.C.
References Foam::exit(), Foam::FatalError, FatalErrorIn, DimensionedField< Type, GeoMesh >::mesh(), List< Type >::size(), and List< T >::size().
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 |
Interpolate volume field.
Definition at line 206 of file meshToMeshInterpolate.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), fvPatch::Cf(), Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, Foam::isA(), and fvPatch::name().
Referenced by Foam::MapConsistentVolFields(), and Foam::MapVolFields().
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 GeometricField< Type, fvPatchField, volMesh > & | fromVf, |
meshToMesh::order | ord = INTERPOLATE
|
||
) | const |
Interpolate volume field.
Definition at line 316 of file meshToMeshInterpolate.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), DimensionedField< Type, GeoMesh >::dimensions(), Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, IOobject::name(), IOobject::NO_READ, IOobject::NO_WRITE, and DimensionedField< Type, GeoMesh >::null().
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().