Go to the documentation of this file.
41 { orientedOption::UNKNOWN,
"unknown" },
42 { orientedOption::ORIENTED,
"oriented" },
43 { orientedOption::UNORIENTED,
"unoriented" },
51 const orientedType& ot1,
52 const orientedType& ot2
59 || (ot1.oriented() == ot2.oriented())
74 oriented_(ot.oriented_)
80 oriented_(oriented ? ORIENTED : UNORIENTED)
86 oriented_(orientedOptionNames.
read(is))
108 oriented_ = oriented ? 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)
170 oriented_ = ot.oriented();
173 if (!checkType(*
this, ot))
176 <<
"Operator -= is undefined for "
177 << orientedOptionNames[oriented_] <<
" and "
178 << orientedOptionNames[ot.oriented()] <<
" types"
186 const orientedType& ot1 = *
this;
189 oriented_ = ORIENTED;
193 oriented_ = UNORIENTED;
200 const orientedType& ot1 = *
this;
203 oriented_ = ORIENTED;
207 oriented_ = UNORIENTED;
226 return oriented_ == ORIENTED;
237 <<
"Operator max is undefined for "
252 <<
"Operator min is undefined for "
264 const orientedType& ot1,
265 const orientedType& ot2
274 const orientedType& ot1,
414 const orientedType& ot1,
415 const orientedType& ot2
421 <<
"Operator atan2 is undefined for "
433 const orientedType& ot1,
434 const orientedType& ot2
440 <<
"Operator hypot is undefined for "
482 const orientedType& ot1,
483 const orientedType& ot2
489 <<
"Operator + is undefined for "
496 return orientedType(ot1() || ot2());
508 const orientedType& ot1,
509 const orientedType& ot2
515 <<
"Operator - is undefined for "
522 return orientedType(ot1() || ot2());
540 const orientedType& ot1,
541 const orientedType& ot2
550 const orientedType& ot1,
551 const orientedType& ot2
560 const orientedType& ot1,
561 const orientedType& ot2
571 const orientedType& ot1,
572 const orientedType& ot2
581 const orientedType& ot1,
582 const orientedType& ot2
585 return orientedType(
false);
dimensionSet trans(const dimensionSet &ds)
void operator*=(const orientedType &ot)
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
static Ostream & output(Ostream &os, const IntRange< T > &range)
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 > &)
dimensionedScalar posPart(const dimensionedScalar &ds)
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
bool read(const char *buf, int32_t &val)
static bool checkType(const orientedType &ot1, const orientedType &ot2)
tmp< faMatrix< Type > > operator-(const faMatrix< Type > &)
dimensionedScalar neg0(const dimensionedScalar &ds)
static const Enum< orientedOption > orientedOptionNames
Istream & operator>>(Istream &, directionInfo &)
dimensionedScalar pos0(const dimensionedScalar &ds)
dimensionedScalar sign(const dimensionedScalar &ds)
dimensionSet transform(const dimensionSet &ds)
void operator=(const orientedType &ot)
bool writeEntry(Ostream &os) const
label min(const labelHashSet &set, label minValue=labelMax)
orientedOption & oriented() noexcept
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)
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)
virtual bool check(const char *operation) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
dimensionedScalar pow5(const dimensionedScalar &ds)
OBJstream os(runTime.globalPath()/outputName)
errorManip< error > abort(error &err)
dimensionedScalar operator/(const scalar s1, const dimensionedScalar &ds2)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar negPart(const dimensionedScalar &ds)
void read(const dictionary &dict)
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)
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)
Class to determine the 'oriented' status of surface fields.
EnumType read(Istream &is) const
dimensionedScalar neg(const dimensionedScalar &ds)
void operator/=(const orientedType &ot)
void setOriented(const bool oriented=true) noexcept
dimensionedScalar pos(const dimensionedScalar &ds)