Go to the documentation of this file.
45 scalar magDir =
mag(direction_);
50 <<
"(almost)zero vector as direction for cell " << cellNo_
53 else if (
mag(magDir - 1) > SMALL)
56 direction_ /=
mag(direction_);
66 scalar magDir =
mag(direction_);
71 <<
"(almost)zero vector as direction for cell " << cellNo_
74 else if (
mag(magDir - 1) > SMALL)
77 direction_ /=
mag(direction_);
static constexpr const zero Zero
Global zero (0)
streamFormat format() const noexcept
Get the current stream format.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
const vector & direction() const
errorManip< error > abort(error &err)
Container with cells to refine. Refinement given as single direction.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label readLabel(const char *buf)
Parse entire buffer as a label, skipping leading/trailing whitespace.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
refineCell()
Default construct.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...