Public Member Functions | |
TypeName ("rays") | |
Runtime type information. More... | |
rays (const bool reverse) | |
Construct from components. More... | |
~rays () | |
Destructor. More... | |
remote | srcToTgtRay (const primitiveOldTimePatch &tgtPatch, const scalar fraction, const label srcFacei, const vector &srcP, const vector &srcN, point &tgtP) const |
Compute a ray intersection from the source side to the target. More... | |
remote | tgtToSrcRay (const primitiveOldTimePatch &srcPatch, const scalar fraction, const label tgtFacei, const vector &tgtP, const vector &tgtN, point &srcP) const |
Compute a ray intersection from the target side to the source. More... | |
Public Member Functions inherited from patchToPatch | |
TypeName ("patchToPatch") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, patchToPatch, bool,(const bool reverse),(reverse)) | |
Declare runtime constructor selection table. More... | |
patchToPatch (const bool reverse) | |
Construct from components. More... | |
patchToPatch (const patchToPatch &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~patchToPatch () |
Destructor. More... | |
bool | reverse () const |
Flag to indicate that the two patches are co-directional and. More... | |
label | singleProcess () const |
Index of the processor holding all faces of the patchToPatch,. More... | |
bool | isSingleProcess () const |
Is this intersection on a single process? More... | |
PackedBoolList | srcCoupled () const |
Return a list indicating which source faces are coupled. More... | |
PackedBoolList | tgtCoupled () const |
Return a list indicating which target faces are coupled. More... | |
List< List< remote > > | srcTgtProcFaces () const |
For each source face, the coupled target procs and faces. More... | |
List< List< remote > > | tgtSrcProcFaces () const |
For each target face, the coupled source procs and faces. More... | |
template<class Type > | |
tmp< Field< Type > > | srcToTgt (const Field< Type > &srcFld) const |
Interpolate a source patch field to the target with no left. More... | |
template<class Type > | |
tmp< Field< Type > > | srcToTgt (const Field< Type > &srcFld, const Field< Type > &leftOverTgtFld) const |
Interpolate a source patch field to the target with left over. More... | |
template<class Type > | |
tmp< Field< Type > > | tgtToSrc (const Field< Type > &tgtFld) const |
Interpolate a target patch field to the source with no left. More... | |
template<class Type > | |
tmp< Field< Type > > | tgtToSrc (const Field< Type > &tgtFld, const Field< Type > &leftOverSrcFld) const |
Interpolate a target patch field to the source with left. More... | |
void | update (const primitiveOldTimePatch &srcPatch, const vectorField &srcPointNormals, const vectorField &srcPointNormals0, const primitiveOldTimePatch &tgtPatch, const transformer &tgtToSrc=NullObjectRef< transformer >()) |
Update addressing and weights for the given patches. More... | |
void | update (const primitivePatch &srcPatch, const vectorField &srcPointNormals, const primitivePatch &tgtPatch, const transformer &tgtToSrc=NullObjectRef< transformer >()) |
Update addressing and weights for the given patches. More... | |
void | operator= (const patchToPatch &)=delete |
Disallow default bitwise assignment. More... | |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | srcToTgt (const Field< Type > &srcFld) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | srcToTgt (const Field< Type > &srcFld, const Field< Type > &leftOverTgtFld) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | tgtToSrc (const Field< Type > &tgtFld) const |
template<class Type > | |
Foam::tmp< Foam::Field< Type > > | tgtToSrc (const Field< Type > &tgtFld, const Field< Type > &leftOverSrcFld) const |
Additional Inherited Members | |
Static Public Member Functions inherited from patchToPatch | |
static autoPtr< patchToPatch > | New (const word &patchToPatchType, const bool reverse) |
Select from name. More... | |
Protected Member Functions inherited from patchToPatch | |
treeBoundBox | srcBox (const primitiveOldTimePatch &srcPatch, const vectorField &srcPointNormals, const vectorField &srcPointNormals0, const label srcFacei) const |
Get the bound box for a source face. More... | |
treeBoundBox | srcBox (const primitiveOldTimePatch &srcPatch, const vectorField &srcPointNormals, const vectorField &srcPointNormals0) const |
Get the bound box for the source patch. More... | |
treeBoundBox | tgtBox (const primitiveOldTimePatch &tgtPatch, const label tgtFacei) const |
Get the bound box for a target face. More... | |
treeBoundBox | tgtBox (const primitiveOldTimePatch &tgtPatch) const |
Get the bound box for the target patch. More... | |
bool | findOrIntersectFaces (const primitiveOldTimePatch &srcPatch, const vectorField &srcPointNormals, const vectorField &srcPointNormals0, const primitiveOldTimePatch &tgtPatch, const label srcFacei, const label tgtFacei) |
Intersect two faces. More... | |
label | intersectPatchQueue (const primitiveOldTimePatch &srcPatch, const vectorField &srcPointNormals, const vectorField &srcPointNormals0, const primitiveOldTimePatch &tgtPatch, const bool isSrc, const DynamicList< labelPair > &queue, labelList &faceComplete, DynamicList< labelPair > &otherQueue, const labelList &otherFaceComplete, boolList &otherFaceQueued, boolList &otherFaceVisited) |
Intersect a queue of source-target face pairs. Update completion. More... | |
void | intersectPatches (const primitiveOldTimePatch &srcPatch, const vectorField &srcPointNormals, const vectorField &srcPointNormals0, const primitiveOldTimePatch &tgtPatch) |
Intersect the patches. More... | |
labelListList | tgtPatchSendFaces (const primitiveOldTimePatch &srcPatch, const vectorField &srcPointNormals, const vectorField &srcPointNormals0, const primitiveOldTimePatch &tgtPatch) const |
Determine which target faces need to be sent to the source. More... | |
virtual void | initialise (const primitiveOldTimePatch &srcPatch, const vectorField &srcPointNormals, const vectorField &srcPointNormals0, const primitiveOldTimePatch &tgtPatch) |
Initialisation. More... | |
virtual void | rDistributeTgt (const primitiveOldTimePatch &tgtPatch) |
Send data that resulted from an intersection between the source. More... | |
Static Protected Member Functions inherited from patchToPatch | |
static List< remote > | distributePatch (const distributionMap &map, const primitiveOldTimePatch &patch, autoPtr< PrimitiveOldTimePatch< faceList, pointField >> &localPatchPtr) |
Distribute a patch given its distribution map. More... | |
Protected Attributes inherited from patchToPatch | |
const bool | reverse_ |
Flag to indicate that the two patches are co-directional and. More... | |
label | singleProcess_ |
Index of the processor holding all faces of the patchToPatch, or -1. More... | |
List< DynamicList< label > > | srcLocalTgtFaces_ |
For each source face, the coupled local target faces. More... | |
List< DynamicList< label > > | tgtLocalSrcFaces_ |
For each target face, the coupled local source faces. More... | |
autoPtr< distributionMap > | srcMapPtr_ |
Map from source patch faces to target-local source patch faces. More... | |
autoPtr< distributionMap > | tgtMapPtr_ |
Map from target patch faces to source-local target patch faces. More... | |
autoPtr< List< remote > > | localSrcProcFacesPtr_ |
When running in parallel, a map from local source face index to. More... | |
autoPtr< List< remote > > | localTgtProcFacesPtr_ |
When running in parallel, a map from local target face index to. More... | |
Definition at line 56 of file raysPatchToPatch.H.
rays | ( | const bool | reverse | ) |
Construct from components.
Definition at line 252 of file raysPatchToPatch.C.
~rays | ( | ) |
Destructor.
Definition at line 263 of file raysPatchToPatch.C.
TypeName | ( | "rays" | ) |
Runtime type information.
Foam::remote srcToTgtRay | ( | const primitiveOldTimePatch & | tgtPatch, |
const scalar | fraction, | ||
const label | srcFacei, | ||
const vector & | srcP, | ||
const vector & | srcN, | ||
point & | tgtP | ||
) | const |
Compute a ray intersection from the source side to the target.
Definition at line 269 of file raysPatchToPatch.C.
Referenced by nonConformalCyclicPolyPatch::ray().
Foam::remote tgtToSrcRay | ( | const primitiveOldTimePatch & | srcPatch, |
const scalar | fraction, | ||
const label | tgtFacei, | ||
const vector & | tgtP, | ||
const vector & | tgtN, | ||
point & | srcP | ||
) | const |
Compute a ray intersection from the target side to the source.
Definition at line 295 of file raysPatchToPatch.C.
Referenced by nonConformalCyclicPolyPatch::ray().