Class to calculate the cell-addressing between two overlapping meshes. More...
Public Types | |
enum | interpolationMethod { imDirect, imMapNearest, imCellVolumeWeight, imCorrectedCellVolumeWeight } |
Enumeration specifying interpolation method. More... | |
Public Member Functions | |
TypeName ("meshToMesh") | |
Run-time type information. More... | |
meshToMesh (const polyMesh &src, const polyMesh &tgt, const interpolationMethod &method, const bool interpAllPatches=true) | |
Construct from source and target meshes. More... | |
meshToMesh (const polyMesh &src, const polyMesh &tgt, const word &methodName, const word &AMIMethodName, const bool interpAllPatches=true) | |
Construct from source and target meshes, generic mapping methods. More... | |
meshToMesh (const polyMesh &src, const polyMesh &tgt, const interpolationMethod &method, const HashTable< word > &patchMap, const wordList &cuttingPatches) | |
Construct from source and target meshes. More... | |
meshToMesh (const polyMesh &src, const polyMesh &tgt, const word &methodName, const word &AMIMethodName, const HashTable< word > &patchMap, const wordList &cuttingPatches) | |
Construct from source and target meshes, generic mapping methods. More... | |
virtual | ~meshToMesh () |
Destructor. More... | |
const polyMesh & | srcRegion () const |
Return const access to the source mesh. More... | |
const polyMesh & | tgtRegion () const |
Return const access to the target mesh. More... | |
const labelListList & | srcToTgtCellAddr () const |
Return const access to the source to target cell addressing. More... | |
const labelListList & | tgtToSrcCellAddr () const |
Return const access to the target to source cell addressing. More... | |
const scalarListList & | srcToTgtCellWght () const |
Return const access to the source to target cell weights. More... | |
const scalarListList & | tgtToSrcCellWght () const |
Return const access to the target to source cell weights. More... | |
const pointListList & | srcToTgtCellVec () const |
Return const access to the source to target offset vectors. More... | |
const pointListList & | tgtToSrcCellVec () const |
Return const access to the target to source offset vectors. More... | |
scalar | V () const |
Return const access to the overlap volume. More... | |
const PtrList< AMIPatchToPatchInterpolation > & | patchAMIs () const |
Return the list of AMIs between source and target patches. More... | |
template<class Type , class CombineOp > | |
void | mapSrcToTgt (const UList< Type > &srcFld, const CombineOp &cop, List< Type > &result) const |
Map field from src to tgt mesh with defined operation. More... | |
template<class Type , class CombineOp > | |
void | mapSrcToTgt (const UList< Type > &srcField, const UList< typename outerProduct< vector, Type >::type > &, const CombineOp &cop, List< Type > &result) const |
Map extrapolated field (using gradient) from src to tgt. More... | |
template<class Type , class CombineOp > | |
tmp< Field< Type > > | mapSrcToTgt (const Field< Type > &srcFld, const CombineOp &cop) const |
Return the src field mapped to the tgt mesh with a defined. More... | |
template<class Type , class CombineOp > | |
tmp< Field< Type > > | mapSrcToTgt (const tmp< Field< Type > > &tsrcFld, const CombineOp &cop) const |
Convenience function to map a tmp field to the tgt mesh. More... | |
template<class Type > | |
tmp< Field< Type > > | mapSrcToTgt (const Field< Type > &srcFld) const |
Convenience function to map a field to the tgt mesh with a. More... | |
template<class Type > | |
tmp< Field< Type > > | mapSrcToTgt (const tmp< Field< Type > > &tsrcFld) const |
Convenience function to map a tmp field to the tgt mesh. More... | |
template<class Type , class CombineOp > | |
void | mapTgtToSrc (const UList< Type > &tgtFld, const CombineOp &cop, List< Type > &result) const |
Map field from tgt to src mesh with defined operation. More... | |
template<class Type , class CombineOp > | |
void | mapTgtToSrc (const UList< Type > &srcField, const UList< typename outerProduct< vector, Type >::type > &, const CombineOp &cop, List< Type > &result) const |
Map extrapolated field (using gradient) from tgt to src. More... | |
template<class Type , class CombineOp > | |
tmp< Field< Type > > | mapTgtToSrc (const Field< Type > &tgtFld, const CombineOp &cop) const |
Return the tgt field mapped to the src mesh with a defined. More... | |
template<class Type , class CombineOp > | |
tmp< Field< Type > > | mapTgtToSrc (const tmp< Field< Type > > &ttgtFld, const CombineOp &cop) const |
Convenience function to map a tmp field to the src mesh. More... | |
template<class Type > | |
tmp< Field< Type > > | mapTgtToSrc (const Field< Type > &tgtFld) const |
Convenience function to map a field to the src mesh with a. More... | |
template<class Type > | |
tmp< Field< Type > > | mapTgtToSrc (const tmp< Field< Type > > &ttgtFld) const |
Convenience function to map a tmp field to the src mesh. More... | |
template<class Type , class CombineOp > | |
void | mapSrcToTgt (const GeometricField< Type, fvPatchField, volMesh > &field, const CombineOp &cop, GeometricField< Type, fvPatchField, volMesh > &result, const bool secondOrder=true) const |
Interpolate a field with a defined operation. Values. More... | |
template<class Type , class CombineOp > | |
tmp< GeometricField< Type, fvPatchField, volMesh > > | mapSrcToTgt (const GeometricField< Type, fvPatchField, volMesh > &field, const CombineOp &cop, const bool secondOrder=true) const |
Interpolate a field with a defined operation. The initial. More... | |
template<class Type , class CombineOp > | |
tmp< GeometricField< Type, fvPatchField, volMesh > > | mapSrcToTgt (const tmp< GeometricField< Type, fvPatchField, volMesh > > &tfield, const CombineOp &cop, const bool secondOrder=true) const |
Interpolate a tmp field with a defined operation. The. More... | |
template<class Type > | |
tmp< GeometricField< Type, fvPatchField, volMesh > > | mapSrcToTgt (const GeometricField< Type, fvPatchField, volMesh > &field, const bool secondOrder=true) const |
Convenience function to map a field with a default. More... | |
template<class Type > | |
tmp< GeometricField< Type, fvPatchField, volMesh > > | mapSrcToTgt (const tmp< GeometricField< Type, fvPatchField, volMesh > > &tfield, const bool secondOrder=true) const |
Convenience function to map a tmp field with a default. More... | |
template<class Type , class CombineOp > | |
void | mapTgtToSrc (const GeometricField< Type, fvPatchField, volMesh > &field, const CombineOp &cop, GeometricField< Type, fvPatchField, volMesh > &result, const bool secondOrder=true) const |
Interpolate a field with a defined operation. Values. More... | |
template<class Type , class CombineOp > | |
tmp< GeometricField< Type, fvPatchField, volMesh > > | mapTgtToSrc (const GeometricField< Type, fvPatchField, volMesh > &field, const CombineOp &cop, const bool secondOrder=true) const |
Interpolate a field with a defined operation. The initial. More... | |
template<class Type , class CombineOp > | |
tmp< GeometricField< Type, fvPatchField, volMesh > > | mapTgtToSrc (const tmp< GeometricField< Type, fvPatchField, volMesh > > &tfield, const CombineOp &cop, const bool secondOrder=true) const |
Interpolate a tmp field with a defined operation. The. More... | |
template<class Type > | |
tmp< GeometricField< Type, fvPatchField, volMesh > > | mapTgtToSrc (const GeometricField< Type, fvPatchField, volMesh > &field, const bool secondOrder=true) const |
Convenience function to map a field with a default. More... | |
template<class Type > | |
tmp< GeometricField< Type, fvPatchField, volMesh > > | mapTgtToSrc (const tmp< GeometricField< Type, fvPatchField, volMesh > > &tfield, const bool secondOrder=true) const |
Convenience function to map a tmp field with a default. More... | |
template<> | |
void | mapInternalSrcToTgt (const GeometricField< sphericalTensor, fvPatchField, volMesh > &field, const plusEqOp< sphericalTensor > &cop, GeometricField< sphericalTensor, fvPatchField, volMesh > &result, const bool secondOrder) const |
template<> | |
void | mapInternalSrcToTgt (const GeometricField< sphericalTensor, fvPatchField, volMesh > &field, const minusEqOp< sphericalTensor > &cop, GeometricField< sphericalTensor, fvPatchField, volMesh > &result, const bool secondOrder) const |
template<> | |
void | mapInternalSrcToTgt (const GeometricField< symmTensor, fvPatchField, volMesh > &field, const plusEqOp< symmTensor > &cop, GeometricField< symmTensor, fvPatchField, volMesh > &result, const bool secondOrder) const |
template<> | |
void | mapInternalSrcToTgt (const GeometricField< symmTensor, fvPatchField, volMesh > &field, const minusEqOp< symmTensor > &cop, GeometricField< symmTensor, fvPatchField, volMesh > &result, const bool secondOrder) const |
template<> | |
void | mapInternalSrcToTgt (const GeometricField< tensor, fvPatchField, volMesh > &field, const plusEqOp< tensor > &cop, GeometricField< tensor, fvPatchField, volMesh > &result, const bool secondOrder) const |
template<> | |
void | mapInternalSrcToTgt (const GeometricField< tensor, fvPatchField, volMesh > &field, const minusEqOp< tensor > &cop, GeometricField< tensor, fvPatchField, volMesh > &result, const bool secondOrder) const |
template<> | |
void | mapInternalTgtToSrc (const GeometricField< sphericalTensor, fvPatchField, volMesh > &field, const plusEqOp< sphericalTensor > &cop, GeometricField< sphericalTensor, fvPatchField, volMesh > &result, const bool secondOrder) const |
template<> | |
void | mapInternalTgtToSrc (const GeometricField< sphericalTensor, fvPatchField, volMesh > &field, const minusEqOp< sphericalTensor > &cop, GeometricField< sphericalTensor, fvPatchField, volMesh > &result, const bool secondOrder) const |
template<> | |
void | mapInternalTgtToSrc (const GeometricField< symmTensor, fvPatchField, volMesh > &field, const plusEqOp< symmTensor > &cop, GeometricField< symmTensor, fvPatchField, volMesh > &result, const bool secondOrder) const |
template<> | |
void | mapInternalTgtToSrc (const GeometricField< symmTensor, fvPatchField, volMesh > &field, const minusEqOp< symmTensor > &cop, GeometricField< symmTensor, fvPatchField, volMesh > &result, const bool secondOrder) const |
template<> | |
void | mapInternalTgtToSrc (const GeometricField< tensor, fvPatchField, volMesh > &field, const plusEqOp< tensor > &cop, GeometricField< tensor, fvPatchField, volMesh > &result, const bool secondOrder) const |
template<> | |
void | mapInternalTgtToSrc (const GeometricField< tensor, fvPatchField, volMesh > &field, const minusEqOp< tensor > &cop, GeometricField< tensor, fvPatchField, volMesh > &result, const bool secondOrder) const |
template<> | |
void | mapAndOpSrcToTgt (const AMIPatchToPatchInterpolation &AMI, const Field< scalar > &srcField, Field< scalar > &tgtField, const plusEqOp< scalar > &cop) const |
template<> | |
void | mapAndOpSrcToTgt (const AMIPatchToPatchInterpolation &AMI, const Field< vector > &srcField, Field< vector > &tgtField, const plusEqOp< vector > &cop) const |
template<> | |
void | mapAndOpSrcToTgt (const AMIPatchToPatchInterpolation &AMI, const Field< sphericalTensor > &srcField, Field< sphericalTensor > &tgtField, const plusEqOp< sphericalTensor > &cop) const |
template<> | |
void | mapAndOpSrcToTgt (const AMIPatchToPatchInterpolation &AMI, const Field< symmTensor > &srcField, Field< symmTensor > &tgtField, const plusEqOp< symmTensor > &cop) const |
template<> | |
void | mapAndOpSrcToTgt (const AMIPatchToPatchInterpolation &AMI, const Field< tensor > &srcField, Field< tensor > &tgtField, const plusEqOp< tensor > &cop) const |
template<> | |
void | mapAndOpTgtToSrc (const AMIPatchToPatchInterpolation &AMI, Field< scalar > &srcField, const Field< scalar > &tgtField, const plusEqOp< scalar > &cop) const |
template<> | |
void | mapAndOpTgtToSrc (const AMIPatchToPatchInterpolation &AMI, Field< vector > &srcField, const Field< vector > &tgtField, const plusEqOp< vector > &cop) const |
template<> | |
void | mapAndOpTgtToSrc (const AMIPatchToPatchInterpolation &AMI, Field< sphericalTensor > &srcField, const Field< sphericalTensor > &tgtField, const plusEqOp< sphericalTensor > &cop) const |
template<> | |
void | mapAndOpTgtToSrc (const AMIPatchToPatchInterpolation &AMI, Field< symmTensor > &srcField, const Field< symmTensor > &tgtField, const plusEqOp< symmTensor > &cop) const |
template<> | |
void | mapAndOpTgtToSrc (const AMIPatchToPatchInterpolation &AMI, Field< tensor > &srcField, const Field< tensor > &tgtField, const plusEqOp< tensor > &cop) const |
template<class Type , class CombineOp > | |
Foam::tmp< Foam::Field< Type > > | mapSrcToTgt (const Field< Type > &srcField, const CombineOp &cop) const |
template<class Type , class CombineOp > | |
Foam::tmp< Foam::Field< Type > > | mapSrcToTgt (const tmp< Field< Type > > &tsrcField, const CombineOp &cop) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | mapSrcToTgt (const Field< Type > &srcField) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | mapSrcToTgt (const tmp< Field< Type > > &tsrcField) const |
template<class Type , class CombineOp > | |
Foam::tmp< Foam::Field< Type > > | mapTgtToSrc (const Field< Type > &tgtField, const CombineOp &cop) const |
template<class Type , class CombineOp > | |
Foam::tmp< Foam::Field< Type > > | mapTgtToSrc (const tmp< Field< Type > > &ttgtField, const CombineOp &cop) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | mapTgtToSrc (const Field< Type > &tgtField) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | mapTgtToSrc (const tmp< Field< Type > > &ttgtField) const |
template<class Type , class CombineOp > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > | mapSrcToTgt (const GeometricField< Type, fvPatchField, volMesh > &field, const CombineOp &cop, const bool secondOrder) const |
template<class Type , class CombineOp > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > | mapSrcToTgt (const tmp< GeometricField< Type, fvPatchField, volMesh > > &tfield, const CombineOp &cop, const bool secondOrder) const |
template<class Type > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > | mapSrcToTgt (const GeometricField< Type, fvPatchField, volMesh > &field, const bool secondOrder) const |
template<class Type > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > | mapSrcToTgt (const tmp< GeometricField< Type, fvPatchField, volMesh > > &tfield, const bool secondOrder) const |
template<class Type , class CombineOp > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > | mapTgtToSrc (const GeometricField< Type, fvPatchField, volMesh > &field, const CombineOp &cop, const bool secondOrder) const |
template<class Type , class CombineOp > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > | mapTgtToSrc (const tmp< GeometricField< Type, fvPatchField, volMesh > > &tfield, const CombineOp &cop, const bool secondOrder) const |
template<class Type > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > | mapTgtToSrc (const GeometricField< Type, fvPatchField, volMesh > &field, const bool secondOrder) const |
template<class Type > | |
Foam::tmp< Foam::GeometricField< Type, Foam::fvPatchField, Foam::volMesh > > | mapTgtToSrc (const tmp< GeometricField< Type, fvPatchField, volMesh > > &tfield, const bool secondOrder) const |
Static Public Member Functions | |
static AMIPatchToPatchInterpolation::interpolationMethod | interpolationMethodAMI (const interpolationMethod method) |
Conversion between mesh and patch interpolation methods. More... | |
Static Public Attributes | |
static const NamedEnum< interpolationMethod, 4 > | interpolationMethodNames_ |
Private Member Functions | |
template<class Type > | |
void | add (UList< Type > &fld, const label offset) const |
Helper function to add a constant offset to a list. More... | |
template<class Type , class CombineOp > | |
void | mapInternalSrcToTgt (const GeometricField< Type, fvPatchField, volMesh > &field, const CombineOp &cop, GeometricField< Type, fvPatchField, volMesh > &result, const bool secondOrder) const |
Helper function to interpolate internal field. Optionally uses. More... | |
template<class Type , class CombineOp > | |
void | mapInternalTgtToSrc (const GeometricField< Type, fvPatchField, volMesh > &field, const CombineOp &cop, GeometricField< Type, fvPatchField, volMesh > &result, const bool secondOrder) const |
Helper function to interpolate internal field. Optionally uses. More... | |
template<class Type , class CombineOp > | |
void | mapAndOpSrcToTgt (const AMIPatchToPatchInterpolation &AMI, const Field< Type > &srcField, Field< Type > &tgtField, const CombineOp &cop) const |
Helper function to interpolate patch field. Template. More... | |
template<class Type , class CombineOp > | |
void | mapAndOpTgtToSrc (const AMIPatchToPatchInterpolation &AMI, Field< Type > &srcField, const Field< Type > &tgtField, const CombineOp &cop) const |
Helper function to interpolate patch field. Template. More... | |
labelList | maskCells (const polyMesh &src, const polyMesh &tgt) const |
Return src cell IDs for the overlap region. More... | |
void | normaliseWeights (const word &descriptor, const labelListList &addr, scalarListList &wght) const |
Normalise the interpolation weights. More... | |
void | calcAddressing (const word &methodName, const polyMesh &src, const polyMesh &tgt) |
Calculate the addressing between overlapping regions of src and tgt. More... | |
void | calculate (const word &methodName) |
Calculate - main driver function. More... | |
void | calculatePatchAMIs (const word &amiMethodName) |
Calculate patch overlap. More... | |
void | constructNoCuttingPatches (const word &methodName, const word &AMIMethodName, const bool interpAllPatches) |
Constructor helper. More... | |
void | constructFromCuttingPatches (const word &methodName, const word &AMIMethodName, const HashTable< word > &patchMap, const wordList &cuttingPatches) |
Constructor helper. More... | |
label | calcDistribution (const polyMesh &src, const polyMesh &tgt) const |
Determine whether the meshes are split across multiple pocessors. More... | |
label | calcOverlappingProcs (const List< treeBoundBoxList > &procBb, const boundBox &bb, boolList &overlaps) const |
Determine which processor bounding-boxes overlap. More... | |
autoPtr< mapDistribute > | calcProcMap (const polyMesh &src, const polyMesh &tgt) const |
Calculate the mapping between processors. More... | |
void | distributeCells (const mapDistribute &map, const polyMesh &tgtMesh, const globalIndex &globalI, List< pointField > &points, List< label > &nInternalFaces, List< faceList > &faces, List< labelList > &faceOwner, List< labelList > &faceNeighbour, List< labelList > &cellIDs, List< labelList > &nbrProcIDs, List< labelList > &procLocalFaceIDs) const |
Distribute mesh info from 'my' processor to others. More... | |
void | distributeAndMergeCells (const mapDistribute &map, const polyMesh &tgt, const globalIndex &globalI, pointField &tgtPoints, faceList &tgtFaces, labelList &tgtFaceOwners, labelList &tgtFaceNeighbours, labelList &tgtCellIDs) const |
Collect pieces of tgt mesh from other procssors and restructure. More... | |
meshToMesh (const meshToMesh &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const meshToMesh &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
const polyMesh & | srcRegion_ |
Reference to the source mesh. More... | |
const polyMesh & | tgtRegion_ |
Reference to the target mesh. More... | |
List< label > | srcPatchID_ |
List of target patch IDs per source patch (local index) More... | |
List< label > | tgtPatchID_ |
List of source patch IDs per target patch (local index) More... | |
PtrList< AMIPatchToPatchInterpolation > | patchAMIs_ |
List of AMIs between source and target patches. More... | |
List< label > | cuttingPatches_ |
Cutting patches whose values are set using a zero-gradient condition. More... | |
labelListList | srcToTgtCellAddr_ |
Source to target cell addressing. More... | |
labelListList | tgtToSrcCellAddr_ |
Target to source cell addressing. More... | |
scalarListList | srcToTgtCellWght_ |
Source to target cell interplation weights. More... | |
scalarListList | tgtToSrcCellWght_ |
Target to source cell interpolation weights. More... | |
pointListList | srcToTgtCellVec_ |
Source to target cell offset vectors. More... | |
pointListList | tgtToSrcCellVec_ |
Target to source cell offset vectors. More... | |
scalar | V_ |
Cell total volume in overlap region [m3]. More... | |
label | singleMeshProc_ |
Index of processor that holds all of both sides. -1 in all other. More... | |
autoPtr< mapDistribute > | srcMapPtr_ |
Source map pointer - parallel running only. More... | |
autoPtr< mapDistribute > | tgtMapPtr_ |
Target map pointer - parallel running only. More... | |
Class to calculate the cell-addressing between two overlapping meshes.
Mapping is performed using a run-time selectable interpolation mothod
Definition at line 61 of file meshToMesh.H.
enum interpolationMethod |
Enumeration specifying interpolation method.
Enumerator | |
---|---|
imDirect | |
imMapNearest | |
imCellVolumeWeight | |
imCorrectedCellVolumeWeight |
Definition at line 68 of file meshToMesh.H.
|
private |
Disallow default bitwise copy construct.
meshToMesh | ( | const polyMesh & | src, |
const polyMesh & | tgt, | ||
const interpolationMethod & | method, | ||
const bool | interpAllPatches = true |
||
) |
Construct from source and target meshes.
Definition at line 798 of file meshToMesh.C.
References AMIInterpolation< SourcePatch, TargetPatch >::interpolationMethodToWord().
meshToMesh | ( | const polyMesh & | src, |
const polyMesh & | tgt, | ||
const word & | methodName, | ||
const word & | AMIMethodName, | ||
const bool | interpAllPatches = true |
||
) |
Construct from source and target meshes, generic mapping methods.
Definition at line 835 of file meshToMesh.C.
meshToMesh | ( | const polyMesh & | src, |
const polyMesh & | tgt, | ||
const interpolationMethod & | method, | ||
const HashTable< word > & | patchMap, | ||
const wordList & | cuttingPatches | ||
) |
Construct from source and target meshes.
Definition at line 865 of file meshToMesh.C.
References AMIInterpolation< SourcePatch, TargetPatch >::interpolationMethodToWord().
meshToMesh | ( | const polyMesh & | src, |
const polyMesh & | tgt, | ||
const word & | methodName, | ||
const word & | AMIMethodName, | ||
const HashTable< word > & | patchMap, | ||
const wordList & | cuttingPatches | ||
) |
Construct from source and target meshes, generic mapping methods.
Definition at line 902 of file meshToMesh.C.
|
virtual |
Destructor.
Definition at line 938 of file meshToMesh.C.
Helper function to add a constant offset to a list.
Definition at line 69 of file meshToMeshTemplates.C.
|
private |
Helper function to interpolate internal field. Optionally uses.
gradient. Template specialisations for tensor types below
Definition at line 501 of file meshToMeshTemplates.C.
References Foam::fvc::grad(), internalField(), GeometricField::internalField(), and Foam::returnReduce().
|
private |
Helper function to interpolate internal field. Optionally uses.
gradient. Template specialisations for tensor types below
Definition at line 740 of file meshToMeshTemplates.C.
References Foam::fvc::grad(), internalField(), GeometricField::internalField(), and Foam::returnReduce().
|
private |
Helper function to interpolate patch field. Template.
specialisations below
Definition at line 527 of file meshToMeshTemplates.C.
References AMIInterpolation< SourcePatch, TargetPatch >::interpolateToTarget().
|
private |
Helper function to interpolate patch field. Template.
specialisations below
Definition at line 766 of file meshToMeshTemplates.C.
References AMIInterpolation< SourcePatch, TargetPatch >::interpolateToSource().
|
private |
Return src cell IDs for the overlap region.
Definition at line 324 of file meshToMesh.C.
References polyMesh::bounds(), cells, primitiveMesh::cells(), Foam::endl(), polyMesh::faces(), forAll, boundBox::inflate(), boundBox::max(), Foam::max(), boundBox::min(), Foam::min(), boundBox::overlaps(), points, polyMesh::points(), Foam::Pout, and HashTable::size().
|
private |
Normalise the interpolation weights.
Definition at line 361 of file meshToMesh.C.
References forAll, Foam::returnReduce(), s(), List::size(), Foam::sum(), and w().
Referenced by meshToMesh::calculate().
Calculate the addressing between overlapping regions of src and tgt.
meshes
Definition at line 388 of file meshToMesh.C.
References Foam::compressible::New().
Referenced by meshToMesh::calculate().
|
private |
Calculate - main driver function.
Definition at line 423 of file meshToMesh.C.
References polyMesh::addPatches(), polyMesh::boundaryMesh(), meshToMesh::calcAddressing(), meshToMesh::calcDistribution(), meshToMesh::calcProcMap(), mapDistributeBase::constructMap(), mapDistributeBase::distribute(), meshToMesh::distributeAndMergeCells(), Foam::endl(), forAll, Foam::Info, UPstream::myProcNo(), Foam::name(), IOobject::name(), primitiveMesh::nCells(), primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), Foam::nl, IOobject::NO_READ, UPstream::nonBlocking, meshToMesh::normaliseWeights(), word::null, patches, Foam::Pout, Foam::reduce(), meshToMesh::singleMeshProc_, meshToMesh::srcMapPtr_, meshToMesh::srcRegion_, meshToMesh::srcToTgtCellAddr_, meshToMesh::srcToTgtCellWght_, mapDistributeBase::subMap(), polyMesh::tetBasePtIs(), meshToMesh::tgtMapPtr_, meshToMesh::tgtRegion_, meshToMesh::tgtToSrcCellAddr_, meshToMesh::tgtToSrcCellWght_, objectRegistry::time(), Time::timeName(), globalIndex::toGlobal(), meshToMesh::V_, regIOobject::write(), and Foam::xferMove().
|
private |
Calculate patch overlap.
Definition at line 653 of file meshToMesh.C.
References polyPatch::boundaryMesh(), Foam::decrIndent(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::incrIndent(), Foam::Info, patchIdentifier::name(), and faceAreaIntersect::tmMesh.
|
private |
Constructor helper.
Definition at line 700 of file meshToMesh.C.
References DynamicList::append(), polyPatch::constraintType(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, polyBoundaryMesh::findPatchID(), forAll, patchIdentifier::index(), patchIdentifier::name(), polyBoundaryMesh::names(), and PtrList::size().
|
private |
Constructor helper.
Definition at line 750 of file meshToMesh.C.
References DynamicList::append(), polyPatch::boundaryMesh(), polyPatch::constraintType(), forAll, forAllConstIter(), patchIdentifier::index(), List::size(), and HashTable::size().
|
private |
Determine whether the meshes are split across multiple pocessors.
Definition at line 38 of file meshToMeshParallelOps.C.
References Foam::endl(), Foam::findIndex(), Foam::Info, primitiveMesh::nCells(), and Foam::sum().
Referenced by meshToMesh::calculate().
|
private |
Determine which processor bounding-boxes overlap.
Definition at line 87 of file meshToMeshParallelOps.C.
References forAll.
|
private |
Calculate the mapping between processors.
Definition at line 117 of file meshToMeshParallelOps.C.
References List::append(), AABBTree::boundBoxes(), Foam::constant::universal::c, primitiveMesh::cellPoints(), cells, primitiveMesh::cells(), Foam::endl(), f(), polyMesh::faces(), forAll, Foam::Info, boundBox::max(), Foam::max(), boundBox::min(), Foam::min(), primitiveMesh::nCells(), Foam::nl, points, polyMesh::points(), Foam::Pout, List::setSize(), List::size(), List::transfer(), and List::xfer().
Referenced by meshToMesh::calculate().
|
private |
Distribute mesh info from 'my' processor to others.
Definition at line 264 of file meshToMeshParallelOps.C.
References DynamicList::append(), polyMesh::boundaryMesh(), mapDistributeBase::constructMap(), Foam::endl(), f(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMesh::faces(), PstreamBuffers::finishedSends(), forAll, primitiveMesh::nCells(), processorPolyPatch::neighbProcNo(), primitiveMesh::nFaces(), primitiveMesh::nPoints(), points, polyMesh::points(), Foam::Pout, List::setSize(), List::size(), polyPatch::start(), mapDistributeBase::subMap(), and globalIndex::toGlobal().
|
private |
Collect pieces of tgt mesh from other procssors and restructure.
Definition at line 504 of file meshToMeshParallelOps.C.
References Foam::abort(), Foam::add(), Foam::DelaunayMeshTools::allPoints(), UList::assign(), UList< T >::assign(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::inplaceRenumber(), Foam::max(), Foam::mergePoints(), Foam::min(), nPoints, Foam::Pout, List::setSize(), and List::size().
Referenced by meshToMesh::calculate().
|
private |
Disallow default bitwise assignment.
TypeName | ( | "meshToMesh" | ) |
Run-time type information.
|
inline |
Return const access to the source mesh.
Definition at line 30 of file meshToMeshI.H.
References meshToMesh::srcRegion_.
Referenced by Foam::MapMesh(), and Foam::MapVolFields().
|
inline |
Return const access to the target mesh.
Definition at line 36 of file meshToMeshI.H.
Referenced by Foam::MapMesh(), and Foam::MapVolFields().
|
inline |
Return const access to the source to target cell addressing.
Definition at line 42 of file meshToMeshI.H.
|
inline |
Return const access to the target to source cell addressing.
Definition at line 48 of file meshToMeshI.H.
|
inline |
Return const access to the source to target cell weights.
Definition at line 54 of file meshToMeshI.H.
|
inline |
Return const access to the target to source cell weights.
Definition at line 60 of file meshToMeshI.H.
|
inline |
Return const access to the source to target offset vectors.
Definition at line 66 of file meshToMeshI.H.
|
inline |
Return const access to the target to source offset vectors.
Definition at line 72 of file meshToMeshI.H.
|
inline |
Return const access to the overlap volume.
Definition at line 78 of file meshToMeshI.H.
|
static |
Conversion between mesh and patch interpolation methods.
Definition at line 621 of file meshToMesh.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, AMIInterpolation< SourcePatch, TargetPatch >::imDirect, AMIInterpolation< SourcePatch, TargetPatch >::imFaceAreaWeight, and AMIInterpolation< SourcePatch, TargetPatch >::imMapNearest.
|
inline |
Return the list of AMIs between source and target patches.
Definition at line 85 of file meshToMeshI.H.
void mapSrcToTgt | ( | const UList< Type > & | srcFld, |
const CombineOp & | cop, | ||
List< Type > & | result | ||
) | const |
Map field from src to tgt mesh with defined operation.
Values passed in via 'result' are used to initialise the return value
Definition at line 83 of file meshToMeshTemplates.C.
References Foam::abort(), mapDistribute::distribute(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::nl, List::size(), Foam::sum(), and w().
Referenced by interRegionHeatTransferModel::interpolate(), and Foam::MapVolFields().
void mapSrcToTgt | ( | const UList< Type > & | srcField, |
const UList< typename outerProduct< vector, Type >::type > & | srcGradField, | ||
const CombineOp & | cop, | ||
List< Type > & | result | ||
) | const |
Map extrapolated field (using gradient) from src to tgt.
mesh with defined operation. Falls back to non-extrapolated mapping (above) if not constructed with method that supports getting offset vectors. Extrapolation only for internal values. Values passed in via 'result' are used to initialise the return value.
Definition at line 149 of file meshToMeshTemplates.C.
References Foam::abort(), mapDistribute::distribute(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::nl, Foam::returnReduce(), List::size(), Foam::sum(), and w().
Return the src field mapped to the tgt mesh with a defined.
operation. Initial values of the result are set to zero
Convenience function to map a tmp field to the tgt mesh.
with a defined operation
Convenience function to map a field to the tgt mesh with a.
default operation (plusEqOp)
Convenience function to map a tmp field to the tgt mesh.
with a default operation (plusEqOp)
void mapTgtToSrc | ( | const UList< Type > & | tgtFld, |
const CombineOp & | cop, | ||
List< Type > & | result | ||
) | const |
Map field from tgt to src mesh with defined operation.
Values passed in via 'result' are used to initialise the return value
Definition at line 296 of file meshToMeshTemplates.C.
References Foam::abort(), mapDistribute::distribute(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::nl, List::size(), Foam::sum(), and w().
void mapTgtToSrc | ( | const UList< Type > & | srcField, |
const UList< typename outerProduct< vector, Type >::type > & | tgtGradField, | ||
const CombineOp & | cop, | ||
List< Type > & | result | ||
) | const |
Map extrapolated field (using gradient) from tgt to src.
mesh with defined operation. Falls back to non-extrapolated mapping (above) if not constructed with method that supports getting offset vectors. Extrapolation only for internal values. Values passed in via 'result' are used to initialise the return value
Definition at line 362 of file meshToMeshTemplates.C.
References Foam::abort(), mapDistribute::distribute(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::nl, Foam::returnReduce(), List::size(), Foam::sum(), and w().
Return the tgt field mapped to the src mesh with a defined.
operation. Initial values of the result are set to zero
Convenience function to map a tmp field to the src mesh.
with a defined operation
Convenience function to map a field to the src mesh with a.
default operation (plusEqOp)
Convenience function to map a tmp field to the src mesh.
with a default operation (plusEqOp)
void mapSrcToTgt | ( | const GeometricField< Type, fvPatchField, volMesh > & | field, |
const CombineOp & | cop, | ||
GeometricField< Type, fvPatchField, volMesh > & | result, | ||
const bool | secondOrder = true |
||
) | const |
Interpolate a field with a defined operation. Values.
passed in via 'result' are used to initialise the return value. Optionallly uses gradient correction (internal field only) if interpolationMethod supports it
Definition at line 548 of file meshToMeshTemplates.C.
References GeometricField::boundaryField(), GeometricField::dimensionedInternalField(), forAll, Foam::identity(), fvPatchField::patch(), fvPatchField::patchInternalField(), and fvPatchField::rmap().
tmp<GeometricField<Type, fvPatchField, volMesh> > mapSrcToTgt | ( | const GeometricField< Type, fvPatchField, volMesh > & | field, |
const CombineOp & | cop, | ||
const bool | secondOrder = true |
||
) | const |
Interpolate a field with a defined operation. The initial.
values of the result are set to zero
tmp<GeometricField<Type, fvPatchField, volMesh> > mapSrcToTgt | ( | const tmp< GeometricField< Type, fvPatchField, volMesh > > & | tfield, |
const CombineOp & | cop, | ||
const bool | secondOrder = true |
||
) | const |
Interpolate a tmp field with a defined operation. The.
initial values of the result are set to zero
tmp<GeometricField<Type, fvPatchField, volMesh> > mapSrcToTgt | ( | const GeometricField< Type, fvPatchField, volMesh > & | field, |
const bool | secondOrder = true |
||
) | const |
Convenience function to map a field with a default.
operation (plusEqOp)
tmp<GeometricField<Type, fvPatchField, volMesh> > mapSrcToTgt | ( | const tmp< GeometricField< Type, fvPatchField, volMesh > > & | tfield, |
const bool | secondOrder = true |
||
) | const |
Convenience function to map a tmp field with a default.
operation (plusEqOp)
void mapTgtToSrc | ( | const GeometricField< Type, fvPatchField, volMesh > & | field, |
const CombineOp & | cop, | ||
GeometricField< Type, fvPatchField, volMesh > & | result, | ||
const bool | secondOrder = true |
||
) | const |
Interpolate a field with a defined operation. Values.
passed in via 'result' are used to initialise the return value. Optionallly uses gradient correction (internal field only) if interpolationMethod supports it
Definition at line 787 of file meshToMeshTemplates.C.
References GeometricField::boundaryField(), GeometricField::dimensionedInternalField(), forAll, Foam::identity(), fvPatchField::patch(), fvPatchField::patchInternalField(), and fvPatchField::rmap().
tmp<GeometricField<Type, fvPatchField, volMesh> > mapTgtToSrc | ( | const GeometricField< Type, fvPatchField, volMesh > & | field, |
const CombineOp & | cop, | ||
const bool | secondOrder = true |
||
) | const |
Interpolate a field with a defined operation. The initial.
values of the result are set to zero
tmp<GeometricField<Type, fvPatchField, volMesh> > mapTgtToSrc | ( | const tmp< GeometricField< Type, fvPatchField, volMesh > > & | tfield, |
const CombineOp & | cop, | ||
const bool | secondOrder = true |
||
) | const |
Interpolate a tmp field with a defined operation. The.
initial values of the result are set to zero
tmp<GeometricField<Type, fvPatchField, volMesh> > mapTgtToSrc | ( | const GeometricField< Type, fvPatchField, volMesh > & | field, |
const bool | secondOrder = true |
||
) | const |
Convenience function to map a field with a default.
operation (plusEqOp)
tmp<GeometricField<Type, fvPatchField, volMesh> > mapTgtToSrc | ( | const tmp< GeometricField< Type, fvPatchField, volMesh > > & | tfield, |
const bool | secondOrder = true |
||
) | const |
Convenience function to map a tmp field with a default.
operation (plusEqOp)
void mapInternalSrcToTgt | ( | const GeometricField< sphericalTensor, fvPatchField, volMesh > & | field, |
const plusEqOp< sphericalTensor > & | cop, | ||
GeometricField< sphericalTensor, fvPatchField, volMesh > & | result, | ||
const bool | secondOrder | ||
) | const |
Definition at line 59 of file meshToMesh.C.
References GeometricField::internalField().
void mapInternalSrcToTgt | ( | const GeometricField< sphericalTensor, fvPatchField, volMesh > & | field, |
const minusEqOp< sphericalTensor > & | cop, | ||
GeometricField< sphericalTensor, fvPatchField, volMesh > & | result, | ||
const bool | secondOrder | ||
) | const |
Definition at line 72 of file meshToMesh.C.
References GeometricField::internalField().
void mapInternalSrcToTgt | ( | const GeometricField< symmTensor, fvPatchField, volMesh > & | field, |
const plusEqOp< symmTensor > & | cop, | ||
GeometricField< symmTensor, fvPatchField, volMesh > & | result, | ||
const bool | secondOrder | ||
) | const |
Definition at line 85 of file meshToMesh.C.
References GeometricField::internalField().
void mapInternalSrcToTgt | ( | const GeometricField< symmTensor, fvPatchField, volMesh > & | field, |
const minusEqOp< symmTensor > & | cop, | ||
GeometricField< symmTensor, fvPatchField, volMesh > & | result, | ||
const bool | secondOrder | ||
) | const |
Definition at line 98 of file meshToMesh.C.
References GeometricField::internalField().
void mapInternalSrcToTgt | ( | const GeometricField< tensor, fvPatchField, volMesh > & | field, |
const plusEqOp< tensor > & | cop, | ||
GeometricField< tensor, fvPatchField, volMesh > & | result, | ||
const bool | secondOrder | ||
) | const |
Definition at line 111 of file meshToMesh.C.
References GeometricField::internalField().
void mapInternalSrcToTgt | ( | const GeometricField< tensor, fvPatchField, volMesh > & | field, |
const minusEqOp< tensor > & | cop, | ||
GeometricField< tensor, fvPatchField, volMesh > & | result, | ||
const bool | secondOrder | ||
) | const |
Definition at line 124 of file meshToMesh.C.
References GeometricField::internalField().
void mapInternalTgtToSrc | ( | const GeometricField< sphericalTensor, fvPatchField, volMesh > & | field, |
const plusEqOp< sphericalTensor > & | cop, | ||
GeometricField< sphericalTensor, fvPatchField, volMesh > & | result, | ||
const bool | secondOrder | ||
) | const |
Definition at line 137 of file meshToMesh.C.
References GeometricField::internalField().
void mapInternalTgtToSrc | ( | const GeometricField< sphericalTensor, fvPatchField, volMesh > & | field, |
const minusEqOp< sphericalTensor > & | cop, | ||
GeometricField< sphericalTensor, fvPatchField, volMesh > & | result, | ||
const bool | secondOrder | ||
) | const |
Definition at line 150 of file meshToMesh.C.
References GeometricField::internalField().
void mapInternalTgtToSrc | ( | const GeometricField< symmTensor, fvPatchField, volMesh > & | field, |
const plusEqOp< symmTensor > & | cop, | ||
GeometricField< symmTensor, fvPatchField, volMesh > & | result, | ||
const bool | secondOrder | ||
) | const |
Definition at line 163 of file meshToMesh.C.
References GeometricField::internalField().
void mapInternalTgtToSrc | ( | const GeometricField< symmTensor, fvPatchField, volMesh > & | field, |
const minusEqOp< symmTensor > & | cop, | ||
GeometricField< symmTensor, fvPatchField, volMesh > & | result, | ||
const bool | secondOrder | ||
) | const |
Definition at line 176 of file meshToMesh.C.
References GeometricField::internalField().
void mapInternalTgtToSrc | ( | const GeometricField< tensor, fvPatchField, volMesh > & | field, |
const plusEqOp< tensor > & | cop, | ||
GeometricField< tensor, fvPatchField, volMesh > & | result, | ||
const bool | secondOrder | ||
) | const |
Definition at line 189 of file meshToMesh.C.
References GeometricField::internalField().
void mapInternalTgtToSrc | ( | const GeometricField< tensor, fvPatchField, volMesh > & | field, |
const minusEqOp< tensor > & | cop, | ||
GeometricField< tensor, fvPatchField, volMesh > & | result, | ||
const bool | secondOrder | ||
) | const |
Definition at line 202 of file meshToMesh.C.
References GeometricField::internalField().
void mapAndOpSrcToTgt | ( | const AMIPatchToPatchInterpolation & | AMI, |
const Field< scalar > & | srcField, | ||
Field< scalar > & | tgtField, | ||
const plusEqOp< scalar > & | cop | ||
) | const |
Definition at line 215 of file meshToMesh.C.
void mapAndOpSrcToTgt | ( | const AMIPatchToPatchInterpolation & | AMI, |
const Field< vector > & | srcField, | ||
Field< vector > & | tgtField, | ||
const plusEqOp< vector > & | cop | ||
) | const |
Definition at line 226 of file meshToMesh.C.
void mapAndOpSrcToTgt | ( | const AMIPatchToPatchInterpolation & | AMI, |
const Field< sphericalTensor > & | srcField, | ||
Field< sphericalTensor > & | tgtField, | ||
const plusEqOp< sphericalTensor > & | cop | ||
) | const |
Definition at line 237 of file meshToMesh.C.
void mapAndOpSrcToTgt | ( | const AMIPatchToPatchInterpolation & | AMI, |
const Field< symmTensor > & | srcField, | ||
Field< symmTensor > & | tgtField, | ||
const plusEqOp< symmTensor > & | cop | ||
) | const |
Definition at line 248 of file meshToMesh.C.
void mapAndOpSrcToTgt | ( | const AMIPatchToPatchInterpolation & | AMI, |
const Field< tensor > & | srcField, | ||
Field< tensor > & | tgtField, | ||
const plusEqOp< tensor > & | cop | ||
) | const |
Definition at line 259 of file meshToMesh.C.
void mapAndOpTgtToSrc | ( | const AMIPatchToPatchInterpolation & | AMI, |
Field< scalar > & | srcField, | ||
const Field< scalar > & | tgtField, | ||
const plusEqOp< scalar > & | cop | ||
) | const |
Definition at line 270 of file meshToMesh.C.
void mapAndOpTgtToSrc | ( | const AMIPatchToPatchInterpolation & | AMI, |
Field< vector > & | srcField, | ||
const Field< vector > & | tgtField, | ||
const plusEqOp< vector > & | cop | ||
) | const |
Definition at line 281 of file meshToMesh.C.
void mapAndOpTgtToSrc | ( | const AMIPatchToPatchInterpolation & | AMI, |
Field< sphericalTensor > & | srcField, | ||
const Field< sphericalTensor > & | tgtField, | ||
const plusEqOp< sphericalTensor > & | cop | ||
) | const |
Definition at line 292 of file meshToMesh.C.
void mapAndOpTgtToSrc | ( | const AMIPatchToPatchInterpolation & | AMI, |
Field< symmTensor > & | srcField, | ||
const Field< symmTensor > & | tgtField, | ||
const plusEqOp< symmTensor > & | cop | ||
) | const |
Definition at line 303 of file meshToMesh.C.
void mapAndOpTgtToSrc | ( | const AMIPatchToPatchInterpolation & | AMI, |
Field< tensor > & | srcField, | ||
const Field< tensor > & | tgtField, | ||
const plusEqOp< tensor > & | cop | ||
) | const |
Definition at line 314 of file meshToMesh.C.
Foam::tmp<Foam::Field<Type> > mapSrcToTgt | ( | const Field< Type > & | srcField, |
const CombineOp & | cop | ||
) | const |
Definition at line 243 of file meshToMeshTemplates.C.
Foam::tmp<Foam::Field<Type> > mapSrcToTgt | ( | const tmp< Field< Type > > & | tsrcField, |
const CombineOp & | cop | ||
) | const |
Definition at line 265 of file meshToMeshTemplates.C.
Foam::tmp<Foam::Field<Type> > mapSrcToTgt | ( | const Field< Type > & | srcField | ) | const |
Definition at line 276 of file meshToMeshTemplates.C.
Foam::tmp<Foam::Field<Type> > mapSrcToTgt | ( | const tmp< Field< Type > > & | tsrcField | ) | const |
Definition at line 286 of file meshToMeshTemplates.C.
Foam::tmp<Foam::Field<Type> > mapTgtToSrc | ( | const Field< Type > & | tgtField, |
const CombineOp & | cop | ||
) | const |
Definition at line 448 of file meshToMeshTemplates.C.
Foam::tmp<Foam::Field<Type> > mapTgtToSrc | ( | const tmp< Field< Type > > & | ttgtField, |
const CombineOp & | cop | ||
) | const |
Definition at line 470 of file meshToMeshTemplates.C.
Foam::tmp<Foam::Field<Type> > mapTgtToSrc | ( | const Field< Type > & | tgtField | ) | const |
Definition at line 481 of file meshToMeshTemplates.C.
Foam::tmp<Foam::Field<Type> > mapTgtToSrc | ( | const tmp< Field< Type > > & | ttgtField | ) | const |
Definition at line 491 of file meshToMeshTemplates.C.
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > mapSrcToTgt | ( | const GeometricField< Type, fvPatchField, volMesh > & | field, |
const CombineOp & | cop, | ||
const bool | secondOrder | ||
) | const |
Definition at line 613 of file meshToMeshTemplates.C.
References fvMesh::boundary(), GeometricField::boundaryField(), forAll, primitiveMesh::nCells(), PtrList::set(), PtrList::size(), fvMesh::time(), Time::timeName(), and Foam::type().
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > mapSrcToTgt | ( | const tmp< GeometricField< Type, fvPatchField, volMesh > > & | tfield, |
const CombineOp & | cop, | ||
const bool | secondOrder | ||
) | const |
Definition at line 704 of file meshToMeshTemplates.C.
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > mapSrcToTgt | ( | const GeometricField< Type, fvPatchField, volMesh > & | field, |
const bool | secondOrder | ||
) | const |
Definition at line 717 of file meshToMeshTemplates.C.
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > mapSrcToTgt | ( | const tmp< GeometricField< Type, fvPatchField, volMesh > > & | tfield, |
const bool | secondOrder | ||
) | const |
Definition at line 729 of file meshToMeshTemplates.C.
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > mapTgtToSrc | ( | const GeometricField< Type, fvPatchField, volMesh > & | field, |
const CombineOp & | cop, | ||
const bool | secondOrder | ||
) | const |
Definition at line 852 of file meshToMeshTemplates.C.
References fvMesh::boundary(), GeometricField::boundaryField(), forAll, primitiveMesh::nCells(), PtrList::set(), PtrList::size(), fvMesh::time(), Time::timeName(), and Foam::type().
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > mapTgtToSrc | ( | const tmp< GeometricField< Type, fvPatchField, volMesh > > & | tfield, |
const CombineOp & | cop, | ||
const bool | secondOrder | ||
) | const |
Definition at line 943 of file meshToMeshTemplates.C.
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > mapTgtToSrc | ( | const GeometricField< Type, fvPatchField, volMesh > & | field, |
const bool | secondOrder | ||
) | const |
Definition at line 956 of file meshToMeshTemplates.C.
Foam::tmp<Foam::GeometricField<Type, Foam::fvPatchField, Foam::volMesh> > mapTgtToSrc | ( | const tmp< GeometricField< Type, fvPatchField, volMesh > > & | tfield, |
const bool | secondOrder | ||
) | const |
Definition at line 968 of file meshToMeshTemplates.C.
|
static |
Definition at line 77 of file meshToMesh.H.
Referenced by interRegionOption::setMapper().
|
private |
Reference to the source mesh.
Definition at line 84 of file meshToMesh.H.
Referenced by meshToMesh::calculate(), and meshToMesh::srcRegion().
|
private |
Reference to the target mesh.
Definition at line 87 of file meshToMesh.H.
Referenced by meshToMesh::calculate().
List of target patch IDs per source patch (local index)
Definition at line 90 of file meshToMesh.H.
List of source patch IDs per target patch (local index)
Definition at line 93 of file meshToMesh.H.
|
private |
List of AMIs between source and target patches.
Definition at line 96 of file meshToMesh.H.
Cutting patches whose values are set using a zero-gradient condition.
Definition at line 99 of file meshToMesh.H.
|
private |
Source to target cell addressing.
Definition at line 102 of file meshToMesh.H.
Referenced by meshToMesh::calculate().
|
private |
Target to source cell addressing.
Definition at line 105 of file meshToMesh.H.
Referenced by meshToMesh::calculate().
|
private |
Source to target cell interplation weights.
Definition at line 108 of file meshToMesh.H.
Referenced by meshToMesh::calculate().
|
private |
Target to source cell interpolation weights.
Definition at line 111 of file meshToMesh.H.
Referenced by meshToMesh::calculate().
|
private |
Source to target cell offset vectors.
Definition at line 117 of file meshToMesh.H.
|
private |
Target to source cell offset vectors.
Definition at line 120 of file meshToMesh.H.
|
private |
Cell total volume in overlap region [m3].
Definition at line 123 of file meshToMesh.H.
Referenced by meshToMesh::calculate().
|
private |
Index of processor that holds all of both sides. -1 in all other.
cases
Definition at line 127 of file meshToMesh.H.
Referenced by meshToMesh::calculate().
|
private |
Source map pointer - parallel running only.
Definition at line 130 of file meshToMesh.H.
Referenced by meshToMesh::calculate().
|
private |
Target map pointer - parallel running only.
Definition at line 133 of file meshToMesh.H.
Referenced by meshToMesh::calculate().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.