34 const fileName cloudPrefix = (
regionDir/cloud::prefix);
36 wordList cloudNames = ListOps::create<word>
40 mesh.time().path()/
mesh.time().timeName()/cloudPrefix,
46 if (Pstream::parRun())
49 Pstream::combineGather(cloudNames, ListOps::uniqueEqOp<word>());
50 Pstream::broadcast(cloudNames);
60 if (cloudObjs.erase(
"coordinates"))
64 if (cloudObjs.erase(
"positions"))
69 if (!returnReduce(isCloud, orOp<bool>()))
75 cloudObjs.filterClasses
77 stringListOps::foundOp<word>(fieldTypes::basic)
81 if (returnReduce(cloudObjs.empty(), andOp<bool>()))
86 vtk::lagrangianWriter
writer
99 Info<<
" Lagrangian: "
108 writer.writeFields<label>(cloudObjs);
109 writer.writeFields<scalar>(cloudObjs);
111 writer.writeFields<sphericalTensor>(cloudObjs);
112 writer.writeFields<symmTensor>(cloudObjs);
119 if (Pstream::master())
123 fileName seriesName(vtk::seriesWriter::base(
outputName));
125 vtk::seriesWriter& series = vtkSeries(seriesName);
132 series.load(seriesName,
true, timeValue);
136 series.write(seriesName);
vtk::internalMeshWriter writer(topoMesh, topoCells, vtk::formatType::INLINE_ASCII, runTime.path()/"blockTopology")
fileName relativePath(const fileName &input, const bool caseTag=false) const
Tensor of scalars, i.e. Tensor<scalar>.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
word outputName("finiteArea-edges.obj")
void sort(UList< T > &list)
Sort the list.
Foam::argList args(argc, argv)
const word cloudName(propsDict.get< word >("cloud"))