Determines a mapping between patch face centres and mesh cell or face centres and processors they're on. More...
#include <mappedPatchBase.H>


Classes | |
| class | nearestEqOp |
| class | maxProcEqOp |
| class | nearestWorldEqOp |
Public Types | |
| enum | sampleMode { NEARESTCELL , NEARESTPATCHFACE , NEARESTPATCHFACEAMI , NEARESTPATCHPOINT , NEARESTFACE , NEARESTONLYCELL } |
| Mesh items to sample. More... | |
| enum | offsetMode { UNIFORM , NONUNIFORM , NORMAL } |
| How to project face centres. More... | |
| typedef Tuple2< pointIndexHit, Tuple2< scalar, label > > | nearInfo |
| Helper class for finding nearest. | |
| typedef Tuple2< nearInfo, label > | nearInfoWorld |
| nearest + world | |
Public Member Functions | |
| TypeName ("mappedPatchBase") | |
| Runtime type information. | |
| mappedPatchBase (const polyPatch &) | |
| Construct from patch. | |
| mappedPatchBase (const polyPatch &pp, const word &sampleRegion, const sampleMode sampleMode, const word &samplePatch, const vectorField &offsets) | |
| Construct with offsetMode=non-uniform. | |
| mappedPatchBase (const polyPatch &pp, const word &sampleRegion, const sampleMode sampleMode, const word &samplePatch, const vector &uniformOffset) | |
| Construct from offsetMode=uniform. | |
| mappedPatchBase (const polyPatch &pp, const word &sampleRegion, const sampleMode sampleMode, const word &samplePatch, const scalar normalDistance) | |
| Construct from offsetMode=normal and distance. | |
| mappedPatchBase (const polyPatch &, const dictionary &) | |
| Construct from dictionary. | |
| mappedPatchBase (const polyPatch &, const sampleMode, const dictionary &) | |
| Construct from dictionary and (collocated) sample mode. | |
| mappedPatchBase (const polyPatch &, const mappedPatchBase &) | |
| Construct as copy, resetting patch. | |
| mappedPatchBase (const polyPatch &, const mappedPatchBase &, const labelUList &mapAddressing) | |
| Construct as copy, resetting patch, map original data. | |
| virtual | ~mappedPatchBase () |
| Destructor. | |
| void | clearOut () |
| void | setOffset (const scalar normalDist) |
| Change to normal offset with given distance. | |
| void | setOffset (const vector &uniformOffset) |
| Change to uniform offset with value. | |
| void | setOffset (const vectorField &offsets) |
| Change to non-uniform offsets. | |
| sampleMode | mode () const noexcept |
| What to sample. | |
| const word & | sampleWorld () const noexcept |
| World to sample. | |
| const word & | sampleRegion () const |
| Region to sample. | |
| const word & | samplePatch () const |
| Patch (only if NEARESTPATCHFACE). | |
| const word & | coupleGroup () const |
| PatchGroup (only if NEARESTPATCHFACE). | |
| label | sampleSize () const |
| Return size of mapped mesh/patch/boundary. | |
| const vector & | offset () const noexcept |
| Offset vector (from patch faces to destination mesh objects). | |
| const vectorField & | offsets () const noexcept |
| Offset vectors (from patch faces to destination mesh objects). | |
| label | getCommunicator () const |
| Get the communicator (worldComm or world-to-world). | |
| label | comm () const |
| Identical to getCommunicator(). | |
| bool | sameWorld () const |
| Is sample world the local world? | |
| bool | masterWorld () const |
| Is my world ordered before the sampleWorld? | |
| bool | sameRegion () const noexcept |
| Cached sampleRegion != mesh.name(). | |
| uniformDimensionedScalarField & | updateSampleMeshTime () const |
| Local mesh update time. | |
| uniformDimensionedScalarField & | updateMeshTime () const |
| Sample mesh upate time. | |
| bool | upToDate () const |
| const mapDistribute & | map () const |
| Return reference to the parallel distribution map. | |
| const AMIPatchToPatchInterpolation & | AMI (const bool forceUpdate=false) const |
| Return reference to the AMI interpolator. | |
| bool | owner () const |
| Is it owner. | |
| const autoPtr< Foam::searchableSurface > & | surfPtr () const |
| Return a pointer to the AMI projection surface. | |
| const polyMesh & | sampleMesh () const |
| Get the region mesh. | |
| const polyPatch & | samplePolyPatch () const |
| Get the patch on the region. | |
| tmp< pointField > | samplePoints () const |
| Get the sample points. | |
| const fileName & | sampleDatabasePath () const |
| bool | sampleDatabase () const noexcept |
| virtual fileName | sendPath (const label proci) const |
| virtual fileName | receivePath (const label proci) const |
| template<class Type> | |
| void | distribute (List< Type > &lst) const |
| Wrapper around map/interpolate data distribution. | |
| template<class Type, class CombineOp> | |
| void | distribute (List< Type > &lst, const CombineOp &cop) const |
| Wrapper around map/interpolate data distribution with operation. | |
| template<class Type> | |
| void | reverseDistribute (List< Type > &lst) const |
| Wrapper around map/interpolate data distribution. | |
| template<class Type, class CombineOp> | |
| void | reverseDistribute (List< Type > &lst, const CombineOp &cop) const |
| Wrapper around map/interpolate data distribution with operation. | |
| virtual void | write (Ostream &os) const |
| Write as a dictionary. | |
Static Public Member Functions | |
| static pointIndexHit | facePoint (const polyMesh &, const label facei, const polyMesh::cellDecomposition) |
| Get a point on the face given a face decomposition method: | |
| static fileName | sendPath (const fileName &root, const label proci) |
| Helper: return path to store data to be sent to processor i. | |
| static fileName | receivePath (const fileName &root, const label proci) |
| Helper: return path to store data to be received from processor i. | |
| static FOAM_NO_DANGLING_REFERENCE const objectRegistry & | subRegistry (const objectRegistry &obr, const fileName &path) |
| Lookup (sub)objectRegistry from '/' separated path (relative to objectRegistry). Creates non-existing intermediate ones. | |
| template<class Type> | |
| static void | storeField (objectRegistry &obr, const word &fieldName, const Field< Type > &values) |
| Store an IOField on the objectRegistry relative to obr. | |
| static void | writeDict (const objectRegistry &obr, dictionary &dict) |
| Convert objectRegistry contents into dictionary. | |
| static void | readDict (const dictionary &d, objectRegistry &obr) |
| (recursively) construct and register IOFields from dictionary | |
Static Public Attributes | |
| static const Enum< sampleMode > | sampleModeNames_ |
| static const Enum< offsetMode > | offsetModeNames_ |
Protected Member Functions | |
| virtual void | initGeometry (PstreamBuffers &) |
| Initialise the calculation of the patch geometry. | |
| virtual void | calcGeometry (PstreamBuffers &) |
| Calculate the patch geometry. | |
| virtual void | initMovePoints (PstreamBuffers &, const pointField &) |
| Initialise the patches for moving points. | |
| virtual void | movePoints (PstreamBuffers &, const pointField &) |
| Correct patches after moving points. | |
| virtual void | initUpdateMesh (PstreamBuffers &) |
| Initialise the update of the patch topology. | |
| virtual void | updateMesh (PstreamBuffers &) |
| Update of the patch topology. | |
| bool | addWorldConnection () |
| Add a world-world connection. | |
| label | getWorldCommunicator () const |
| Get the communicator for the world-world connection. | |
| const polyMesh & | lookupMesh (const word ®ion) const |
| Lookup mesh. | |
| const polyPatch & | lookupPatch (const word &sampleRegion, const word &samplePatch) const |
| Lookup patch. | |
| tmp< pointField > | facePoints (const polyPatch &) const |
| Get the points from face-centre-decomposition face centres and project them onto the face-diagonal-decomposition triangles. | |
| void | collectSamples (const label mySampleWorld, const pointField &facePoints, pointField &samples, labelList &patchFaceWorlds, labelList &patchFaceProcs, labelList &patchFaces, pointField &patchFc) const |
| Collect single list of samples and originating processor+face + wanted world. | |
| void | findLocalSamples (const sampleMode mode, const label sampleWorld, const word &sampleRegion, const word &samplePatch, const pointField &samplePoints, List< nearInfoWorld > &nearest) const |
| Find (local) cells/faces containing samples. | |
| void | findSamples (const sampleMode mode, const label myWorldIndex, const pointField &, const labelList &wantedWorlds, const labelList &origProcs, labelList &sampleProcs, labelList &sampleIndices, pointField &sampleLocations) const |
| Find (global) cells/faces containing samples. | |
| tmp< pointField > | samplePoints (const pointField &) const |
| Get the sample points given the face points. | |
| void | calcMapping () const |
| Calculate mapping. | |
| void | calcAMI () const |
| Calculate AMI interpolator. | |
Static Protected Member Functions | |
| static autoPtr< fileName > | readDatabase (const dictionary &dict) |
| Read optional database name from dictionary. | |
| static FOAM_NO_DANGLING_REFERENCE const objectRegistry & | subRegistry (const objectRegistry &obr, const wordList &names, const label index) |
| Lookup (sub)objectRegistry by following names of sub registries. Creates non-existing intermediate ones. | |
| template<class Type> | |
| static bool | writeIOField (const regIOobject &obj, dictionary &dict) |
| Attempt to detect an IOField<Type> and write to dictionary. | |
| template<class Type> | |
| static bool | constructIOField (const word &name, token &tok, Istream &is, objectRegistry &obr) |
| Attempt to read an IOField<Type> and store on objectRegistry. | |
Protected Attributes | |
| const polyPatch & | patch_ |
| Patch to sample. | |
| word | sampleWorld_ |
| World to sample. | |
| word | sampleRegion_ |
| Region to sample. | |
| const sampleMode | mode_ |
| What to sample. | |
| word | samplePatch_ |
| Patch (if in sampleMode NEARESTPATCH*). | |
| const coupleGroupIdentifier | coupleGroup_ |
| PatchGroup (if in sampleMode NEARESTPATCH*). | |
| const autoPtr< fileName > | sampleDatabasePtr_ |
| Empty or location of database. | |
| offsetMode | offsetMode_ |
| How to obtain samples. | |
| vector | offset_ |
| Offset vector (uniform). | |
| vectorField | offsets_ |
| Offset vector (nonuniform). | |
| scalar | distance_ |
| Offset distance (normal). | |
| label | communicator_ |
| Communicator. | |
| bool | sameRegion_ |
| Same region. | |
| autoPtr< mapDistribute > | mapPtr_ |
| Communication schedule: | |
| const bool | AMIReverse_ |
| Flag to indicate that slave patch should be reversed for AMI. | |
| autoPtr< AMIPatchToPatchInterpolation > | AMIPtr_ |
| Pointer to AMI interpolator. | |
| autoPtr< searchableSurface > | surfPtr_ |
| Pointer to projection surface employed by AMI interpolator. | |
| dictionary | surfDict_ |
| Dictionary storing projection surface description. | |
| autoPtr< uniformDimensionedScalarField > | updateMeshTimePtr_ |
| Local mesh update time. | |
| autoPtr< uniformDimensionedScalarField > | updateSampleMeshTimePtr_ |
| Sample mesh update time. | |
Determines a mapping between patch face centres and mesh cell or face centres and processors they're on.
If constructed from dictionary:
// Optional world to sample (default is all)
//sampleWorld solidSim;
// Optional explicit coupling (requires functionObject to synchronise
// databases. Default is close coupling (bc to bc)
//sampleDatabase true;
// Region to sample (default is region0)
sampleRegion region0;
// What to sample:
// - nearestCell : sample cell containing point
// - nearestOnlyCell : nearest sample cell (even if not containing
// point)
// - nearestPatchFace : nearest face on selected patch
// - nearestPatchFaceAMI : nearest face on selected patch
- patches need not conform
- uses AMI interpolation
// - nearestFace : nearest boundary face on any patch
// - nearestPatchPoint : nearest patch point (for coupled points
// this might be any of the points so you have
// to guarantee the point data is synchronised
// beforehand)
sampleMode nearestCell;
// If sampleMode is nearestPatchFace : patch to find faces of
samplePatch movingWall;
// If sampleMode is nearestPatchFace : specify patchgroup to find
// samplePatch and sampleRegion (if not provided)
coupleGroup baffleGroup;
// How to supply offset (w.r.t. my patch face centres):
// - uniform : single offset vector
// - nonuniform : per-face offset vector
// - normal : using supplied distance and face normal
offsetMode uniform;
// According to offsetMode (see above) supply one of
// offset, offsets or distance
offset (1 0 0);
Note: if offsetMode is normal it uses outwards pointing normals. So supply a negative distance if sampling inside the domain.
Definition at line 110 of file mappedPatchBase.H.
| typedef Tuple2<pointIndexHit, Tuple2<scalar, label> > nearInfo |
Helper class for finding nearest.
Nearest:
Definition at line 152 of file mappedPatchBase.H.
| typedef Tuple2<nearInfo, label> nearInfoWorld |
nearest + world
Used to only look at entries from same world
Definition at line 200 of file mappedPatchBase.H.
| enum sampleMode |
Mesh items to sample.
Definition at line 119 of file mappedPatchBase.H.
| enum offsetMode |
How to project face centres.
| Enumerator | |
|---|---|
| UNIFORM | single offset vector |
| NONUNIFORM | per-face offset vector |
| NORMAL | use face normal + distance |
Definition at line 132 of file mappedPatchBase.H.
|
explicit |
Construct from patch.
Definition at line 1221 of file mappedPatchBase.C.
References AMIPtr_, AMIReverse_, communicator_, coupleGroup_, distance_, mapPtr_, mesh, mode_, Foam::name(), NEARESTPATCHFACE, offset_, offsetMode_, offsets_, patch_, pp(), sameRegion_, sampleDatabasePtr_, samplePatch_, sampleRegion_, sampleWorld_, surfDict_, surfPtr_, UNIFORM, and Foam::Zero.
Referenced by mappedFieldFvPatchField< Type >::mappedFieldFvPatchField(), mappedFieldFvPatchField< Type >::mappedFieldFvPatchField(), mappedFieldFvPatchField< Type >::mappedFieldFvPatchField(), mappedFieldFvPatchField< Type >::mappedFieldFvPatchField(), mappedFieldFvPatchField< Type >::mappedFieldFvPatchField(), mappedFieldFvPatchField< Type >::mappedFieldFvPatchField(), mappedMixedFieldFvPatchField< Type >::mappedMixedFieldFvPatchField(), mappedMixedFieldFvPatchField< Type >::mappedMixedFieldFvPatchField(), mappedMixedFieldFvPatchField< Type >::mappedMixedFieldFvPatchField(), mappedMixedFieldFvPatchField< Type >::mappedMixedFieldFvPatchField(), mappedMixedFieldFvPatchField< Type >::mappedMixedFieldFvPatchField(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPolyPatch::mappedPolyPatch(), mappedPolyPatch::mappedPolyPatch(), mappedPolyPatch::mappedPolyPatch(), mappedPolyPatch::mappedPolyPatch(), mappedPolyPatch::mappedPolyPatch(), mappedPolyPatch::mappedPolyPatch(), mappedPolyPatch::mappedPolyPatch(), mappedWallPolyPatch::mappedWallPolyPatch(), mappedWallPolyPatch::mappedWallPolyPatch(), mappedWallPolyPatch::mappedWallPolyPatch(), mappedWallPolyPatch::mappedWallPolyPatch(), mappedWallPolyPatch::mappedWallPolyPatch(), mappedWallPolyPatch::mappedWallPolyPatch(), mappedWallPolyPatch::mappedWallPolyPatch(), Sampled< Type >::Sampled(), Sampled< Type >::Sampled(), semiPermeableBaffleMassFractionFvPatchScalarField::semiPermeableBaffleMassFractionFvPatchScalarField(), semiPermeableBaffleMassFractionFvPatchScalarField::semiPermeableBaffleMassFractionFvPatchScalarField(), semiPermeableBaffleMassFractionFvPatchScalarField::semiPermeableBaffleMassFractionFvPatchScalarField(), semiPermeableBaffleMassFractionFvPatchScalarField::semiPermeableBaffleMassFractionFvPatchScalarField(), semiPermeableBaffleMassFractionFvPatchScalarField::semiPermeableBaffleMassFractionFvPatchScalarField(), thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField(), thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField(), thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField(), thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField(), thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField(), and TypeName().


| mappedPatchBase | ( | const polyPatch & | pp, |
| const word & | sampleRegion, | ||
| const sampleMode | sampleMode, | ||
| const word & | samplePatch, | ||
| const vectorField & | offsets ) |
Construct with offsetMode=non-uniform.
Definition at line 1246 of file mappedPatchBase.C.
References mappedPatchBase(), mode(), offsets(), pp(), samplePatch(), sampleRegion(), and setOffset().

| mappedPatchBase | ( | const polyPatch & | pp, |
| const word & | sampleRegion, | ||
| const sampleMode | sampleMode, | ||
| const word & | samplePatch, | ||
| const vector & | uniformOffset ) |
Construct from offsetMode=uniform.
Definition at line 1268 of file mappedPatchBase.C.
References mappedPatchBase(), mode(), pp(), samplePatch(), sampleRegion(), and setOffset().

| mappedPatchBase | ( | const polyPatch & | pp, |
| const word & | sampleRegion, | ||
| const sampleMode | sampleMode, | ||
| const word & | samplePatch, | ||
| const scalar | normalDistance ) |
Construct from offsetMode=normal and distance.
Definition at line 1290 of file mappedPatchBase.C.
References addWorldConnection(), AMIPtr_, AMIReverse_, communicator_, coupleGroup_, distance_, mapPtr_, mesh, mode(), mode_, Foam::name(), NORMAL, offset_, offsetMode_, offsets_, patch_, pp(), sameRegion_, sampleDatabasePtr_, samplePatch(), samplePatch_, sampleRegion(), sampleRegion_, sampleWorld_, surfDict_, surfPtr_, and Foam::Zero.

| mappedPatchBase | ( | const polyPatch & | pp, |
| const dictionary & | dict ) |
Construct from dictionary.
Definition at line 1326 of file mappedPatchBase.C.
References addWorldConnection(), AMIPtr_, AMIReverse_, communicator_, coupleGroup_, dict, distance_, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, mapPtr_, mesh, mode_, Foam::name(), NEARESTPATCHFACE, NEARESTPATCHFACEAMI, Foam::New(), NONUNIFORM, NORMAL, offset_, offsetMode_, offsetModeNames_, offsets_, patch_, pp(), readDatabase(), sameRegion_, sampleDatabasePtr_, sampleModeNames_, samplePatch_, sampleRegion_, sampleWorld_, surfDict_, surfPtr_, UNIFORM, and Foam::Zero.

| mappedPatchBase | ( | const polyPatch & | pp, |
| const sampleMode | mode, | ||
| const dictionary & | dict ) |
Construct from dictionary and (collocated) sample mode.
(only for nearestPatchFace, nearestPatchFaceAMI, nearestPatchPoint) Assumes zero offset.
Definition at line 1428 of file mappedPatchBase.C.
References addWorldConnection(), AMIPtr_, AMIReverse_, communicator_, coupleGroup_, dict, distance_, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, mapPtr_, mesh, mode(), mode_, Foam::name(), NEARESTPATCHFACE, NEARESTPATCHFACEAMI, Foam::New(), offset_, offsetMode_, offsets_, patch_, pp(), readDatabase(), sameRegion_, sampleDatabasePtr_, sampleModeNames_, samplePatch_, sampleRegion_, sampleWorld_, surfDict_, surfPtr_, UNIFORM, and Foam::Zero.

| mappedPatchBase | ( | const polyPatch & | pp, |
| const mappedPatchBase & | mpb ) |
Construct as copy, resetting patch.
Definition at line 1501 of file mappedPatchBase.C.
References AMIPtr_, AMIReverse_, communicator_, coupleGroup_, distance_, mappedPatchBase(), mapPtr_, mode_, offset_, offsetMode_, offsets_, patch_, pp(), sameRegion_, sampleDatabasePtr_, samplePatch_, sampleRegion_, sampleWorld_, surfDict_, and surfPtr_.

| mappedPatchBase | ( | const polyPatch & | pp, |
| const mappedPatchBase & | mpb, | ||
| const labelUList & | mapAddressing ) |
Construct as copy, resetting patch, map original data.
Definition at line 1533 of file mappedPatchBase.C.
References AMIPtr_, AMIReverse_, communicator_, coupleGroup_, distance_, mappedPatchBase(), mapPtr_, mode_, NONUNIFORM, offset_, offsetMode_, offsets_, patch_, pp(), sameRegion_, sampleDatabasePtr_, samplePatch_, sampleRegion_, sampleWorld_, surfDict_, and surfPtr_.

|
virtual |
Destructor.
Definition at line 1573 of file mappedPatchBase.C.
References clearOut().

|
inlineprotectedvirtual |
Initialise the calculation of the patch geometry.
Reimplemented in mappedPolyPatch, and mappedWallPolyPatch.
Definition at line 356 of file mappedPatchBase.H.
Referenced by mappedPolyPatch::initGeometry().

|
inlineprotectedvirtual |
Calculate the patch geometry.
Reimplemented in mappedPolyPatch, and mappedWallPolyPatch.
Definition at line 362 of file mappedPatchBase.H.
Referenced by mappedPolyPatch::calcGeometry(), and mappedWallPolyPatch::calcGeometry().

|
inlineprotectedvirtual |
Initialise the patches for moving points.
Reimplemented in mappedPolyPatch, and mappedWallPolyPatch.
Definition at line 368 of file mappedPatchBase.H.
Referenced by mappedPolyPatch::initMovePoints(), and mappedWallPolyPatch::initMovePoints().

|
inlineprotectedvirtual |
Correct patches after moving points.
Reimplemented in mappedPolyPatch, and mappedWallPolyPatch.
Definition at line 374 of file mappedPatchBase.H.
Referenced by mappedPolyPatch::movePoints(), and mappedWallPolyPatch::movePoints().

|
inlineprotectedvirtual |
Initialise the update of the patch topology.
Reimplemented in mappedPolyPatch, and mappedWallPolyPatch.
Definition at line 380 of file mappedPatchBase.H.
Referenced by mappedPolyPatch::initUpdateMesh(), and mappedWallPolyPatch::initUpdateMesh().

|
protectedvirtual |
Update of the patch topology.
Reimplemented in mappedPolyPatch, and mappedWallPolyPatch.
Definition at line 82 of file mappedPatchBase.C.
References clearOut().
Referenced by mappedPolyPatch::updateMesh(), and mappedWallPolyPatch::updateMesh().


|
protected |
Add a world-world connection.
Definition at line 116 of file mappedPatchBase.C.
References multiWorldConnections::New(), patch_, runTime, sameWorld(), and sampleWorld_.
Referenced by mappedPatchBase(), mappedPatchBase(), and mappedPatchBase().


|
protected |
Get the communicator for the world-world connection.
Definition at line 131 of file mappedPatchBase.C.
References UPstream::commWorld(), multiWorldConnections::getCommByName(), multiWorldConnections::New(), patch_, runTime, sameWorld(), and sampleWorld_.
Referenced by comm(), and getCommunicator().


|
protected |
Lookup mesh.
Definition at line 1620 of file mappedPatchBase.C.
References objectRegistry::lookupObject(), IOobject::name(), patch_, sampleRegion(), and objectRegistry::time().
Referenced by findLocalSamples(), lookupPatch(), and sampleMesh().


|
protected |
Lookup patch.
Definition at line 1635 of file mappedPatchBase.C.
References polyMesh::boundaryMesh(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, polyBoundaryMesh::findPatchID(), lookupMesh(), samplePatch(), sampleRegion(), and sampleRegion_.
Referenced by findLocalSamples(), mappedPolyPatch::nbrCells(), mappedWallPolyPatch::nbrCells(), mappedPolyPatch::neighbPolyPatchID(), mappedWallPolyPatch::neighbPolyPatchID(), mappedPolyPatch::newInternalProcFaces(), and mappedWallPolyPatch::newInternalProcFaces().


|
protected |
Get the points from face-centre-decomposition face centres and project them onto the face-diagonal-decomposition triangles.
Definition at line 144 of file mappedPatchBase.C.
References polyMesh::FACE_DIAG_TRIS, Foam::facePoint(), facePoints(), forAll, mesh, tmp< T >::New(), patch_, and pp().
Referenced by calcMapping(), collectSamples(), facePoints(), and samplePoints().


|
protected |
Collect single list of samples and originating processor+face + wanted world.
Definition at line 172 of file mappedPatchBase.C.
References Pstream::allGatherList(), UPstream::allGatherValues(), Foam::ListListOps::combine(), UPstream::commWarn(), DebugInFunction, Foam::endl(), facePoints(), forAll, getCommunicator(), Foam::identity(), UPstream::msgType(), UPstream::myProcNo(), Foam::nl, UPstream::nProcs(), patch_, Foam::Perr, List< T >::resize(), samplePoints(), samples(), and UList< T >::size().
Referenced by calcMapping().


|
protected |
Find (local) cells/faces containing samples.
Note: face-diagonal decomposition
Note: face-diagonal decomposition
Note: face-diagonal decomposition
Definition at line 269 of file mappedPatchBase.C.
References Foam::abort(), DebugInFunction, e, Foam::exit(), treeBoundBox::extend(), Foam::FatalError, FatalErrorInFunction, meshSearch::findNearestFace(), Tuple2< T1, T2 >::first(), forAll, getCommunicator(), lookupMesh(), lookupPatch(), boundBox::magSqr(), mesh, mode(), UPstream::myProcNo(), NEARESTCELL, NEARESTFACE, NEARESTONLYCELL, NEARESTPATCHFACE, NEARESTPATCHFACEAMI, NEARESTPATCHPOINT, MeshObject< polyMesh, GeometricMeshObject, meshSearchMeshObject >::New(), Foam::nl, pp(), rndGen, sampleModeNames_, samplePatch(), sampleRegion(), samples(), Tuple2< T1, T2 >::second(), List< T >::setSize(), indexedOctree< Type >::shapes(), Foam::sqr(), and tree().
Referenced by findSamples().


|
protected |
Find (global) cells/faces containing samples.
Definition at line 575 of file mappedPatchBase.C.
References Pstream::allGatherList(), DynamicList< T, SizeMin >::append(), UPstream::commWarn(), DebugInFunction, Foam::endl(), findLocalSamples(), Tuple2< T1, T2 >::first(), UList< T >::first(), forAll, getCommunicator(), PointIndexHit< PointType >::hit(), PointIndexHit< PointType >::index(), Pstream::listCombineReduce(), VectorSpace< Form, Cmpt, Ncmpts >::max, mode(), UPstream::msgType(), UPstream::myProcNo(), Foam::nl, UPstream::nProcs(), PointIndexHit< PointType >::point(), Foam::Pout, samplePatch_, sampleRegion_, samples(), Tuple2< T1, T2 >::second(), List< T >::setSize(), UList< T >::size(), and Foam::sqr().
Referenced by calcMapping().


|
protected |
Get the sample points given the face points.
Definition at line 1767 of file mappedPatchBase.C.
References distance_, fld(), Foam::mag(), n, tmp< T >::New(), NONUNIFORM, NORMAL, offset_, offsetMode_, offsets_, patch_, and UNIFORM.
Referenced by calcAMI(), calcMapping(), collectSamples(), samplePoints(), TypeName(), and Sampled< Type >::value().


|
protected |
Calculate mapping.
Definition at line 721 of file mappedPatchBase.C.
References Foam::abort(), UPstream::allWorlds(), DynamicList< T, SizeMin >::append(), collectSamples(), DebugInFunction, Foam::endl(), Foam::exit(), facePoints(), Foam::FatalError, FatalErrorInFunction, UList< T >::find(), findSamples(), forAll, Foam::gAverage(), getCommunicator(), Foam::mag(), map(), mapPtr_, UPstream::master(), mode_, UPstream::msgType(), UPstream::myWorld(), UPstream::myWorldID(), OFstream::name(), NEARESTCELL, NEARESTONLYCELL, NEARESTPATCHFACE, Foam::nl, offsetMode_, offsetModeNames_, patch_, Foam::Pout, Foam::reduce(), sameWorld(), sampleModeNames_, samplePatch(), samplePoints(), sampleRegion(), samples(), sampleWorld(), sampleWorld_, HashSet< Key, Hash >::set(), UList< T >::size(), HashSet< Key, Hash >::test(), Foam::type(), updateMeshTime(), updateSampleMeshTime(), WarningInFunction, and Foam::meshTools::writeOBJ().
Referenced by map().


|
protected |
Calculate AMI interpolator.
Definition at line 1093 of file mappedPatchBase.C.
References AMIPtr_, UPstream::commWarn(), UPstream::commWorld(), DebugInFunction, Foam::endl(), getCommunicator(), PrimitivePatch< FaceList, PointField >::localFaces(), PrimitivePatch< FaceList, PointField >::localPoints(), masterWorld(), Foam::nl, os(), patch_, sameWorld(), samplePoints(), samplePolyPatch(), sampleWorld_, UList< T >::size(), surfPtr(), and Foam::meshTools::writeOBJ().
Referenced by AMI().


|
staticprotected |
Read optional database name from dictionary.
Definition at line 88 of file mappedPatchBase.C.
References dict, autoPtr< T >::New(), and fileName::null.
Referenced by mappedPatchBase(), and mappedPatchBase().


|
staticprotected |
Lookup (sub)objectRegistry by following names of sub registries. Creates non-existing intermediate ones.
Definition at line 1200 of file mappedPatchBase.C.
References names, subRegistry(), and objectRegistry::subRegistry().
Referenced by mappedPatchFieldBase< Type >::retrieveField(), mappedPatchFieldBase< scalar >::retrieveField(), mappedPatchFieldBase< Type >::storeField(), subRegistry(), subRegistry(), and syncObjects::sync().


|
staticprotected |
Attempt to detect an IOField<Type> and write to dictionary.
Definition at line 269 of file mappedPatchBaseTemplates.C.
References dict, fld(), and Foam::isA().
Referenced by writeDict().


|
staticprotected |
Attempt to read an IOField<Type> and store on objectRegistry.
Definition at line 297 of file mappedPatchBaseTemplates.C.
References objectRegistry::getObjectPtr(), token::isCompound(), Foam::name(), IOobjectOption::NO_READ, IOobjectOption::NO_WRITE, IOobjectOption::REGISTER, regIOobject::store(), List< T >::transfer(), and token::transferCompoundToken().
Referenced by readDict().


| TypeName | ( | "mappedPatchBase" | ) |
Runtime type information.
References AMI(), comm(), coupleGroup(), facePoint(), getCommunicator(), map(), mappedPatchBase(), masterWorld(), Foam::noexcept, offset(), offsets(), owner(), pp(), sameRegion(), sameWorld(), sampleMesh(), samplePatch(), samplePoints(), samplePolyPatch(), sampleRegion(), sampleSize(), sampleWorld(), surfPtr(), updateMeshTime(), updateSampleMeshTime(), and upToDate().

| void clearOut | ( | ) |
Definition at line 1579 of file mappedPatchBase.C.
References AMIPtr_, and mapPtr_.
Referenced by thermalBaffle1DFvPatchScalarField< solidType >::autoMap(), mappedFieldFvPatchField< Type >::autoMap(), mappedMixedFieldFvPatchField< Type >::autoMap(), mappedFieldFvPatchField< Type >::rmap(), mappedMixedFieldFvPatchField< Type >::rmap(), setOffset(), setOffset(), setOffset(), updateMesh(), and ~mappedPatchBase().

| void setOffset | ( | const scalar | normalDist | ) |
Change to normal offset with given distance.
Definition at line 1590 of file mappedPatchBase.C.
References clearOut(), distance_, NORMAL, offset_, offsetMode_, offsets_, and Foam::Zero.
Referenced by mappedPatchBase(), and mappedPatchBase().


| void setOffset | ( | const vector & | uniformOffset | ) |
Change to uniform offset with value.
Definition at line 1600 of file mappedPatchBase.C.
References clearOut(), distance_, offset_, offsetMode_, offsets_, UNIFORM, and Foam::Zero.

| void setOffset | ( | const vectorField & | offsets | ) |
Change to non-uniform offsets.
Definition at line 1610 of file mappedPatchBase.C.
References clearOut(), distance_, NONUNIFORM, offset_, offsetMode_, offsets(), offsets_, and Foam::Zero.

|
inlinenoexcept |
What to sample.
Definition at line 23 of file mappedPatchBaseI.H.
References mode_, and Foam::noexcept.
Referenced by findLocalSamples(), findSamples(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPolyPatch::mappedPolyPatch(), mappedPolyPatch::mappedPolyPatch(), mappedVariableThicknessWallPolyPatch::mappedVariableThicknessWallPolyPatch(), mappedVariableThicknessWallPolyPatch::mappedVariableThicknessWallPolyPatch(), mappedVelocityFluxFixedValueFvPatchField::mappedVelocityFluxFixedValueFvPatchField(), mappedWallPolyPatch::mappedWallPolyPatch(), mappedWallPolyPatch::mappedWallPolyPatch(), Sampled< Type >::Sampled(), mappedPolyPatch::TypeName(), mappedVariableThicknessWallPolyPatch::TypeName(), mappedWallPolyPatch::TypeName(), mappedFixedInternalValueFvPatchField< Type >::updateCoeffs(), and mappedVelocityFluxFixedValueFvPatchField::updateCoeffs().

|
inlinenoexcept |
World to sample.
Definition at line 29 of file mappedPatchBaseI.H.
References Foam::noexcept, and sampleWorld_.
Referenced by calcMapping(), and TypeName().

|
inline |
Region to sample.
Definition at line 35 of file mappedPatchBaseI.H.
References coupleGroup_, Foam::exit(), Foam::FatalError, FatalErrorInFunction, patch_, sampleMesh(), samplePatch_, and sampleRegion_.
Referenced by calcMapping(), findLocalSamples(), lookupMesh(), lookupPatch(), mappedFieldFvPatchField< Type >::mappedFieldFvPatchField(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPolyPatch::mappedPolyPatch(), mappedPolyPatch::mappedPolyPatch(), mappedVariableThicknessWallPolyPatch::mappedVariableThicknessWallPolyPatch(), mappedVariableThicknessWallPolyPatch::mappedVariableThicknessWallPolyPatch(), mappedWallPolyPatch::mappedWallPolyPatch(), mappedWallPolyPatch::mappedWallPolyPatch(), owner(), sampleMesh(), mappedFieldFvPatchField< Type >::TypeName(), TypeName(), mappedPolyPatch::TypeName(), mappedVariableThicknessWallPolyPatch::TypeName(), mappedWallPolyPatch::TypeName(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs(), and Sampled< Type >::value().


|
inline |
Patch (only if NEARESTPATCHFACE).
Definition at line 61 of file mappedPatchBaseI.H.
References coupleGroup_, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, patch_, sampleMesh(), samplePatch_, and sampleRegion_.
Referenced by calcMapping(), findLocalSamples(), lookupPatch(), mappedFieldFvPatchField< Type >::mappedFieldFvPatchField(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPolyPatch::mappedPolyPatch(), mappedPolyPatch::mappedPolyPatch(), mappedVariableThicknessWallPolyPatch::mappedVariableThicknessWallPolyPatch(), mappedVariableThicknessWallPolyPatch::mappedVariableThicknessWallPolyPatch(), mappedWallPolyPatch::mappedWallPolyPatch(), mappedWallPolyPatch::mappedWallPolyPatch(), regionModel::nbrCoupledPatchID(), samplePolyPatch(), mappedFieldFvPatchField< Type >::TypeName(), TypeName(), mappedPolyPatch::TypeName(), mappedVariableThicknessWallPolyPatch::TypeName(), mappedWallPolyPatch::TypeName(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs(), mappedVelocityFluxFixedValueFvPatchField::updateCoeffs(), and Sampled< Type >::value().


|
inline |
PatchGroup (only if NEARESTPATCHFACE).
Definition at line 87 of file mappedPatchBaseI.H.
References coupleGroup_.
Referenced by TypeName().

|
inline |
Return size of mapped mesh/patch/boundary.
Definition at line 93 of file mappedPatchBaseI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, mesh, mode_, NEARESTCELL, NEARESTFACE, NEARESTPATCHFACE, NEARESTPATCHFACEAMI, NEARESTPATCHPOINT, sampleMesh(), and samplePolyPatch().
Referenced by reverseDistribute(), reverseDistribute(), and TypeName().


|
inlinenoexcept |
Offset vector (from patch faces to destination mesh objects).
Definition at line 128 of file mappedPatchBaseI.H.
References Foam::noexcept, and offset_.
Referenced by mappedPolyPatch::mappedPolyPatch(), mappedPolyPatch::mappedPolyPatch(), mappedVariableThicknessWallPolyPatch::mappedVariableThicknessWallPolyPatch(), mappedVariableThicknessWallPolyPatch::mappedVariableThicknessWallPolyPatch(), mappedWallPolyPatch::mappedWallPolyPatch(), mappedWallPolyPatch::mappedWallPolyPatch(), TypeName(), mappedPolyPatch::TypeName(), mappedVariableThicknessWallPolyPatch::TypeName(), and mappedWallPolyPatch::TypeName().

|
inlinenoexcept |
Offset vectors (from patch faces to destination mesh objects).
Definition at line 134 of file mappedPatchBaseI.H.
References Foam::noexcept, and offsets_.
Referenced by mappedPatchBase(), setOffset(), and TypeName().

|
inline |
Get the communicator (worldComm or world-to-world).
Definition at line 140 of file mappedPatchBaseI.H.
References communicator_, and getWorldCommunicator().
Referenced by calcAMI(), calcMapping(), collectSamples(), distribute(), distribute(), findLocalSamples(), findSamples(), reverseDistribute(), reverseDistribute(), and TypeName().


|
inline |
Identical to getCommunicator().
Definition at line 151 of file mappedPatchBaseI.H.
References communicator_, and getWorldCommunicator().
Referenced by TypeName().


|
inline |
Is sample world the local world?
Definition at line 162 of file mappedPatchBaseI.H.
References UPstream::allWorlds(), UPstream::myWorld(), and sampleWorld_.
Referenced by addWorldConnection(), calcAMI(), calcMapping(), distribute(), distribute(), getWorldCommunicator(), masterWorld(), reverseDistribute(), reverseDistribute(), TypeName(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs(), and upToDate().


|
inline |
Is my world ordered before the sampleWorld?
Definition at line 173 of file mappedPatchBaseI.H.
References UPstream::allWorlds(), UList< T >::find(), UPstream::myWorldID(), sameWorld(), and sampleWorld_.
Referenced by calcAMI(), distribute(), and TypeName().


|
inlinenoexcept |
Cached sampleRegion != mesh.name().
Definition at line 186 of file mappedPatchBaseI.H.
References Foam::noexcept, and sameRegion_.
Referenced by Sampled< Type >::haveSampleField(), Sampled< Type >::sampleField(), TypeName(), and Sampled< Type >::value().

|
inline |
Local mesh update time.
Definition at line 193 of file mappedPatchBaseI.H.
References mesh, IOobjectOption::NO_READ, IOobjectOption::NO_REGISTER, IOobjectOption::NO_WRITE, patch_, and updateSampleMeshTimePtr_.
Referenced by calcMapping(), TypeName(), and upToDate().

|
inline |
Sample mesh upate time.
Definition at line 224 of file mappedPatchBaseI.H.
References mesh, IOobjectOption::NO_READ, IOobjectOption::NO_REGISTER, IOobjectOption::NO_WRITE, patch_, and updateMeshTimePtr_.
Referenced by calcMapping(), TypeName(), and upToDate().

| bool upToDate | ( | ) | const |
Definition at line 1688 of file mappedPatchBase.C.
References Foam::mag(), mesh, mode_, polyMesh::moving(), NEARESTPATCHFACE, NEARESTPATCHFACEAMI, NEARESTPATCHPOINT, patch_, points, UPstream::reduceAnd(), sameWorld(), sampleMesh(), samplePolyPatch(), updateMeshTime(), updateSampleMeshTime(), upToDate(), and polyMesh::upToDatePoints().
Referenced by AMI(), map(), TypeName(), and upToDate().


|
inline |
Return reference to the parallel distribution map.
Definition at line 251 of file mappedPatchBaseI.H.
References AMIPtr_, calcMapping(), mapPtr_, and upToDate().
Referenced by calcMapping(), distribute(), distribute(), mappedPolyPatch::mapCollocatedFaces(), mappedWallPolyPatch::mapCollocatedFaces(), semiPermeableBaffleMassFractionFvPatchScalarField::phiY(), reverseDistribute(), reverseDistribute(), TypeName(), thermalBaffle1DFvPatchScalarField< solidType >::updateCoeffs(), and Sampled< Type >::value().


|
inline |
Return reference to the AMI interpolator.
Definition at line 272 of file mappedPatchBaseI.H.
References AMIPtr_, calcAMI(), mapPtr_, and upToDate().
Referenced by distribute(), distribute(), reverseDistribute(), reverseDistribute(), and TypeName().


|
inline |
Is it owner.
Definition at line 294 of file mappedPatchBaseI.H.
References patch_, and sampleRegion().
Referenced by mappedPolyPatch::masterImplicit(), mappedWallPolyPatch::masterImplicit(), and TypeName().


| const Foam::autoPtr< Foam::searchableSurface > & surfPtr | ( | ) | const |
Return a pointer to the AMI projection surface.
Definition at line 1061 of file mappedPatchBase.C.
References mesh, IOobjectOption::MUST_READ, searchableSurface::New(), IOobjectOption::NO_WRITE, patch_, surfDict_, and surfPtr_.
Referenced by calcAMI(), and TypeName().


| const Foam::polyMesh & sampleMesh | ( | ) | const |
Get the region mesh.
Definition at line 1656 of file mappedPatchBase.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, lookupMesh(), UPstream::myWorld(), sampleRegion(), and sampleWorld_.
Referenced by Sampled< Type >::haveSampleField(), Sampled< Type >::sampleField(), samplePatch(), samplePolyPatch(), sampleRegion(), sampleSize(), TypeName(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs(), humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs(), mappedFixedInternalValueFvPatchField< Type >::updateCoeffs(), mappedFlowRateFvPatchVectorField::updateCoeffs(), mappedVelocityFluxFixedValueFvPatchField::updateCoeffs(), upToDate(), and Sampled< Type >::value().


| const Foam::polyPatch & samplePolyPatch | ( | ) | const |
Get the patch on the region.
Definition at line 1669 of file mappedPatchBase.C.
References polyMesh::boundaryMesh(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, polyBoundaryMesh::findPatchID(), polyBoundaryMesh::names(), sampleMesh(), samplePatch(), and sampleRegion_.
Referenced by calcAMI(), semiPermeableBaffleMassFractionFvPatchScalarField::phiY(), sampleSize(), TypeName(), thermalBaffle1DFvPatchScalarField< solidType >::updateCoeffs(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs(), humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs(), mappedFixedInternalValueFvPatchField< Type >::updateCoeffs(), mappedFlowRateFvPatchVectorField::updateCoeffs(), and upToDate().


| Foam::tmp< Foam::pointField > samplePoints | ( | ) | const |
Get the sample points.
Definition at line 1802 of file mappedPatchBase.C.
References facePoints(), patch_, and samplePoints().

|
static |
Get a point on the face given a face decomposition method:
face-centre-tet : face centre. Returns index of face. face-planes : face centre. Returns index of face. face-diagonal : intersection of ray from cellcentre to facecentre with any of the triangles. Returns index (0..size-2) of triangle.
Definition at line 1808 of file mappedPatchBase.C.
References Foam::abort(), polyMesh::CELL_TETS, PointHit< PointType >::distance(), f(), polyMesh::FACE_CENTRE_TRIS, polyMesh::FACE_DIAG_TRIS, polyMesh::FACE_PLANES, Foam::FatalError, FatalErrorInFunction, intersection::HALF_RAY, PointHit< PointType >::hit(), triangle< Point, PointRef >::intersection(), mesh, p, and PointHit< PointType >::point().
Referenced by nearWallFields::calcAddressing(), and TypeName().


|
inline |
Definition at line 770 of file mappedPatchBase.H.
References sampleDatabasePath(), and sampleDatabasePtr_.
Referenced by receivePath(), sampleDatabasePath(), and sendPath().


|
inlinenoexcept |
Definition at line 775 of file mappedPatchBase.H.
References Foam::noexcept, and sampleDatabasePtr_.
|
static |
Helper: return path to store data to be sent to processor i.
Definition at line 1913 of file mappedPatchBase.C.
References Foam::name().
Referenced by sendPath(), and syncObjects::sync().


|
virtual |
Definition at line 1924 of file mappedPatchBase.C.
References sampleDatabasePath(), and sendPath().

|
static |
Helper: return path to store data to be received from processor i.
Definition at line 1930 of file mappedPatchBase.C.
References Foam::name().
Referenced by receivePath(), and syncObjects::sync().


|
virtual |
Definition at line 1941 of file mappedPatchBase.C.
References receivePath(), and sampleDatabasePath().

|
static |
Lookup (sub)objectRegistry from '/' separated path (relative to objectRegistry). Creates non-existing intermediate ones.
Definition at line 1889 of file mappedPatchBase.C.
References fileName::clean(), fileName::components(), names, path(), and subRegistry().

|
static |
Store an IOField on the objectRegistry relative to obr.
Definition at line 340 of file mappedPatchBaseTemplates.C.
References objectRegistry::getObjectPtr(), IOobjectOption::NO_READ, IOobjectOption::NO_WRITE, IOobjectOption::REGISTER, and regIOobject::store().
Referenced by mappedPatchFieldBase< scalar >::mappedPatchFieldBase(), mappedPatchFieldBase< scalar >::storeAndRetrieveField(), and mappedPatchFieldBase< Type >::storeField().


|
static |
Convert objectRegistry contents into dictionary.
Definition at line 1947 of file mappedPatchBase.C.
References dict, forAllIters, Foam::isA(), IOobject::name(), os(), regIOobject::writeData(), writeDict(), and writeIOField().
Referenced by syncObjects::sync(), and writeDict().


|
static |
(recursively) construct and register IOFields from dictionary
Definition at line 1987 of file mappedPatchBase.C.
References constructIOField(), e, Foam::exit(), Foam::FatalError, FatalErrorInFunction, readDict(), and objectRegistry::subRegistry().
Referenced by readDict(), and syncObjects::sync().


| void distribute | ( | List< Type > & | lst | ) | const |
Wrapper around map/interpolate data distribution.
Definition at line 23 of file mappedPatchBaseTemplates.C.
References AMI(), UPstream::commWarn(), UPstream::commWorld(), getCommunicator(), map(), masterWorld(), mode_, NEARESTPATCHFACEAMI, and sameWorld().
Referenced by solidAbsorption::a(), solidAbsorption::e(), regionModel::toRegion(), regionModel::toRegion(), turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs(), humidityTemperatureCoupledMixedFvPatchScalarField::updateCoeffs(), mappedFixedInternalValueFvPatchField< Type >::updateCoeffs(), mappedFlowRateFvPatchVectorField::updateCoeffs(), mappedVelocityFluxFixedValueFvPatchField::updateCoeffs(), and Sampled< Type >::value().


| void distribute | ( | List< Type > & | lst, |
| const CombineOp & | cop ) const |
Wrapper around map/interpolate data distribution with operation.
Definition at line 101 of file mappedPatchBaseTemplates.C.
References AMI(), UPstream::commWarn(), UPstream::commWorld(), UPstream::defaultCommsType, mapDistributeBase::distribute(), getCommunicator(), map(), mode_, UPstream::msgType(), NEARESTPATCHFACEAMI, patch_, sameWorld(), and Foam::Zero.

| void reverseDistribute | ( | List< Type > & | lst | ) | const |
Wrapper around map/interpolate data distribution.
Definition at line 164 of file mappedPatchBaseTemplates.C.
References AMI(), UPstream::commWarn(), UPstream::commWorld(), getCommunicator(), map(), mode_, NEARESTPATCHFACEAMI, patch_, sameWorld(), and sampleSize().
Referenced by regionModel::toPrimary(), and regionModel::toPrimary().


| void reverseDistribute | ( | List< Type > & | lst, |
| const CombineOp & | cop ) const |
Wrapper around map/interpolate data distribution with operation.
Definition at line 204 of file mappedPatchBaseTemplates.C.
References AMI(), UPstream::commWarn(), UPstream::commWorld(), UPstream::defaultCommsType, mapDistributeBase::distribute(), getCommunicator(), map(), mode_, UPstream::msgType(), NEARESTPATCHFACEAMI, patch_, sameWorld(), sampleSize(), and Foam::Zero.

|
virtual |
Write as a dictionary.
Reimplemented in thermalBaffle1DFvPatchScalarField< solidType >, thermalBaffle1DFvPatchScalarField< hConstSolidThermoPhysics >, thermalBaffle1DFvPatchScalarField< hPowerSolidThermoPhysics >, mappedFieldFvPatchField< Type >, mappedMixedFieldFvPatchField< Type >, mappedPolyPatch, mappedVariableThicknessWallPolyPatch, mappedWallPolyPatch, and semiPermeableBaffleMassFractionFvPatchScalarField.
Definition at line 2028 of file mappedPatchBase.C.
References AMIPtr_, coupleGroup_, distance_, mode_, Switch::name(), NEARESTPATCHFACE, NEARESTPATCHFACEAMI, NONUNIFORM, NORMAL, fileName::null, word::null, offset_, offsetMode_, offsetModeNames_, offsets_, os(), sampleDatabasePtr_, sampleModeNames_, samplePatch_, sampleRegion_, sampleWorld_, surfDict_, UNIFORM, and VectorSpace< Form, Cmpt, Ncmpts >::zero.
Referenced by thermalBaffle1DFvPatchScalarField< solidType >::write(), mappedFieldFvPatchField< Type >::write(), mappedMixedFieldFvPatchField< Type >::write(), mappedPolyPatch::write(), mappedWallPolyPatch::write(), semiPermeableBaffleMassFractionFvPatchScalarField::write(), and Sampled< Type >::writeData().


|
static |
Definition at line 139 of file mappedPatchBase.H.
Referenced by calcMapping(), findLocalSamples(), mappedPatchBase(), mappedPatchBase(), mappedFixedInternalValueFvPatchField< Type >::updateCoeffs(), and write().
|
static |
Definition at line 141 of file mappedPatchBase.H.
Referenced by calcMapping(), mappedPatchBase(), sampledPatchInternalField::sampledPatchInternalField(), and write().
|
protected |
Patch to sample.
Definition at line 236 of file mappedPatchBase.H.
Referenced by addWorldConnection(), calcAMI(), calcMapping(), collectSamples(), distribute(), facePoints(), getWorldCommunicator(), Sampled< Type >::haveSampleField(), lookupMesh(), mappedPolyPatch::mapCollocatedFaces(), mappedWallPolyPatch::mapCollocatedFaces(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPolyPatch::newInternalProcFaces(), mappedWallPolyPatch::newInternalProcFaces(), owner(), reverseDistribute(), reverseDistribute(), Sampled< Type >::sampleField(), samplePatch(), samplePoints(), samplePoints(), sampleRegion(), surfPtr(), updateMeshTime(), updateSampleMeshTime(), upToDate(), and Sampled< Type >::value().
|
mutableprotected |
World to sample.
Definition at line 241 of file mappedPatchBase.H.
Referenced by addWorldConnection(), calcAMI(), calcMapping(), getWorldCommunicator(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), masterWorld(), sameWorld(), sampleMesh(), sampleWorld(), and write().
|
mutableprotected |
Region to sample.
Definition at line 246 of file mappedPatchBase.H.
Referenced by findSamples(), lookupPatch(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPolyPatch::nbrCells(), mappedWallPolyPatch::nbrCells(), mappedPolyPatch::neighbPolyPatchID(), mappedWallPolyPatch::neighbPolyPatchID(), mappedPolyPatch::neighbRegionID(), mappedWallPolyPatch::neighbRegionID(), mappedPolyPatch::newInternalProcFaces(), mappedWallPolyPatch::newInternalProcFaces(), samplePatch(), samplePolyPatch(), sampleRegion(), and write().
|
protected |
What to sample.
Definition at line 251 of file mappedPatchBase.H.
Referenced by calcMapping(), distribute(), distribute(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mode(), reverseDistribute(), reverseDistribute(), sampleSize(), upToDate(), and write().
|
mutableprotected |
Patch (if in sampleMode NEARESTPATCH*).
Definition at line 256 of file mappedPatchBase.H.
Referenced by findSamples(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPolyPatch::nbrCells(), mappedWallPolyPatch::nbrCells(), mappedPolyPatch::neighbPolyPatchID(), mappedWallPolyPatch::neighbPolyPatchID(), mappedPolyPatch::newInternalProcFaces(), mappedWallPolyPatch::newInternalProcFaces(), samplePatch(), sampleRegion(), and write().
|
protected |
PatchGroup (if in sampleMode NEARESTPATCH*).
Definition at line 261 of file mappedPatchBase.H.
Referenced by coupleGroup(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), samplePatch(), sampleRegion(), and write().
Empty or location of database.
Definition at line 266 of file mappedPatchBase.H.
Referenced by mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), sampleDatabase(), sampleDatabasePath(), and write().
|
protected |
How to obtain samples.
Definition at line 271 of file mappedPatchBase.H.
Referenced by calcMapping(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), samplePoints(), setOffset(), setOffset(), setOffset(), and write().
|
protected |
Offset vector (uniform).
Definition at line 276 of file mappedPatchBase.H.
Referenced by mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), offset(), samplePoints(), setOffset(), setOffset(), setOffset(), and write().
|
protected |
Offset vector (nonuniform).
Definition at line 281 of file mappedPatchBase.H.
Referenced by mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), offsets(), samplePoints(), setOffset(), setOffset(), setOffset(), and write().
|
protected |
Offset distance (normal).
Definition at line 286 of file mappedPatchBase.H.
Referenced by mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), samplePoints(), setOffset(), setOffset(), setOffset(), and write().
|
protected |
Communicator.
Definition at line 291 of file mappedPatchBase.H.
Referenced by comm(), getCommunicator(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), and mappedPatchBase().
|
mutableprotected |
Same region.
Definition at line 296 of file mappedPatchBase.H.
Referenced by mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), and sameRegion().
|
mutableprotected |
Communication schedule:
Definition at line 309 of file mappedPatchBase.H.
Referenced by AMI(), calcMapping(), clearOut(), map(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), and mappedPatchBase().
|
protected |
Flag to indicate that slave patch should be reversed for AMI.
Definition at line 317 of file mappedPatchBase.H.
Referenced by mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), and mappedPatchBase().
|
mutableprotected |
Pointer to AMI interpolator.
Definition at line 322 of file mappedPatchBase.H.
Referenced by AMI(), calcAMI(), clearOut(), map(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), and write().
|
mutableprotected |
Pointer to projection surface employed by AMI interpolator.
Definition at line 327 of file mappedPatchBase.H.
Referenced by mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), and surfPtr().
|
protected |
Dictionary storing projection surface description.
Definition at line 332 of file mappedPatchBase.H.
Referenced by mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), mappedPatchBase(), surfPtr(), and write().
|
mutableprotected |
Local mesh update time.
Definition at line 340 of file mappedPatchBase.H.
Referenced by updateMeshTime().
|
mutableprotected |
Sample mesh update time.
Definition at line 346 of file mappedPatchBase.H.
Referenced by updateSampleMeshTime().