Serial mesh to mesh interpolation class. More...
#include <meshToMesh0.H>
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. | |
| meshToMesh0 (const fvMesh &fromMesh, const fvMesh &toMesh) | |
| Construct from the two meshes assuming there is an exact mapping. | |
| ~meshToMesh0 ()=default | |
| Destructor. | |
| const fvMesh & | fromMesh () const |
| const fvMesh & | toMesh () const |
| const labelList & | cellAddressing () const |
| From toMesh cells to fromMesh cells. | |
| scalar | V () const |
| Overlap volume. | |
| template<class Type, class CombineOp> | |
| void | mapField (Field< Type > &, const Field< Type > &, const labelList &adr, const CombineOp &cop) const |
| Map field. | |
| template<class Type, class CombineOp> | |
| void | interpolateField (Field< Type > &, const VolumeField< Type > &, const labelList &adr, const scalarListList &weights, const CombineOp &cop) const |
| Interpolate field using inverse-distance weights. | |
| template<class Type, class CombineOp> | |
| void | interpolateField (Field< Type > &, const VolumeField< Type > &, const labelListList &adr, const scalarListList &weights, const CombineOp &cop) const |
| Interpolate field using inverse-volume weights. | |
| template<class Type, class CombineOp> | |
| void | interpolateField (Field< Type > &, const VolumeField< Type > &, const labelList &adr, const vectorField ¢res, const CombineOp &cop) const |
| Interpolate field using cell-point interpolation. | |
| template<class Type, class CombineOp> | |
| void | interpolateInternalField (Field< Type > &, const VolumeField< Type > &, order=INTERPOLATE, const CombineOp &cop=eqOp< Type >()) const |
| Interpolate internal volume field. | |
| template<class Type, class CombineOp> | |
| void | interpolateInternalField (Field< Type > &, const tmp< VolumeField< Type > > &, order=INTERPOLATE, const CombineOp &cop=eqOp< Type >()) const |
| template<class Type, class CombineOp> | |
| void | interpolate (VolumeField< Type > &, const VolumeField< Type > &, order=INTERPOLATE, const CombineOp &cop=eqOp< Type >()) const |
| Interpolate volume field. | |
| template<class Type, class CombineOp> | |
| void | interpolate (VolumeField< Type > &, const tmp< VolumeField< Type > > &, order=INTERPOLATE, const CombineOp &cop=eqOp< Type >()) const |
| template<class Type, class CombineOp> | |
| tmp< VolumeField< Type > > | interpolate (const VolumeField< Type > &, order=INTERPOLATE, const CombineOp &cop=eqOp< Type >()) const |
| Interpolate volume field. | |
| template<class Type, class CombineOp> | |
| tmp< VolumeField< Type > > | interpolate (const tmp< VolumeField< Type > > &, order=INTERPOLATE, const CombineOp &cop=eqOp< Type >()) const |
| template<class Type, class CombineOp> | |
| Foam::tmp< Foam::VolumeField< Type > > | interpolate (const VolumeField< Type > &fromVf, meshToMesh0::order ord, const CombineOp &cop) const |
| template<class Type, class CombineOp> | |
| Foam::tmp< Foam::VolumeField< Type > > | interpolate (const tmp< VolumeField< Type > > &tfromVf, meshToMesh0::order ord, const CombineOp &cop) const |
Serial mesh to mesh interpolation class.
Definition at line 61 of file meshToMesh0.H.
| enum order |
Enumeration specifying required accuracy.
| Enumerator | |
|---|---|
| MAP | |
| INTERPOLATE | |
| CELL_POINT_INTERPOLATE | |
| CELL_VOLUME_WEIGHT | |
Definition at line 170 of file meshToMesh0.H.
| 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
Definition at line 37 of file meshToMesh0.C.
References Foam::endl(), UList< T >::find(), forAll, Foam::isA(), and WarningInFunction.

Construct from the two meshes assuming there is an exact mapping.
between the patches
Definition at line 108 of file meshToMesh0.C.

|
default |
Destructor.
| ClassName | ( | "meshToMesh0" | ) |
|
inline |
Definition at line 270 of file meshToMesh0.H.
Referenced by Foam::MapConsistentVolFields(), and Foam::MapVolFields().

|
inline |
Definition at line 275 of file meshToMesh0.H.
Referenced by Foam::MapConsistentVolFields(), Foam::MapLagrangianFields(), and Foam::MapVolFields().

|
inline |
From toMesh cells to fromMesh cells.
Definition at line 283 of file meshToMesh0.H.
|
inline |
Overlap volume.
Definition at line 291 of file meshToMesh0.H.
| void mapField | ( | Field< Type > & | toF, |
| const Field< Type > & | fromVf, | ||
| const labelList & | adr, | ||
| const CombineOp & | cop ) const |
Map field.
Definition at line 31 of file meshToMesh0Templates.C.
References forAll.
Referenced by interpolate(), and interpolateInternalField().

