37 const fileName& fName,
58 os_ <<
"POINTS " << nParcels_ <<
" float" <<
std::endl;
60 os_ <<
"VERTICES " << nParcels_ <<
' ' << 2*nParcels_ <<
std::endl;
64 lagrangian::Cloud<passiveParticle> parcels(
mesh, cloudName_,
false);
66 nParcels_ = parcels.size();
68 os_ <<
"POINTS " << nParcels_ <<
" float" <<
std::endl;
70 DynamicList<floatScalar> partField(3*parcels.size());
77 os_ <<
"VERTICES " << nParcels_ <<
' ' << 2*nParcels_ <<
std::endl;
79 DynamicList<label> vertexPoints(2*parcels.size());
82 vertexPoints.append(1);
83 vertexPoints.append(parceli);
94 os_ <<
"POINT_DATA " << nParcels_ <<
std::endl
95 <<
"FIELD attributes " << nFields
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
const fileName & caseName() const
Explicitly inherit caseName from TimePaths to disambiguate from.
const Time & time() const
Return the top-level database.
const polyMesh & mesh() const
Return reference to polyMesh.
void writeFieldsHeader(const label nFields)
Write the fields header specifying the number of fields.
lagrangianWriter(const vtkMesh &, const bool binary, const fileName &, const word &, const bool dummyCloud)
Construct from components.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
point position(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label facei, const label faceTrii, const scalar stepFraction)
Return the position given the coordinates and tet topology.
void insert(const scalar, DynamicList< floatScalar > &)
Append scalar to given DynamicList.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
Write header.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const word cloudName(propsDict.lookup("cloudName"))