46 scalar magDir =
mag(direction_);
51 <<
"(almost)zero vector as direction for cell " << cellNo_
54 else if (
mag(magDir - 1) > SMALL)
57 direction_ /=
mag(direction_);
67 scalar magDir =
mag(direction_);
72 <<
"(almost)zero vector as direction for cell " << cellNo_
75 else if (
mag(magDir - 1) > SMALL)
78 direction_ /=
mag(direction_);
93 os << r.cellNo() << r.direction();
streamFormat format() const noexcept
Get the current stream format.
@ ASCII
"ascii" (normal default)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Container with cells to refine. Refinement given as single direction.
refineCell()
Default construct.
const vector & direction() const
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
label readLabel(const char *buf)
Parse entire buffer as a label, skipping leading/trailing whitespace.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
errorManip< error > abort(error &err)
static constexpr const zero Zero
Global zero (0).
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...