39 Foam::lagrangianReconstructor::lagrangianReconstructor
48 procMeshes_(procMeshes),
49 faceProcAddressing_(faceProcAddressing),
50 cellProcAddressing_(cellProcAddressing)
70 const labelList& cellMap = cellProcAddressing_[meshi];
85 const label mappedCell =
94 const label mappedTetFace =
105 lagrangianPositions.append
113 ppi.
procTetPt(mesh_, mappedCell, mappedTetFace)
123 lagrangianPositions.append
135 new passivePositionParticle
150 IOPosition<passivePositionParticleCloud>(lagrangianPositions).
write();
155 IOPosition<passivePositionParticleCloud>
162 return lagrangianPositions.size();
176 #define doLocalCode(Type) \ 178 this->reconstructFields<Type> \ 185 this->reconstructFieldFields<Type> \ Template class for intrusive linked lists.
label tetFace() const noexcept
Return current tet face particle is in.
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)
const barycentric & coordinates() const noexcept
Return current particle coordinates.
label procTetPt(const polyMesh &procMesh, const label procCell, const label procTetFace) const
Return the tet point appropriate for decomposition or reconstruction.
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.
const point & location() const noexcept
The cached particle position.
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.
label cell() const noexcept
Return current cell particle is in.
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.
Tensor of scalars, i.e. Tensor<scalar>.
label reconstructPositions(const word &cloudName) const
Reconstruct positions for given cloud.
Copy of base particle but without particle locating and preserving read location. ...
forAllConstIters(mixture.phases(), phase)
static constexpr const zero Zero
Global zero (0)