59 #ifndef mappedInternalPatchBase_H
60 #define mappedInternalPatchBase_H
129 TypeName(
"mappedInternalPatchBase");
141 const word& nbrRegion
Pre-declare SubField and related Field type.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Class containing processor-to-processor mapping information.
Engine which provides mapping from cells to patch faces.
TypeName("mappedInternalPatchBase")
Runtime type information.
word nbrRegionName_
Name of the region to map from.
scalar distance_
Offset distance.
const polyPatch & patch_
Patch to map to.
virtual void write(Ostream &) const
Write as a dictionary.
const polyMesh & nbrMesh() const
Get the region mesh.
const distributionMap & map() const
Return reference to the parallel distribution map.
autoPtr< distributionMap > mapPtr_
Distributor.
const word & nbrRegionName() const
Name of the region to map from.
tmp< pointField > samplePoints() const
Get the sample points.
virtual ~mappedInternalPatchBase()
Destructor.
bool sameRegion() const
Is the neighbour region the same as for this patch?
static const NamedEnum< offsetMode, 2 > offsetModeNames_
labelList cellIndices_
Indices of the cells who's values have to be supplied to the.
offsetMode
How to project face centres.
static bool specified(const dictionary &dict)
Return whether or not the given dictionary contains a.
tmp< Field< Type > > distribute(const Field< Type > &fld) const
Wrapper around map/interpolate data distribution.
void calcMapping() const
Calculate mapping.
const labelList & cellIndices() const
Return the indices of the cells who's values have to be.
mappedInternalPatchBase(const polyPatch &)
Construct from patch.
offsetMode readOffsetMode(const dictionary &dict) const
Read the offset mode from a dictionary.
vector offset_
Offset vector.
offsetMode offsetMode_
How to offset the patch face centres to the sampling locations.
void clearOut()
Clear out data on mesh change.
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
A class for managing temporary objects.
A class for handling words, derived from string.
gmvFile<< "tracers "<< particles.size()<< nl;{ pointField positions(particles.size());label particlei=0;forAllConstIter(Cloud< passiveParticle >, particles, iter) { positions[particlei++]=iter().position(mesh);} for(i=0;i< pTraits< point >::nComponents;i++) { forAll(positions, particlei) { gmvFile<< component(positions[particlei], i)<< ' ';} gmvFile<< nl;}}forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))