| void interpolateField | ( | Field< Type > & | toF, |
| const VolumeField< Type > & | fromVf, | ||
| const labelList & | adr, | ||
| const scalarListList & | weights, | ||
| const CombineOp & | cop ) const |
Interpolate field using inverse-distance weights.
Definition at line 81 of file meshToMesh0Templates.C.
References f(), forAll, and UList< T >::size().
Referenced by interpolate(), and interpolateInternalField().


| void interpolateField | ( | Field< Type > & | toF, |
| const VolumeField< Type > & | fromVf, | ||
| const labelListList & | adr, | ||
| const scalarListList & | weights, | ||
| const CombineOp & | cop ) const |
Interpolate field using inverse-volume weights.
Definition at line 54 of file meshToMesh0Templates.C.
References f(), forAll, and Foam::Zero.

| void interpolateField | ( | Field< Type > & | toF, |
| const VolumeField< Type > & | fromVf, | ||
| const labelList & | adr, | ||
| const vectorField & | centres, | ||
| const CombineOp & | cop ) const |
Interpolate field using cell-point interpolation.
Definition at line 116 of file meshToMesh0Templates.C.
References forAll, and interpolationCellPoint< Type >::interpolate().

| void interpolateInternalField | ( | Field< Type > & | toF, |
| const VolumeField< Type > & | fromVf, | ||
| meshToMesh0::order | ord = INTERPOLATE, | ||
| const CombineOp & | cop = eqOp<Type>() ) const |
Interpolate internal volume field.
Definition at line 147 of file meshToMesh0Templates.C.
References CELL_POINT_INTERPOLATE, CELL_VOLUME_WEIGHT, Foam::exit(), Foam::FatalError, FatalErrorInFunction, INTERPOLATE, interpolateField(), MAP, mapField(), DimensionedField< Type, GeoMesh >::mesh(), and UList< T >::size().
Referenced by interpolate(), interpolate(), and interpolateInternalField().


| void interpolateInternalField | ( | Field< Type > & | toF, |
| const tmp< VolumeField< Type > > & | tfromVf, | ||
| meshToMesh0::order | ord = INTERPOLATE, | ||
| const CombineOp & | cop = eqOp<Type>() ) const |
Definition at line 228 of file meshToMesh0Templates.C.
References interpolateInternalField().

| void interpolate | ( | VolumeField< Type > & | toVf, |
| const VolumeField< Type > & | fromVf, | ||
| meshToMesh0::order | ord = INTERPOLATE, | ||
| const CombineOp & | cop = eqOp<Type>() ) const |
Interpolate volume field.
Definition at line 242 of file meshToMesh0Templates.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), CELL_POINT_INTERPOLATE, CELL_VOLUME_WEIGHT, fvPatch::Cf(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, INTERPOLATE, interpolateField(), interpolateInternalField(), Foam::isA(), MAP, mapField(), fvPatch::name(), and Foam::refCast().
Referenced by Foam::MapConsistentVolFields(), and Foam::MapVolFields().


| void interpolate | ( | VolumeField< Type > & | toVf, |
| const tmp< VolumeField< Type > > & | tfromVf, | ||
| meshToMesh0::order | ord = INTERPOLATE, | ||
| const CombineOp & | cop = eqOp<Type>() ) const |
Definition at line 340 of file meshToMesh0Templates.C.
References Foam::interpolate().

| tmp< VolumeField< Type > > interpolate | ( | const VolumeField< Type > & | , |
| order | = INTERPOLATE, | ||
| const CombineOp & | cop = eqOp< Type >() ) const |
Interpolate volume field.
References INTERPOLATE.
| tmp< VolumeField< Type > > interpolate | ( | const tmp< VolumeField< Type > > & | , |
| order | = INTERPOLATE, | ||
| const CombineOp & | cop = eqOp< Type >() ) const |
References INTERPOLATE.
| Foam::tmp< Foam::VolumeField< Type > > interpolate | ( | const VolumeField< Type > & | fromVf, |
| meshToMesh0::order | ord, | ||
| const CombineOp & | cop ) const |
Definition at line 355 of file meshToMesh0Templates.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), DimensionedField< Type, GeoMesh >::dimensions(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, interpolateInternalField(), IOobject::name(), fvPatchField< Type >::New(), Foam::New(), IOobjectOption::NO_READ, IOobjectOption::NO_WRITE, DimensionedField< Type, volMesh >::null(), and PtrList< T >::set().

| Foam::tmp< Foam::VolumeField< Type > > interpolate | ( | const tmp< VolumeField< Type > > & | tfromVf, |
| meshToMesh0::order | ord, | ||
| const CombineOp & | cop ) const |
Definition at line 423 of file meshToMesh0Templates.C.
References Foam::interpolate().
