Go to the documentation of this file.
35 bool readEndBracket =
false;
42 if (t.
pToken() == token::BEGIN_LIST)
44 readEndBracket =
true;
51 <<
"incorrect first token, expected '(', found "
69 <<
"Bad type of token for cellShape symbol " << t.
info()
78 <<
"CellShape has unknown model " << t.
info()
99 os << token::BEGIN_LIST;
102 os << (
s.m)->index();
108 os << token::SPACE << static_cast<const labelList&>(
s);
111 os << token::END_LIST;
120 const cellShape& cs = ip.t_;
124 os <<
" cellShape has no model!\n";
131 os <<
"\tGeom:\tpoint\tlabel\txyz\n";
135 os <<
"\t\t" << i <<
"\t" << cs[i] <<
endl;
label labelToken() const
Return label value.
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))
Istream & operator>>(Istream &, directionInfo &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
A token holds an item read from Istream.
bool readEnd(const char *funcName)
End read of data chunk, ends with ')'.
punctuationToken pToken() const
Return punctuation character.
#define forAll(list, i)
Loop across all elements in list.
bool isLabel() const
Token is LABEL.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
InfoProxy< token > info() const
Return info proxy for printing token information to a stream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
InfoProxy< IOstream > info() const
Return info proxy.
bool isWord() const
Token is WORD or DIRECTIVE word.
An analytical geometric cellShape.
const word & wordToken() const
Return const reference to the word contents.
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool isNull(const T *ptr)
True if ptr is a pointer (of type T) to the nullObject.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool isPunctuation() const
Token is PUNCTUATION.