41 { orientedOption::UNKNOWN,
"unknown" },
42 { orientedOption::ORIENTED,
"oriented" },
43 { orientedOption::UNORIENTED,
"unoriented" },
74 oriented_(ot.oriented_)
80 oriented_(isOriented ? ORIENTED : UNORIENTED)
86 oriented_(orientedOptionNames.
read(is))
108 oriented_ = on ? ORIENTED : UNORIENTED;
114 oriented_ = orientedOptionNames.getOrDefault
118 orientedOption::UNKNOWN,
126 const bool output = (oriented_ == ORIENTED);
130 os.
writeEntry(
"oriented", orientedOptionNames[oriented_]);
149 if (oriented_ == UNKNOWN)
154 if (!checkType(*
this, ot))
157 <<
"Operator += is undefined for "
158 << orientedOptionNames[oriented_] <<
" and "
159 << orientedOptionNames[ot.
oriented()] <<
" types"
168 if (oriented_ == UNKNOWN)
173 if (!checkType(*
this, ot))
176 <<
"Operator -= is undefined for "
177 << orientedOptionNames[oriented_] <<
" and "
178 << orientedOptionNames[ot.
oriented()] <<
" types"
189 oriented_ = ORIENTED;
193 oriented_ = UNORIENTED;
203 oriented_ = ORIENTED;
207 oriented_ = UNORIENTED;
226 return oriented_ == ORIENTED;
237 <<
"Operator max is undefined for "
252 <<
"Operator min is undefined for "
421 <<
"Operator atan2 is undefined for "
440 <<
"Operator hypot is undefined for "
489 <<
"Operator + is undefined for "
515 <<
"Operator - is undefined for "
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
EnumType read(Istream &is) const
Read a word from Istream and return the corresponding enumeration.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
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,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
virtual bool read()
Re-read model coefficients if they have changed.
virtual void checkType()
Check the type of the patch.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Class to determine the 'oriented' status of surface fields.
void operator/=(const orientedType &ot)
orientedType() noexcept
Default construct as UNKNOWN.
void operator*=(const orientedType &ot)
orientedOption
Enumeration defining oriented flags.
void operator-=(const orientedType &ot)
void operator=(const orientedType &ot)
orientedOption & oriented() noexcept
Return non-const reference to the oriented flag.
bool operator()() const noexcept
True if type is ORIENTED. Same as bool operator.
bool writeEntry(Ostream &os) const
Write the "oriented" flag entry (if ORIENTED)
void setOriented(const bool on=true) noexcept
Set the oriented flag: on/off.
static const Enum< orientedOption > orientedOptionNames
Named enumerations for oriented flags.
void operator+=(const orientedType &ot)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
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))
tmp< faMatrix< Type > > operator-(const faMatrix< Type > &)
Unary negation.
dimensionedScalar pow6(const dimensionedScalar &ds)
dimensionedScalar pos(const dimensionedScalar &ds)
dimensionedScalar pow5(const dimensionedScalar &ds)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
bool read(const char *buf, int32_t &val)
Same as readInt32.
dimensionedScalar pos0(const dimensionedScalar &ds)
dimensionedScalar sign(const dimensionedScalar &ds)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar pow3(const dimensionedScalar &ds)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
tmp< faMatrix< Type > > operator*(const areaScalarField::Internal &, const faMatrix< Type > &)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar operator/(const scalar s1, const dimensionedScalar &ds2)
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
dimensionedScalar negPart(const dimensionedScalar &ds)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Istream & operator>>(Istream &, directionInfo &)
dimensionedScalar hypot(const dimensionedScalar &x, const dimensionedScalar &y)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
dimensionedScalar pow4(const dimensionedScalar &ds)
errorManip< error > abort(error &err)
static Ostream & output(Ostream &os, const IntRange< T > &range)
dimensionSet trans(const dimensionSet &ds)
Check the argument is dimensionless (for transcendental functions)
dimensionedScalar neg(const dimensionedScalar &ds)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
dimensionedScalar neg0(const dimensionedScalar &ds)
dimensionedScalar cbrt(const dimensionedScalar &ds)
tmp< DimensionedField< typename DimensionedField< Type, GeoMesh >::cmptType, GeoMesh > > cmptAv(const DimensionedField< Type, GeoMesh > &df)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
dimensionedScalar posPart(const dimensionedScalar &ds)
dimensionedScalar pow025(const dimensionedScalar &ds)