37#ifndef Foam_orientedType_H
38#define Foam_orientedType_H
175orientedType
min(
const orientedType& a,
const orientedType&
b);
176orientedType
max(
const orientedType& a,
const orientedType&
b);
177orientedType
lerp(
const orientedType& a,
const orientedType&
b);
179orientedType
cmptMultiply(
const orientedType& ot1,
const orientedType& ot2);
180orientedType
cmptDivide(
const orientedType& ot1,
const orientedType& ot);
181orientedType
cmptAv(
const orientedType& ot);
183orientedType
pow(
const orientedType& ot,
const scalar
p);
184orientedType
sqr(
const orientedType& ot);
185orientedType
pow2(
const orientedType& ot);
186orientedType
pow3(
const orientedType& ot);
187orientedType
pow4(
const orientedType& ot);
188orientedType
pow5(
const orientedType& ot);
189orientedType
pow6(
const orientedType& ot);
190orientedType
pow025(
const orientedType& ot);
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
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,...
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)
bool is_oriented() const noexcept
True if ORIENTED.
void setOriented(bool on=true) noexcept
Set the oriented flag: on/off.
void operator*=(const orientedType &ot)
orientedOption & oriented() noexcept
Return non-const reference to the oriented flag.
void read(const dictionary &dict)
Read the "oriented" state from dictionary.
orientedOption
Enumeration defining oriented flags.
@ UNKNOWN
Unknown/undefined orientation.
@ UNORIENTED
Is unoriented.
static bool checkType(const orientedType &a, const orientedType &b) noexcept
True if can operate on this combination of oriented types.
void operator-=(const orientedType &ot)
friend Istream & operator>>(Istream &is, orientedType &ot)
orientedType & operator=(const orientedType &) noexcept=default
Copy assignment.
bool operator()() const noexcept
Convert to bool. Same as is_oriented().
bool writeEntry(Ostream &os) const
Write the "oriented" flag entry (if ORIENTED).
friend Ostream & operator<<(Ostream &os, const orientedType &ot)
constexpr orientedType(const bool isOriented) noexcept
Construct from bool.
static const Enum< orientedOption > orientedOptionNames
Named enumerations for oriented flags.
orientedOption oriented() const noexcept
Return the oriented flag.
void operator+=(const orientedType &ot)
constexpr orientedType() noexcept
Default construct as UNKNOWN.
orientedType(const orientedType &) noexcept=default
Copy construct.
orientedType(orientedOption opt) noexcept
Implicit construct from enumeration.
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.
dimensionedScalar pos0(const dimensionedScalar &ds)
dimensionedScalar sign(const dimensionedScalar &ds)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
tmp< faMatrix< Type > > operator+(const faMatrix< Type > &, const faMatrix< Type > &)
dimensionedScalar pow3(const dimensionedScalar &ds)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
refinementData transform(const tensor &, const refinementData val)
No-op rotational transform for base types.
tmp< faMatrix< Type > > operator*(const areaScalarField::Internal &, const faMatrix< Type > &)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
bitSet operator^(const bitSet &a, const bitSet &b)
Bitwise-XOR of two bitsets to form a unique bit-set.
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)
tmp< DimensionedField< typename DimensionedField< Type, GeoMesh >::cmptType, GeoMesh > > cmptAv(const DimensionedField< Type, GeoMesh > &f1)
tmp< GeometricField< Type, faPatchField, areaMesh > > operator&(const faMatrix< Type > &, const DimensionedField< Type, areaMesh > &)
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)
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)
dimensioned< typename scalarProduct< Type1, Type2 >::type > operator&&(const dimensioned< Type1 > &, const dimensioned< Type2 > &)
dimensionSet pow2(const dimensionSet &ds)
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
dimensionedScalar posPart(const dimensionedScalar &ds)
dimensioned< Type > lerp(const dimensioned< Type > &a, const dimensioned< Type > &b, const scalar t)
dimensionedScalar pow025(const dimensionedScalar &ds)