21 const fileName cloudPrefix = (
regionDir/cloud::prefix);
23 wordList cloudNames = ListOps::create<word>
27 mesh.time().path()/
mesh.time().timeName()/cloudPrefix,
33 if (UPstream::parRun())
45 if (cloudObjs.erase(
"coordinates"))
49 if (cloudObjs.erase(
"positions"))
60 cloudObjs.filterClasses
71 vtk::lagrangianWriter
writer 84 Info<<
" Lagrangian: " 93 writer.writeFields<label>(cloudObjs);
94 writer.writeFields<scalar>(cloudObjs);
104 if (UPstream::master())
108 fileName seriesName(vtk::seriesWriter::base(
outputName));
110 vtk::seriesWriter& series = vtkSeries(seriesName);
117 series.load(seriesName,
true, timeValue);
121 series.write(seriesName);
vtk::lineWriter writer(edgeCentres, edgeList::null(), fileName(aMesh.time().globalPath()/"finiteArea-edgesCentres"))
constexpr char nl
The newline '\n' character (0x0a)
void combineReduce(T &value, const CombineOp &cop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Compatibility wrapper for Pstream::combineReduce.
bool returnReduceAnd(const bool value, const label comm=UPstream::worldComm)
Perform logical (and) MPI Allreduce on a copy. Uses UPstream::reduceAnd.
word outputName("finiteArea-edges.obj")
const word cloudName(propsDict.get< word >("cloud"))
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.
void sort(UList< T > &list)
Sort the list.
fileName relativePath(const fileName &input, const bool caseTag=false) const
Return the input relative to the globalPath by stripping off a leading value of the globalPath...
const wordList basic
Standard basic field types (label, scalar, vector, tensor, etc)
List< word > wordList
List of word.
messageStream Info
Information stream (stdout output on master, null elsewhere)
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars, i.e. SphericalTensor<scalar>.
fileNameList readDir(const fileName &directory, const fileName::Type type=fileName::Type::FILE, const bool filtergz=true, const bool followLink=true)
Read a directory and return the entries as a fileName List.
Foam::argList args(argc, argv)
bool returnReduceOr(const bool value, const label comm=UPstream::worldComm)
Perform logical (or) MPI Allreduce on a copy. Uses UPstream::reduceOr.