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" },
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)
209 fireInt_t ivalue(value);
213 reinterpret_cast<char const *
>(&ivalue),
232 fireInt_t ivalue(lst.
size());
236 reinterpret_cast<char const *
>(&ivalue),
246 reinterpret_cast<char const *
>(&ivalue),
272 fireInt_t ivalue(
count);
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)
312 fireReal_t fvalue[3];
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),
349 os.stdStream().write(value.data(), len);
354 os.stdStream() << value <<
'\n';
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')
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
Generic input stream using a standard (STL) stream.
Generic templated field type.
Generic output stream using a standard (STL) stream.
virtual const fileName & name() const
OBJstream os(runTime.globalPath()/outputName)
errorManip< error > abort(error &err)
virtual std::istream & stdStream()
#define FatalErrorInFunction
unsigned int count(const UList< bool > &bools, const bool val=true)
label readLabel(const char *buf)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
vector point
Point is a vector.
dimensionedScalar pos(const dimensionedScalar &ds)