Go to the documentation of this file.
38 { orientedOption::ORIENTED,
"oriented" },
39 { orientedOption::UNORIENTED,
"unoriented" },
40 { orientedOption::UNKNOWN,
"unknown" },
69 oriented_(ot.oriented_)
75 oriented_(oriented ? ORIENTED : UNORIENTED)
81 oriented_(orientedOptionNames.
read(is))
103 oriented_ = oriented ? ORIENTED : UNORIENTED;
109 oriented_ = orientedOptionNames.getOrDefault
113 orientedOption::UNKNOWN,
121 if (oriented_ == ORIENTED)
123 os.
writeEntry(
"oriented", orientedOptionNames[oriented_]);
140 if (oriented_ == UNKNOWN)
145 if (!checkType(*
this, ot))
148 <<
"Operator += is undefined for "
149 << orientedOptionNames[oriented_] <<
" and "
150 << orientedOptionNames[ot.
oriented()] <<
" types"
159 if (oriented_ == UNKNOWN)
164 if (!checkType(*
this, ot))
167 <<
"Operator -= is undefined for "
168 << orientedOptionNames[oriented_] <<
" and "
169 << orientedOptionNames[ot.
oriented()] <<
" types"
180 oriented_ = ORIENTED;
184 oriented_ = UNORIENTED;
194 oriented_ = ORIENTED;
198 oriented_ = UNORIENTED;
217 return oriented_ == ORIENTED;
228 <<
"Operator max is undefined for "
243 <<
"Operator min is undefined for "
412 <<
"Operator atan2 is undefined for "
431 <<
"Operator hypot is undefined for "
480 <<
"Operator + is undefined for "
506 <<
"Operator - is undefined for "
dimensionSet trans(const dimensionSet &ds)
Check the argument is dimensionless (for transcendental functions)
void operator*=(const orientedType &ot)
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
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))
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
orientedOption & oriented()
Return non-const reference to the oriented flag.
dimensionedScalar posPart(const dimensionedScalar &ds)
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
bool read(const char *buf, int32_t &val)
Same as readInt32.
static bool checkType(const orientedType &ot1, const orientedType &ot2)
Return true if can operate on this pair of oriented types.
tmp< faMatrix< Type > > operator-(const faMatrix< Type > &)
dimensionedScalar neg0(const dimensionedScalar &ds)
orientedType()
Null constructor - flag initialised to false.
static const Enum< orientedOption > orientedOptionNames
Istream & operator>>(Istream &, directionInfo &)
dimensionedScalar pos0(const dimensionedScalar &ds)
dimensionedScalar sign(const dimensionedScalar &ds)
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
void operator=(const orientedType &ot)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
void setOriented(const bool oriented=true)
Set the oriented flag.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
dimensionedScalar pow025(const dimensionedScalar &ds)
dimensionedScalar hypot(const dimensionedScalar &x, const dimensionedScalar &y)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
dimensionedScalar pow4(const dimensionedScalar &ds)
dimensionedScalar pow6(const dimensionedScalar &ds)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
dimensionedScalar pow3(const dimensionedScalar &ds)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
tmp< DimensionedField< typename DimensionedField< Type, GeoMesh >::cmptType, GeoMesh >> cmptAv(const DimensionedField< Type, GeoMesh > &df)
void operator+=(const orientedType &ot)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
dimensionedScalar pow5(const dimensionedScalar &ds)
errorManip< error > abort(error &err)
dimensionedScalar operator/(const scalar s1, const dimensionedScalar &ds2)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar negPart(const dimensionedScalar &ds)
void writeEntry(Ostream &os) const
Write the oriented flag entry.
void read(const dictionary &dict)
Read the oriented state from dictionary.
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
tmp< faMatrix< Type > > operator*(const areaScalarField &, const faMatrix< Type > &)
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
dimensionedScalar cbrt(const dimensionedScalar &ds)
void operator-=(const orientedType &ot)
orientedOption
Enumeration defining the valid oriented flags.
Class to determine the 'oriented' status of surface fields.
EnumType read(Istream &is) const
Read a word from Istream and return the corresponding enumeration.
dimensionedScalar neg(const dimensionedScalar &ds)
void operator/=(const orientedType &ot)
dimensionedScalar pos(const dimensionedScalar &ds)