133 #ifndef mapDistribute_H 134 #define mapDistribute_H 146 class globalIndexAndTransform;
153 Istream&
operator>>(Istream&, mapDistribute&);
154 Ostream&
operator<<(Ostream&,
const mapDistribute&);
179 void applyDummyTransforms(
List<T>& field)
const;
181 template<
class T,
class TransformOp>
186 const TransformOp& top
191 void applyDummyInverseTransforms(
List<T>& field)
const;
193 template<
class T,
class TransformOp>
194 void applyInverseTransforms
198 const TransformOp& top
219 const tensor T(forward ? vt.R() : vt.R().T());
248 template<
class Type,
template<
class>
class Container>
274 fld = vt.transformPosition(pfld);
278 fld = vt.invTransformPosition(pfld);
298 template<
template<
class>
class Container>
310 forAllIter(
typename Container<point>, map, iter)
340 const label constructSize,
436 return transformElements_;
442 return transformStart_;
464 template<
class T,
class negateOp>
468 const negateOp& negOp,
486 const label constructSize,
498 const label constructSize,
506 template<
class T,
class TransformOp>
511 const TransformOp& top,
516 template<
class T,
class TransformOp>
520 const label constructSize,
522 const TransformOp& top,
527 template<
class T,
class TransformOp>
531 const label constructSize,
534 const TransformOp& top,
547 "mapDistribute::updateMesh(const mapPolyMesh&)" 568 void mapDistribute::transform::operator()
575 void mapDistribute::transform::operator()
581 void mapDistribute::transform::operator()
583 const coupledPolyPatch&,
587 void mapDistribute::transform::operator()
589 const coupledPolyPatch&,
594 void mapDistribute::transform::operator()
596 const coupledPolyPatch&,
600 void mapDistribute::transform::operator()
602 const vectorTensorTransform&,
607 void mapDistribute::transform::operator()
609 const coupledPolyPatch&,
613 void mapDistribute::transform::operator()
615 const coupledPolyPatch&,
620 void mapDistribute::transform::operator()
622 const coupledPolyPatch& cpp,
626 void mapDistribute::transform::operator()
628 const vectorTensorTransform&,
633 void mapDistribute::transform::operator()
635 const coupledPolyPatch&,
639 void mapDistribute::transform::operator()
641 const coupledPolyPatch&,
bool constructHasFlip() const
Does constructMap include a sign.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
friend Istream & operator>>(Istream &, mapDistribute &)
Read dictionary from Istream.
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute data using default commsType.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
const labelListList & subMap() const
From subsetted data back to original data.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
label whichTransform(const label index) const
Find transform from transformElements.
The coupledPolyPatch is an abstract base class for patches that couple regions of the computational d...
void printLayout(Ostream &os) const
Debug: print layout. Can only be used on maps with sorted.
static int & msgType()
Message tag of standard messages.
friend Ostream & operator<<(Ostream &, const mapDistribute &)
Write dictionary to Ostream.
void transfer(mapDistribute &)
Transfer the contents of the argument and annul the argument.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual const tensorField & forwardT() const
Return face transformation tensor.
void updateMesh(const mapPolyMesh &)
Correct for topo change.
void transformList(const tensor &, UList< T > &)
Apply transformation to list. Either single transformation tensor.
virtual bool parallel() const
Are the cyclic planes parallel.
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
const labelList & transformStart() const
Destination in constructMap for transformed elements.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< ' ';}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< ' ';}gmvFile<< nl;forAll(lagrangianScalarNames, i){ const word &name=lagrangianScalarNames[i];IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
void operator=(const mapDistribute &)
Istream & operator>>(Istream &, directionInfo &)
autoPtr< mapDistribute > clone() const
Clone.
virtual ~mapDistribute()
Destructor.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
mapDistribute()
Construct null.
Class containing processor-to-processor mapping information.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
void reverseDistribute(const label constructSize, List< T > &, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Reverse distribute data using default commsType.
label constructSize() const
Constructed data size.
#define notImplemented(functionName)
Issue a FatalErrorIn for a function not currently implemented.
const labelListList & transformElements() const
For every globalIndexAndTransform::transformPermutations.
Class containing processor-to-processor mapping information.
virtual void transformPosition(pointField &) const =0
Transform a patch-based position from other side to this side.
Ostream & operator<<(Ostream &, const ensightPart &)
const labelListList & constructMap() const
From subsetted data to new reconstructed data.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
ClassName("mapDistribute")
bool subHasFlip() const
Does subMap include a sign.