Go to the documentation of this file.
33 template<
class PrimitiveType>
37 const PrimitiveType& val
46 template<
class PrimitiveType>
49 const std::string& fmt,
50 const PrimitiveType& val
54 string_printf(
output, fmt, val);
147 if (
debug && string::stripInvalid<word>(*
this))
150 <<
"word::stripInvalid() called for word "
156 <<
" For debug level (= " <<
debug
157 <<
") > 1 this is considered fatal" <<
std::endl;
word & operator=(const word &s)
static Ostream & output(Ostream &os, const IntRange< T > &range)
static std::string::size_type string_printf(std::string &output, const char *fmt, const PrimitiveType &val)
A class for handling words, derived from Foam::string.
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))
bool isspace(char c) noexcept
Ostream & endl(Ostream &os)
A class for handling character strings derived from std::string.
graph_traits< Graph >::vertices_size_type size_type
static bool valid(char c)
errorManipArg< error, int > exit(error &err, const int errNo=1)
const dimensionedScalar c
static word printf(const char *fmt, const PrimitiveType &val)
void assign(Field< Tout > &result, const Field< T1 > &a, const UnaryOp &op)