37 const fileName& fName,
38 const word& cloudName,
45 cloudName_(cloudName),
48 const fvMesh& mesh = vMesh_.
mesh();
58 os_ <<
"POINTS " << nParcels_ <<
" float" <<
std::endl;
60 os_ <<
"VERTICES " << nParcels_ <<
' ' << 2*nParcels_ <<
std::endl;
64 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
const fvMesh & mesh() const
Access either mesh or submesh.
#define forAll(list, i)
Loop across all elements in list.
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.
void insert(const scalar, DynamicList< floatScalar > &)
Append scalar to given DynamicList.
void writeFieldsHeader(const label nFields)
Write the fields header specifying the number of fields.
void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
Write header.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
lagrangianWriter(const vtkMesh &, const bool binary, const fileName &, const word &, const bool dummyCloud)
Construct from components.