Determines a mapping between patch face centres and mesh cell or face centres and processors they're on. More...
Classes | |
class | maxProcEqOp |
class | nearestEqOp |
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. More... | |
Public Member Functions | |
TypeName ("mappedPatchBase") | |
Runtime type information. More... | |
mappedPatchBase (const polyPatch &) | |
Construct from patch. More... | |
mappedPatchBase (const polyPatch &pp, const word &sampleRegion, const sampleMode sampleMode, const word &samplePatch, const vectorField &offsets) | |
Construct with offsetMode=non-uniform. More... | |
mappedPatchBase (const polyPatch &pp, const word &sampleRegion, const sampleMode sampleMode, const word &samplePatch, const vector &offset) | |
Construct from offsetMode=uniform. More... | |
mappedPatchBase (const polyPatch &pp, const word &sampleRegion, const sampleMode sampleMode, const word &samplePatch, const scalar distance) | |
Construct from offsetMode=normal and distance. More... | |
mappedPatchBase (const polyPatch &, const dictionary &) | |
Construct from dictionary. More... | |
mappedPatchBase (const polyPatch &, const sampleMode, const dictionary &) | |
Construct from dictionary and (collocated) sample mode. More... | |
mappedPatchBase (const polyPatch &, const mappedPatchBase &) | |
Construct as copy, resetting patch. More... | |
mappedPatchBase (const polyPatch &, const mappedPatchBase &, const labelUList &mapAddressing) | |
Construct as copy, resetting patch, map original data. More... | |
virtual | ~mappedPatchBase () |
Destructor. More... | |
void | clearOut () |
const sampleMode & | mode () const |
What to sample. More... | |
const word & | sampleRegion () const |
Region to sample. More... | |
const word & | samplePatch () const |
Patch (only if NEARESTPATCHFACE) More... | |
const word & | coupleGroup () const |
PatchGroup (only if NEARESTPATCHFACE) More... | |
label | sampleSize () const |
Return size of mapped mesh/patch/boundary. More... | |
const vector & | offset () const |
Offset vector (from patch faces to destination mesh objects) More... | |
const vectorField & | offsets () const |
Offset vector (from patch faces to destination mesh objects) More... | |
bool | sameRegion () const |
Cached sampleRegion != mesh.name() More... | |
const mapDistribute & | map () const |
Return reference to the parallel distribution map. More... | |
const AMIPatchToPatchInterpolation & | AMI (const bool forceUpdate=false) const |
Return reference to the AMI interpolator. More... | |
const autoPtr< Foam::searchableSurface > & | surfPtr () const |
Return a pointer to the AMI projection surface. More... | |
const polyMesh & | sampleMesh () const |
Get the region mesh. More... | |
const polyPatch & | samplePolyPatch () const |
Get the patch on the region. More... | |
tmp< pointField > | samplePoints () const |
Get the sample points. More... | |
template<class Type > | |
void | distribute (List< Type > &lst) const |
Wrapper around map/interpolate data distribution. More... | |
template<class Type , class CombineOp > | |
void | distribute (List< Type > &lst, const CombineOp &cop) const |
Wrapper around map/interpolate data distribution with operation. More... | |
template<class Type > | |
void | reverseDistribute (List< Type > &lst) const |
Wrapper around map/interpolate data distribution. More... | |
template<class Type , class CombineOp > | |
void | reverseDistribute (List< Type > &lst, const CombineOp &cop) const |
Wrapper around map/interpolate data distribution with operation. More... | |
virtual void | write (Ostream &) const |
Write as a dictionary. More... | |
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: More... | |
Static Public Attributes | |
static const NamedEnum< sampleMode, 6 > | sampleModeNames_ |
static const NamedEnum< offsetMode, 3 > | offsetModeNames_ |
Protected Member Functions | |
tmp< pointField > | facePoints (const polyPatch &) const |
Get the points from face-centre-decomposition face centres. More... | |
void | collectSamples (const pointField &facePoints, pointField &, labelList &patchFaceProcs, labelList &patchFaces, pointField &patchFc) const |
Collect single list of samples and originating processor+face. More... | |
void | findSamples (const sampleMode mode, const pointField &, labelList &sampleProcs, labelList &sampleIndices, pointField &sampleLocations) const |
Find cells/faces containing samples. More... | |
tmp< pointField > | samplePoints (const pointField &) const |
Get the sample points given the face points. More... | |
void | calcMapping () const |
Calculate mapping. More... | |
void | calcAMI () const |
Calculate AMI interpolator. More... | |
Static Protected Member Functions | |
static tmp< pointField > | readListOrField (const word &keyword, const dictionary &dict, const label size) |
Helper to read field or non-uniform list from dictionary. More... | |
Protected Attributes | |
const polyPatch & | patch_ |
Patch to sample. More... | |
word | sampleRegion_ |
Region to sample. More... | |
const sampleMode | mode_ |
What to sample. More... | |
word | samplePatch_ |
Patch (if in sampleMode NEARESTPATCH*) More... | |
const coupleGroupIdentifier | coupleGroup_ |
PatchGroup (if in sampleMode NEARESTPATCH*) More... | |
offsetMode | offsetMode_ |
How to obtain samples. More... | |
vector | offset_ |
Offset vector (uniform) More... | |
vectorField | offsets_ |
Offset vector (nonuniform) More... | |
scalar | distance_ |
Offset distance (normal) More... | |
bool | sameRegion_ |
Same region. More... | |
autoPtr< mapDistribute > | mapPtr_ |
Communication schedule: More... | |
autoPtr< AMIPatchToPatchInterpolation > | AMIPtr_ |
Pointer to AMI interpolator. More... | |
const bool | AMIReverse_ |
Flag to indicate that slave patch should be reversed for AMI. More... | |
autoPtr< searchableSurface > | surfPtr_ |
Pointer to projection surface employed by AMI interpolator. More... | |
dictionary | surfDict_ |
Dictionary storing projection surface description. More... | |
Determines a mapping between patch face centres and mesh cell or face centres and processors they're on.
If constructed from dictionary:
// 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 103 of file mappedPatchBase.H.
typedef Tuple2<pointIndexHit, Tuple2<scalar, label> > nearInfo |
Helper class for finding nearest.
Nearest:
Definition at line 139 of file mappedPatchBase.H.
enum sampleMode |
Mesh items to sample.
Enumerator | |
---|---|
NEARESTCELL | |
NEARESTPATCHFACE | |
NEARESTPATCHFACEAMI | |
NEARESTPATCHPOINT | |
NEARESTFACE | |
NEARESTONLYCELL |
Definition at line 111 of file mappedPatchBase.H.
enum offsetMode |
How to project face centres.
Enumerator | |
---|---|
UNIFORM | |
NONUNIFORM | |
NORMAL |
Definition at line 122 of file mappedPatchBase.H.
mappedPatchBase | ( | const polyPatch & | pp | ) |
Construct from patch.
Definition at line 937 of file mappedPatchBase.C.
Referenced by mappedPatchBase::mappedPatchBase(), and mappedPatchBase::readListOrField().
mappedPatchBase | ( | const polyPatch & | pp, |
const word & | sampleRegion, | ||
const sampleMode | sampleMode, | ||
const word & | samplePatch, | ||
const vectorField & | offsets | ||
) |
Construct with offsetMode=non-uniform.
Definition at line 960 of file mappedPatchBase.C.
References mappedPatchBase::mappedPatchBase().
mappedPatchBase | ( | const polyPatch & | pp, |
const word & | sampleRegion, | ||
const sampleMode | sampleMode, | ||
const word & | samplePatch, | ||
const vector & | offset | ||
) |
Construct from offsetMode=uniform.
Definition at line 987 of file mappedPatchBase.C.
References mappedPatchBase::mappedPatchBase().
mappedPatchBase | ( | const polyPatch & | pp, |
const word & | sampleRegion, | ||
const sampleMode | sampleMode, | ||
const word & | samplePatch, | ||
const scalar | distance | ||
) |
Construct from offsetMode=normal and distance.
Definition at line 1014 of file mappedPatchBase.C.
References mappedPatchBase::mappedPatchBase().
mappedPatchBase | ( | const polyPatch & | pp, |
const dictionary & | dict | ||
) |
Construct from dictionary.
Definition at line 1041 of file mappedPatchBase.C.
References Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::found(), dictionary::lookup(), mappedPatchBase::mappedPatchBase(), Foam::readScalar(), and NamedEnum< Enum, nEnum >::words().
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 1122 of file mappedPatchBase.C.
References Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, and mappedPatchBase::mappedPatchBase().
mappedPatchBase | ( | const polyPatch & | pp, |
const mappedPatchBase & | mpb | ||
) |
Construct as copy, resetting patch.
Definition at line 1170 of file mappedPatchBase.C.
References mappedPatchBase::mappedPatchBase().
mappedPatchBase | ( | const polyPatch & | pp, |
const mappedPatchBase & | mpb, | ||
const labelUList & | mapAddressing | ||
) |
Construct as copy, resetting patch, map original data.
Definition at line 1194 of file mappedPatchBase.C.
|
virtual |
Destructor.
Definition at line 1225 of file mappedPatchBase.C.
|
protected |
Get the points from face-centre-decomposition face centres.
and project them onto the face-diagonal-decomposition triangles.
Definition at line 91 of file mappedPatchBase.C.
References polyPatch::boundaryMesh(), mappedPatchBase::collectSamples(), polyMesh::FACE_DIAG_TRIS, Foam::facePoint(), forAll, mesh, polyBoundaryMesh::mesh(), tmp< T >::ref(), polyPatch::start(), and polyMesh::tetBasePtIs().
Referenced by NamedEnum< directionType, 3 >::names().
|
protected |
Collect single list of samples and originating processor+face.
Definition at line 119 of file mappedPatchBase.C.
References mappedPatchBase::findSamples(), forAll, Pstream::gatherList(), Foam::identity(), UPstream::myProcNo(), UPstream::nProcs(), Pstream::scatterList(), List< T >::setSize(), and List< T >::size().
Referenced by mappedPatchBase::facePoints().
|
protected |
Find cells/faces containing samples.
Note: face-diagonal decomposition
Note: face-diagonal decomposition
Note: face-diagonal decomposition
Definition at line 191 of file mappedPatchBase.C.
References Foam::abort(), primitiveMesh::cellCentres(), polyMesh::cellTree(), Foam::e, Foam::endl(), Foam::exit(), primitiveMesh::faceCentres(), Foam::FatalError, FatalErrorInFunction, indexedOctree< Type >::findInside(), meshSearch::findNearestFace(), Tuple2< Type1, Type2 >::first(), UList< T >::first(), forAll, PointIndexHit< Point >::hit(), PointIndexHit< Point >::hitPoint(), Foam::identity(), PointIndexHit< Point >::index(), Foam::Info, InfoInFunction, Pstream::listCombineGather(), Pstream::listCombineScatter(), Foam::magSqr(), VectorSpace< Vector< scalar >, scalar, 3 >::max, mesh, PrimitivePatch< Face, FaceList, PointField, PointType >::meshPoints(), Foam::mode(), UPstream::myProcNo(), MeshObject< polyMesh, GeometricMeshObject, meshSearchMeshObject >::New(), PrimitivePatch< Face, FaceList, PointField, PointType >::points(), polyMesh::points(), PointIndexHit< Point >::setPoint(), List< T >::setSize(), List< T >::size(), Foam::sqr(), and polyPatch::start().
Referenced by mappedPatchBase::collectSamples().
|
protected |
Get the sample points given the face points.
Definition at line 1270 of file mappedPatchBase.C.
References fld(), Foam::mag(), n, and tmp< T >::ref().
|
protected |
Calculate mapping.
Definition at line 504 of file mappedPatchBase.C.
References Foam::abort(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), DynamicField< T, SizeInc, SizeMult, SizeDiv >::append(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::gAverage(), Foam::mag(), UPstream::master(), OSstream::name(), IOstream::name(), Foam::nl, Foam::Pout, Foam::reduce(), samples(), UIndirectList< T >::size(), List< T >::size(), Foam::type(), WarningInFunction, and Foam::meshTools::writeOBJ().
Referenced by mappedPatchBase::map().
|
protected |
Calculate AMI interpolator.
Definition at line 809 of file mappedPatchBase.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, AMIInterpolation< SourcePatch, TargetPatch >::imFaceAreaWeight, PrimitivePatch< Face, FaceList, PointField, PointType >::localFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::localPoints(), mappedPatchBase::readListOrField(), faceAreaIntersect::tmMesh, and Foam::meshTools::writeOBJ().
Referenced by mappedPatchBase::AMI().
|
staticprotected |
Helper to read field or non-uniform list from dictionary.
Definition at line 868 of file mappedPatchBase.C.
References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, fld(), IOWarningInFunction, token::isWord(), dictionary::lookup(), mappedPatchBase::mappedPatchBase(), Istream::putBack(), tmp< T >::ref(), List< T >::setSize(), List< T >::size(), IOstream::version(), and token::wordToken().
Referenced by mappedPatchBase::calcAMI().
TypeName | ( | "mappedPatchBase" | ) |
Runtime type information.
void clearOut | ( | ) |
Definition at line 1231 of file mappedPatchBase.C.
Referenced by thermalBaffle1DFvPatchScalarField< solidType >::autoMap(), mappedPolyPatch::calcGeometry(), mappedWallPolyPatch::calcGeometry(), mappedWallPolyPatch::movePoints(), mappedPolyPatch::movePoints(), mappedWallPolyPatch::updateMesh(), mappedPolyPatch::updateMesh(), mappedPolyPatch::~mappedPolyPatch(), and mappedWallPolyPatch::~mappedWallPolyPatch().
|
inline |
What to sample.
Definition at line 27 of file mappedPatchBaseI.H.
References mappedPatchBase::mode_.
Referenced by mappedVelocityFluxFixedValueFvPatchField::mappedVelocityFluxFixedValueFvPatchField(), thermalBaffleFvPatchScalarField::rmap(), mappedVelocityFluxFixedValueFvPatchField::updateCoeffs(), and mappedFixedInternalValueFvPatchField< Type >::updateCoeffs().
|
inline |
Region to sample.
Definition at line 33 of file mappedPatchBaseI.H.
References polyPatch::boundaryMesh(), polyMesh::boundaryMesh(), mappedPatchBase::coupleGroup_, Foam::exit(), Foam::FatalError, FatalErrorInFunction, polyBoundaryMesh::mesh(), patchIdentifier::name(), IOobject::name(), mappedPatchBase::patch_, mappedPatchBase::sampleMesh(), mappedPatchBase::samplePatch_, mappedPatchBase::sampleRegion_, and coupleGroupIdentifier::valid().
|
inline |
Patch (only if NEARESTPATCHFACE)
Definition at line 59 of file mappedPatchBaseI.H.
References polyPatch::boundaryMesh(), polyMesh::boundaryMesh(), mappedPatchBase::coupleGroup_, Foam::exit(), Foam::FatalError, FatalErrorInFunction, polyBoundaryMesh::mesh(), patchIdentifier::name(), IOobject::name(), mappedPatchBase::patch_, mappedPatchBase::sampleMesh(), mappedPatchBase::samplePatch_, mappedPatchBase::sampleRegion_, and coupleGroupIdentifier::valid().
Referenced by regionModel::nbrCoupledPatchID(), and mappedVelocityFluxFixedValueFvPatchField::updateCoeffs().
|
inline |
PatchGroup (only if NEARESTPATCHFACE)
Definition at line 85 of file mappedPatchBaseI.H.
References mappedPatchBase::coupleGroup_, and coupleGroupIdentifier::name().
Referenced by thermalBaffleFvPatchScalarField::rmap().
|
inline |
Return size of mapped mesh/patch/boundary.
Definition at line 91 of file mappedPatchBaseI.H.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, mesh, mappedPatchBase::mode_, primitiveMesh::nCells(), mappedPatchBase::NEARESTCELL, mappedPatchBase::NEARESTFACE, mappedPatchBase::NEARESTPATCHFACE, mappedPatchBase::NEARESTPATCHFACEAMI, mappedPatchBase::NEARESTPATCHPOINT, primitiveMesh::nFaces(), primitiveMesh::nInternalFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::nPoints(), mappedPatchBase::sampleMesh(), and mappedPatchBase::samplePolyPatch().
Referenced by mappedPatchBase::reverseDistribute().
|
inline |
Offset vector (from patch faces to destination mesh objects)
Definition at line 126 of file mappedPatchBaseI.H.
References mappedPatchBase::offset_.
|
inline |
Offset vector (from patch faces to destination mesh objects)
Definition at line 132 of file mappedPatchBaseI.H.
References mappedPatchBase::offsets_.
|
inline |
Cached sampleRegion != mesh.name()
Definition at line 138 of file mappedPatchBaseI.H.
References mappedPatchBase::sameRegion_.
|
inline |
Return reference to the parallel distribution map.
Definition at line 144 of file mappedPatchBaseI.H.
References mappedPatchBase::AMI(), mappedPatchBase::calcMapping(), and mappedPatchBase::mapPtr_.
Referenced by mappedPatchBase::distribute(), semiPermeableBaffleMassFractionFvPatchScalarField::phiY(), mappedPatchBase::reverseDistribute(), thermalBaffle1DFvPatchScalarField< solidType >::thermalBaffle1DFvPatchScalarField(), and thermalBaffle1DFvPatchScalarField< solidType >::updateCoeffs().
|
inline |
Return reference to the AMI interpolator.
Definition at line 156 of file mappedPatchBaseI.H.
References mappedPatchBase::AMIPtr_, and mappedPatchBase::calcAMI().
Referenced by mappedPatchBase::distribute(), mappedPatchBase::map(), and mappedPatchBase::reverseDistribute().
const Foam::autoPtr< Foam::searchableSurface > & surfPtr | ( | ) | const |
Return a pointer to the AMI projection surface.
Definition at line 777 of file mappedPatchBase.C.
References polyMesh::boundaryMesh(), TimePaths::constant(), mesh, polyBoundaryMesh::mesh(), IOobject::MUST_READ, searchableSurface::New(), IOobject::NO_WRITE, and objectRegistry::time().
const Foam::polyMesh & sampleMesh | ( | ) | const |
Get the region mesh.
Definition at line 1241 of file mappedPatchBase.C.
References polyMesh::boundaryMesh(), objectRegistry::lookupObject(), polyBoundaryMesh::mesh(), and objectRegistry::time().
Referenced by radiationCoupledBase::emissivity(), mappedPatchBase::samplePatch(), mappedPatchBase::sampleRegion(), mappedPatchBase::sampleSize(), mappedVelocityFluxFixedValueFvPatchField::updateCoeffs(), mappedFixedInternalValueFvPatchField< Type >::updateCoeffs(), mappedFlowRateFvPatchVectorField::updateCoeffs(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::updateCoeffs(), and turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs().
const Foam::polyPatch & samplePolyPatch | ( | ) | const |
Get the patch on the region.
Definition at line 1250 of file mappedPatchBase.C.
References polyMesh::boundaryMesh(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, polyBoundaryMesh::findPatchID(), polyBoundaryMesh::names(), patchi, and mappedPatchBase::samplePoints().
Referenced by radiationCoupledBase::emissivity(), semiPermeableBaffleMassFractionFvPatchScalarField::phiY(), mappedPatchBase::sampleSize(), mappedFixedInternalValueFvPatchField< Type >::updateCoeffs(), mappedFlowRateFvPatchVectorField::updateCoeffs(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::updateCoeffs(), and turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs().
Foam::tmp< Foam::pointField > samplePoints | ( | ) | const |
Get the sample points.
Definition at line 1304 of file mappedPatchBase.C.
References mappedPatchBase::facePoint().
Referenced by mappedPatchBase::samplePolyPatch().
|
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 1311 of file mappedPatchBase.C.
References Foam::abort(), polyMesh::CELL_TETS, primitiveMesh::cellCentres(), PointHit< Point >::distance(), f(), polyMesh::FACE_CENTRE_TRIS, polyMesh::FACE_DIAG_TRIS, polyMesh::FACE_PLANES, primitiveMesh::faceCentres(), polyMesh::faceOwner(), polyMesh::faces(), Foam::FatalError, FatalErrorInFunction, UList< T >::fcIndex(), intersection::HALF_RAY, PointHit< Point >::hit(), PointHit< Point >::hitPoint(), triangle< Point, PointRef >::intersection(), p, polyMesh::points(), List< T >::size(), and polyMesh::tetBasePtIs().
Referenced by mappedPatchBase::samplePoints().
void distribute | ( | List< Type > & | lst | ) | const |
Wrapper around map/interpolate data distribution.
Definition at line 27 of file mappedPatchBaseTemplates.C.
References mappedPatchBase::AMI(), mapDistribute::distribute(), AMIInterpolation< SourcePatch, TargetPatch >::interpolateToSource(), mappedPatchBase::map(), mappedPatchBase::mode_, mappedPatchBase::NEARESTPATCHFACEAMI, and List< T >::xfer().
Referenced by radiationCoupledBase::emissivity(), regionModel::toRegion(), mappedVelocityFluxFixedValueFvPatchField::updateCoeffs(), mappedFixedInternalValueFvPatchField< Type >::updateCoeffs(), mappedFlowRateFvPatchVectorField::updateCoeffs(), turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::updateCoeffs(), and turbulentTemperatureRadCoupledMixedFvPatchScalarField::updateCoeffs().
void distribute | ( | List< Type > & | lst, |
const CombineOp & | cop | ||
) | const |
Wrapper around map/interpolate data distribution with operation.
Definition at line 46 of file mappedPatchBaseTemplates.C.
References mappedPatchBase::AMI(), UPstream::defaultCommsType, mapDistributeBase::distribute(), AMIInterpolation< SourcePatch, TargetPatch >::interpolateToSource(), mappedPatchBase::map(), mappedPatchBase::mode_, mappedPatchBase::NEARESTPATCHFACEAMI, List< T >::xfer(), and Foam::Zero.
void reverseDistribute | ( | List< Type > & | lst | ) | const |
Wrapper around map/interpolate data distribution.
Definition at line 84 of file mappedPatchBaseTemplates.C.
References mappedPatchBase::AMI(), AMIInterpolation< SourcePatch, TargetPatch >::interpolateToTarget(), mappedPatchBase::map(), mappedPatchBase::mode_, mappedPatchBase::NEARESTPATCHFACEAMI, mapDistribute::reverseDistribute(), mappedPatchBase::sampleSize(), and List< T >::xfer().
Referenced by regionModel::toPrimary().
void reverseDistribute | ( | List< Type > & | lst, |
const CombineOp & | cop | ||
) | const |
Wrapper around map/interpolate data distribution with operation.
Definition at line 104 of file mappedPatchBaseTemplates.C.
References mappedPatchBase::AMI(), UPstream::defaultCommsType, mapDistributeBase::distribute(), AMIInterpolation< SourcePatch, TargetPatch >::interpolateToTarget(), mappedPatchBase::map(), mappedPatchBase::mode_, mappedPatchBase::NEARESTPATCHFACEAMI, mappedPatchBase::sampleSize(), List< T >::xfer(), and Foam::Zero.
|
virtual |
Write as a dictionary.
Reimplemented in thermalBaffle1DFvPatchScalarField< solidType >, mappedFieldFvPatchField< Type >, mappedWallPolyPatch, mappedVariableThicknessWallPolyPatch, mappedPolyPatch, and semiPermeableBaffleMassFractionFvPatchScalarField.
Definition at line 1391 of file mappedPatchBase.C.
References token::END_STATEMENT, Foam::nl, Ostream::writeKeyword(), and VectorSpace< Vector< scalar >, scalar, 3 >::zero.
Referenced by semiPermeableBaffleMassFractionFvPatchScalarField::write(), mappedPolyPatch::write(), mappedWallPolyPatch::write(), and thermalBaffle1DFvPatchScalarField< solidType >::write().
|
static |
Definition at line 129 of file mappedPatchBase.H.
Referenced by NamedEnum< directionType, 3 >::names(), and thermalBaffleFvPatchScalarField::rmap().
|
static |
Definition at line 131 of file mappedPatchBase.H.
Referenced by NamedEnum< directionType, 3 >::names(), and sampledPatchInternalField::sampledPatchInternalField().
|
protected |
Patch to sample.
Definition at line 189 of file mappedPatchBase.H.
Referenced by mappedPatchBase::samplePatch(), and mappedPatchBase::sampleRegion().
|
mutableprotected |
Region to sample.
Definition at line 192 of file mappedPatchBase.H.
Referenced by mappedPatchBase::samplePatch(), and mappedPatchBase::sampleRegion().
|
protected |
What to sample.
Definition at line 195 of file mappedPatchBase.H.
Referenced by mappedPatchBase::distribute(), mappedPatchBase::mode(), mappedPatchBase::reverseDistribute(), and mappedPatchBase::sampleSize().
|
mutableprotected |
Patch (if in sampleMode NEARESTPATCH*)
Definition at line 198 of file mappedPatchBase.H.
Referenced by mappedPatchBase::samplePatch(), and mappedPatchBase::sampleRegion().
|
protected |
PatchGroup (if in sampleMode NEARESTPATCH*)
Definition at line 201 of file mappedPatchBase.H.
Referenced by mappedPatchBase::coupleGroup(), mappedPatchBase::samplePatch(), and mappedPatchBase::sampleRegion().
|
protected |
How to obtain samples.
Definition at line 204 of file mappedPatchBase.H.
|
protected |
Offset vector (uniform)
Definition at line 207 of file mappedPatchBase.H.
Referenced by mappedPatchBase::offset().
|
protected |
Offset vector (nonuniform)
Definition at line 210 of file mappedPatchBase.H.
Referenced by mappedPatchBase::offsets().
|
protected |
Offset distance (normal)
Definition at line 213 of file mappedPatchBase.H.
|
mutableprotected |
Same region.
Definition at line 216 of file mappedPatchBase.H.
Referenced by mappedPatchBase::sameRegion().
|
mutableprotected |
Communication schedule:
Definition at line 226 of file mappedPatchBase.H.
Referenced by mappedPatchBase::map().
|
mutableprotected |
Pointer to AMI interpolator.
Definition at line 232 of file mappedPatchBase.H.
Referenced by mappedPatchBase::AMI().
|
protected |
Flag to indicate that slave patch should be reversed for AMI.
Definition at line 235 of file mappedPatchBase.H.
|
mutableprotected |
Pointer to projection surface employed by AMI interpolator.
Definition at line 238 of file mappedPatchBase.H.
|
protected |
Dictionary storing projection surface description.
Definition at line 241 of file mappedPatchBase.H.