Serial mesh to mesh interpolation class. More...
Classes | |
class | patchFieldInterpolator |
Public Types | |
enum | order { MAP, INTERPOLATE, CELL_POINT_INTERPOLATE, CELL_VOLUME_WEIGHT } |
Public Member Functions | |
ClassName ("meshToMesh0") | |
meshToMesh0 (const fvMesh &fromMesh, const fvMesh &toMesh, const HashTable< word > &patchMap, const wordList &cuttingPatchNames) | |
meshToMesh0 (const fvMesh &fromMesh, const fvMesh &toMesh) | |
~meshToMesh0 ()=default | |
const fvMesh & | fromMesh () const |
const fvMesh & | toMesh () const |
const labelList & | cellAddressing () const |
scalar | V () const |
template<class Type , class CombineOp > | |
void | mapField (Field< Type > &, const Field< Type > &, const labelList &adr, const CombineOp &cop) const |
template<class Type , class CombineOp > | |
void | interpolateField (Field< Type > &, const GeometricField< Type, fvPatchField, volMesh > &, const labelList &adr, const scalarListList &weights, const CombineOp &cop) const |
template<class Type , class CombineOp > | |
void | interpolateField (Field< Type > &, const GeometricField< Type, fvPatchField, volMesh > &, const labelListList &adr, const scalarListList &weights, const CombineOp &cop) const |
template<class Type , class CombineOp > | |
void | interpolateField (Field< Type > &, const GeometricField< Type, fvPatchField, volMesh > &, const labelList &adr, const vectorField ¢res, const CombineOp &cop) const |
template<class Type , class CombineOp > | |
void | interpolateInternalField (Field< Type > &, const GeometricField< Type, fvPatchField, volMesh > &, order=INTERPOLATE, const CombineOp &cop=eqOp< Type >()) const |
template<class Type , class CombineOp > | |
void | interpolateInternalField (Field< Type > &, const tmp< GeometricField< Type, fvPatchField, volMesh >> &, order=INTERPOLATE, const CombineOp &cop=eqOp< Type >()) const |
template<class Type , class CombineOp > | |
void | interpolate (GeometricField< Type, fvPatchField, volMesh > &, const GeometricField< Type, fvPatchField, volMesh > &, order=INTERPOLATE, const CombineOp &cop=eqOp< Type >()) const |
template<class Type , class CombineOp > | |
void | interpolate (GeometricField< Type, fvPatchField, volMesh > &, const tmp< GeometricField< Type, fvPatchField, volMesh >> &, order=INTERPOLATE, const CombineOp &cop=eqOp< Type >()) const |
template<class Type , class CombineOp > | |
tmp< GeometricField< Type, fvPatchField, volMesh > > | interpolate (const GeometricField< Type, fvPatchField, volMesh > &, order=INTERPOLATE, const CombineOp &cop=eqOp< Type >()) const |
template<class Type , class CombineOp > | |
tmp< GeometricField< Type, fvPatchField, volMesh > > | interpolate (const tmp< GeometricField< Type, fvPatchField, volMesh >> &, order=INTERPOLATE, const CombineOp &cop=eqOp< Type >()) const |
template<class Type , class CombineOp > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > | interpolate (const GeometricField< Type, fvPatchField, volMesh > &fromVf, meshToMesh0::order ord, const CombineOp &cop) const |
template<class Type , class CombineOp > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > | interpolate (const tmp< GeometricField< Type, fvPatchField, volMesh >> &tfromVf, meshToMesh0::order ord, const CombineOp &cop) const |
Serial mesh to mesh interpolation class.
Definition at line 61 of file meshToMesh0.H.
enum order |
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 | ||
) |
Definition at line 38 of file meshToMesh0.C.
References Foam::endl(), forAll, and WarningInFunction.
meshToMesh0 | ( | const fvMesh & | fromMesh, |
const fvMesh & | toMesh | ||
) |
Definition at line 109 of file meshToMesh0.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and forAll.
|
default |
ClassName | ( | "meshToMesh0" | ) |
|
inline |
Definition at line 229 of file meshToMesh0.H.
Referenced by Foam::MapConsistentVolFields(), and Foam::MapVolFields().
|
inline |
Definition at line 234 of file meshToMesh0.H.
Referenced by Foam::MapConsistentVolFields(), Foam::MapLagrangianFields(), and Foam::MapVolFields().
|
inline |
Definition at line 240 of file meshToMesh0.H.
|
inline |
Definition at line 246 of file meshToMesh0.H.
void mapField | ( | Field< Type > & | toF, |
const Field< Type > & | fromVf, | ||
const labelList & | adr, | ||
const CombineOp & | cop | ||
) | const |
Definition at line 31 of file meshToMesh0Templates.C.
References forAll.
void interpolateField | ( | Field< Type > & | toF, |
const GeometricField< Type, fvPatchField, volMesh > & | fromVf, | ||
const labelList & | adr, | ||
const scalarListList & | weights, | ||
const CombineOp & | cop | ||
) | const |
void interpolateField | ( | Field< Type > & | toF, |
const GeometricField< Type, fvPatchField, volMesh > & | fromVf, | ||
const labelListList & | adr, | ||
const scalarListList & | weights, | ||
const CombineOp & | cop | ||
) | const |
Definition at line 54 of file meshToMesh0Templates.C.
References f(), forAll, and Foam::Zero.
void interpolateField | ( | Field< Type > & | toF, |
const GeometricField< Type, fvPatchField, volMesh > & | fromVf, | ||
const labelList & | adr, | ||
const vectorField & | centres, | ||
const CombineOp & | cop | ||
) | const |
Definition at line 116 of file meshToMesh0Templates.C.
References forAll, and interpolationCellPoint< Type >::interpolate().
void interpolateInternalField | ( | Field< Type > & | toF, |
const GeometricField< Type, fvPatchField, volMesh > & | fromVf, | ||
meshToMesh0::order | ord = INTERPOLATE , |
||
const CombineOp & | cop = eqOp<Type>() |
||
) | const |
Definition at line 147 of file meshToMesh0Templates.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
void interpolateInternalField | ( | Field< Type > & | toF, |
const tmp< GeometricField< Type, fvPatchField, volMesh >> & | tfromVf, | ||
meshToMesh0::order | ord = INTERPOLATE , |
||
const CombineOp & | cop = eqOp<Type>() |
||
) | const |
Definition at line 228 of file meshToMesh0Templates.C.
void interpolate | ( | GeometricField< Type, fvPatchField, volMesh > & | toVf, |
const GeometricField< Type, fvPatchField, volMesh > & | fromVf, | ||
meshToMesh0::order | ord = INTERPOLATE , |
||
const CombineOp & | cop = eqOp<Type>() |
||
) | const |
Definition at line 242 of file meshToMesh0Templates.C.
References GeometricField::boundaryField(), GeometricField::boundaryFieldRef(), fvPatch::Cf(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, 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, | ||
meshToMesh0::order | ord = INTERPOLATE , |
||
const CombineOp & | cop = eqOp<Type>() |
||
) | const |
Definition at line 341 of file meshToMesh0Templates.C.
References Foam::fac::interpolate().
tmp<GeometricField<Type, fvPatchField, volMesh> > interpolate | ( | const GeometricField< Type, fvPatchField, volMesh > & | , |
order | = INTERPOLATE , |
||
const CombineOp & | cop = eqOp< Type >() |
||
) | const |
tmp<GeometricField<Type, fvPatchField, volMesh> > interpolate | ( | const tmp< GeometricField< Type, fvPatchField, volMesh >> & | , |
order | = INTERPOLATE , |
||
const CombineOp & | cop = eqOp< Type >() |
||
) | const |
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > interpolate | ( | const GeometricField< Type, fvPatchField, volMesh > & | fromVf, |
meshToMesh0::order | ord, | ||
const CombineOp & | cop | ||
) | const |
Definition at line 356 of file meshToMesh0Templates.C.
References GeometricField::boundaryField(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, and PtrList::set().
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > interpolate | ( | const tmp< GeometricField< Type, fvPatchField, volMesh >> & | tfromVf, |
meshToMesh0::order | ord, | ||
const CombineOp & | cop | ||
) | const |
Definition at line 428 of file meshToMesh0Templates.C.
References Foam::fac::interpolate().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.