Go to the documentation of this file.
38 { fileExt3d::POLY_ASCII,
"fpma" },
39 { fileExt3d::POLY_BINARY,
"fpmb" },
40 { fileExt3d::POLY_ASCII_Z,
"fpmaz" },
41 { fileExt3d::POLY_BINARY_Z,
"fpmbz" },
53 const label
n = getFireLabel(is);
62 points[pointI] = getFirePoint(is);
68 <<
"no points in file " << is.
name()
84 return base +
'.' + file3dExtensions[ext];
96 reinterpret_cast<char *
>(&ivalue),
119 reinterpret_cast<char *
>(&coord),
129 pt.
x() = readScalar(is);
130 pt.
y() = readScalar(is);
131 pt.
z() = readScalar(is);
148 reinterpret_cast<char *
>(&len),
154 for (std::size_t
pos = 0;
pos < str.size(); ++
pos)
161 const std::string whitespace(
" \t\f\v\n\r");
173 size_t pos =
s.find_first_not_of(whitespace);
175 if (
pos != std::string::npos)
180 pos =
s.find_last_not_of(whitespace);
181 if (
pos != std::string::npos)
187 if (
pos == std::string::npos)
213 reinterpret_cast<char const *
>(&ivalue),
236 reinterpret_cast<char const *
>(&ivalue),
246 reinterpret_cast<char const *
>(&ivalue),
253 os <<
' ' << lst.
size();
276 reinterpret_cast<char const *
>(&ivalue),
281 for (label i=0; i <
count; ++i, ++ivalue)
285 reinterpret_cast<char const *
>(&ivalue),
294 label ivalue = start;
295 for (label i = 0; i <
count; ++i, ++ivalue)
313 fvalue[0] = value.
x();
314 fvalue[1] = value.
y();
315 fvalue[2] = value.
z();
319 reinterpret_cast<char const *
>(&fvalue),
328 << value.
z() <<
'\n';
336 const std::string& value
341 long len(value.size());
345 reinterpret_cast<char const *
>(&len),
const Cmpt & x() const
Access to the vector x component.
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
ISstream & getLine(std::string &str, char delim='\n')
Raw, low-level getline (until delimiter) into a string.
A class for handling file names.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
streamFormat format() const noexcept
Get the current stream format.
Generic input stream using a standard (STL) stream.
const Cmpt & z() const
Access to the vector z component.
#define forAll(list, i)
Loop across all elements in list.
virtual std::ostream & stdStream()
Access to underlying std::ostream.
Generic output stream using a standard (STL) stream.
virtual const fileName & name() const
Return the name of the stream.
errorManip< error > abort(error &err)
virtual std::istream & stdStream()
Access to underlying std::istream.
const Cmpt & y() const
Access to the vector y component.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
label readLabel(const char *buf)
Parse entire buffer as a label, skipping leading/trailing whitespace.
void size(const label n) noexcept
Override size to be inconsistent with allocated storage.
dimensionedScalar pos(const dimensionedScalar &ds)