Serial mesh to mesh interpolation class. More...
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. More... | |
meshToMesh0 (const fvMesh &fromMesh, const fvMesh &toMesh) | |
Construct from the two meshes assuming there is an exact mapping. More... | |
~meshToMesh0 () | |
Destructor. More... | |
const fvMesh & | fromMesh () const |
const fvMesh & | toMesh () const |
const labelList & | cellAddressing () const |
From toMesh cells to fromMesh cells. More... | |
scalar | V () const |
Overlap volume. More... | |
template<class Type > | |
void | mapField (Field< Type > &, const Field< Type > &, const labelList &adr) const |
Map field. More... | |
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. More... | |
template<class Type > | |
void | interpolateField (Field< Type > &, const GeometricField< Type, fvPatchField, volMesh > &, const labelListList &adr, const scalarListList &weights) const |
Interpolate field using inverse-volume weights. More... | |
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. More... | |
template<class Type > | |
void | interpolateInternalField (Field< Type > &, const GeometricField< Type, fvPatchField, volMesh > &, order=INTERPOLATE) const |
Interpolate internal volume field. More... | |
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. More... | |
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. More... | |
template<class Type > | |
tmp< GeometricField< Type, fvPatchField, volMesh > > | interpolate (const tmp< GeometricField< Type, fvPatchField, volMesh >> &, order=INTERPOLATE) const |
template<class Type > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > | interpolate (const GeometricField< Type, fvPatchField, volMesh > &fromVf, meshToMesh0::order ord) const |
template<class Type > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > | interpolate (const tmp< GeometricField< Type, fvPatchField, volMesh >> &tfromVf, meshToMesh0::order ord) const |
enum order |
Enumeration specifying required accuracy.
Enumerator | |
---|---|
MAP | |
INTERPOLATE | |
CELL_POINT_INTERPOLATE | |
CELL_VOLUME_WEIGHT |
Definition at line 143 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 43 of file meshToMesh0.C.
References Foam::endl(), forAll, patchi, and WarningInFunction.
meshToMesh0 | ( | const fvMesh & | fromMesh, |
const fvMesh & | toMesh | ||
) |
Construct from the two meshes assuming there is an exact mapping.
between the patches
Definition at line 114 of file meshToMesh0.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and patchi.
~meshToMesh0 | ( | ) |
Destructor.
Definition at line 194 of file meshToMesh0.C.
References Foam::deleteDemandDrivenData().
ClassName | ( | "meshToMesh0" | ) |
|
inline |
Definition at line 230 of file meshToMesh0.H.
Referenced by Foam::MapConsistentVolFields(), and Foam::MapVolFields().
|
inline |
Definition at line 235 of file meshToMesh0.H.
Referenced by Foam::MapConsistentVolFields(), Foam::MapLagrangianFields(), and Foam::MapVolFields().
|
inline |
From toMesh cells to fromMesh cells.
Definition at line 241 of file meshToMesh0.H.
|
inline |
Overlap volume.
Definition at line 247 of file meshToMesh0.H.
References meshToMesh0::INTERPOLATE, meshToMesh0::interpolate(), meshToMesh0::interpolateField(), meshToMesh0::interpolateInternalField(), meshToMesh0::mapField(), and generalFieldMapper::weights().
Map field.
Definition at line 36 of file meshToMesh0Templates.C.
References forAll, and meshToMesh0::interpolateField().
Referenced by meshToMesh0::V().
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 84 of file meshToMesh0Templates.C.
Referenced by meshToMesh0::interpolateField(), meshToMesh0::mapField(), and meshToMesh0::V().
void interpolateField | ( | Field< Type > & | toF, |
const GeometricField< Type, fvPatchField, volMesh > & | fromVf, | ||
const labelListList & | adr, | ||
const scalarListList & | weights | ||
) | const |
Interpolate field using inverse-volume weights.
Definition at line 58 of file meshToMesh0Templates.C.
References f(), forAll, meshToMesh0::interpolateField(), and Foam::Zero.
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 118 of file meshToMesh0Templates.C.
References forAll, interpolationCellPoint< Type >::interpolate(), and meshToMesh0::interpolateInternalField().
void interpolateInternalField | ( | Field< Type > & | toF, |
const GeometricField< Type, fvPatchField, volMesh > & | fromVf, | ||
meshToMesh0::order | ord = INTERPOLATE |
||
) | const |
Interpolate internal volume field.
Definition at line 140 of file meshToMesh0Templates.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, DimensionedField< Type, GeoMesh >::mesh(), and List< Type >::size().
Referenced by meshToMesh0::interpolateField(), and meshToMesh0::V().
void interpolateInternalField | ( | Field< Type > & | toF, |
const tmp< GeometricField< Type, fvPatchField, volMesh >> & | tfromVf, | ||
meshToMesh0::order | ord = INTERPOLATE |
||
) | const |
Definition at line 217 of file meshToMesh0Templates.C.
References meshToMesh0::interpolate().
void interpolate | ( | GeometricField< Type, fvPatchField, volMesh > & | toVf, |
const GeometricField< Type, fvPatchField, volMesh > & | fromVf, | ||
meshToMesh0::order | ord = INTERPOLATE |
||
) | const |
Interpolate volume field.
Definition at line 230 of file meshToMesh0Templates.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), GeometricField< Type, PatchField, GeoMesh >::boundaryFieldRef(), fvPatch::Cf(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::isA(), fvPatch::name(), and patchi.
Referenced by meshToMesh0::interpolate(), meshToMesh0::interpolateInternalField(), Foam::MapConsistentVolFields(), Foam::MapVolFields(), and meshToMesh0::V().
void interpolate | ( | GeometricField< Type, fvPatchField, volMesh > & | toVf, |
const tmp< GeometricField< Type, fvPatchField, volMesh >> & | tfromVf, | ||
meshToMesh0::order | ord = INTERPOLATE |
||
) | const |
Definition at line 324 of file meshToMesh0Templates.C.
References Foam::fvc::interpolate(), and meshToMesh0::interpolate().
tmp<GeometricField<Type, fvPatchField, volMesh> > interpolate | ( | const GeometricField< Type, fvPatchField, volMesh > & | , |
order | = INTERPOLATE |
||
) | const |
Interpolate volume field.
tmp<GeometricField<Type, fvPatchField, volMesh> > interpolate | ( | const tmp< GeometricField< Type, fvPatchField, volMesh >> & | , |
order | = INTERPOLATE |
||
) | const |
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > interpolate | ( | const GeometricField< Type, fvPatchField, volMesh > & | fromVf, |
meshToMesh0::order | ord | ||
) | const |
Definition at line 338 of file meshToMesh0Templates.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), DimensionedField< Type, GeoMesh >::dimensions(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, meshToMesh0::interpolate(), IOobject::name(), and patchi.
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > interpolate | ( | const tmp< GeometricField< Type, fvPatchField, volMesh >> & | tfromVf, |
meshToMesh0::order | ord | ||
) | const |
Definition at line 410 of file meshToMesh0Templates.C.
References Foam::fvc::interpolate().