39 Foam::lagrangianReconstructor::lagrangianReconstructor
48 procMeshes_(procMeshes),
49 faceProcAddressing_(faceProcAddressing),
50 cellProcAddressing_(cellProcAddressing)
71 const labelList& cellMap = cellProcAddressing_[meshi];
80 passivePositionParticleCloud lpi(procMeshes_[meshi],
cloudName,
false);
82 for (
const passivePositionParticle& ppi : lpi)
84 const label mappedCell =
93 const label mappedTetFace =
100 if ((ppi.cell() >= 0) && (ppi.tetFace() >= 0))
104 lagrangianPositions.append
106 new passivePositionParticle
112 ppi.procTetPt(mesh_, mappedCell, mappedTetFace)
122 lagrangianPositions.append
134 new passivePositionParticle
149 IOPosition<passivePositionParticleCloud>(lagrangianPositions).
write();
154 IOPosition<passivePositionParticleCloud>
161 return lagrangianPositions.size();
175 #define doLocalCode(Type) \ 177 this->reconstructFields<Type> \ 184 this->reconstructFieldFields<Type> \
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable, so the various sorted methods should be used if traversing in parallel.
void reconstructAllFields(const word &cloudName, const IOobjectList &cloudObjs, const wordRes &selectedFields=wordRes())
Reconstruct all fields for known cloud field types.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A Cloud of passive particles.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
#define forAll(list, i)
Loop across all elements in list.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
#define doLocalCode(Type)
const word cloudName(propsDict.get< word >("cloud"))
A class for handling words, derived from Foam::string.
A List of wordRe with additional matching capabilities.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
static int verbose_
Output verbosity when writing.
static bool writeLagrangianPositions
Write particle positions file (v1706 format and earlier) Default is true (disable in etc/controlDict)...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
Mesh data needed to do the Finite Volume discretisation.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
List< label > labelList
A List of labels.
Tensor of scalars, i.e. Tensor<scalar>.
label reconstructPositions(const word &cloudName) const
Reconstruct positions for given cloud.
static constexpr const zero Zero
Global zero (0)