37 #ifndef Foam_orientedType_H 38 #define Foam_orientedType_H 50 Istream&
operator>>(Istream& is, orientedType& ot);
51 Ostream&
operator<<(Ostream&
os,
const orientedType& ot);
175 orientedType
min(
const orientedType& a,
const orientedType&
b);
176 orientedType
max(
const orientedType& a,
const orientedType&
b);
177 orientedType
lerp(
const orientedType& a,
const orientedType&
b);
179 orientedType
cmptMultiply(
const orientedType& ot1,
const orientedType& ot2);
180 orientedType
cmptDivide(
const orientedType& ot1,
const orientedType& ot);
181 orientedType
cmptAv(
const orientedType& ot);
183 orientedType
pow(
const orientedType& ot,
const scalar
p);
184 orientedType
sqr(
const orientedType& ot);
185 orientedType
pow2(
const orientedType& ot);
186 orientedType
pow3(
const orientedType& ot);
187 orientedType
pow4(
const orientedType& ot);
188 orientedType
pow5(
const orientedType& ot);
189 orientedType
pow6(
const orientedType& ot);
190 orientedType
pow025(
const orientedType& ot);
constexpr orientedType() noexcept
Default construct as UNKNOWN.
dimensionedScalar sign(const dimensionedScalar &ds)
friend Ostream & operator<<(Ostream &os, const orientedType &ot)
void setOriented(bool on=true) noexcept
Set the oriented flag: on/off.
tmp< DimensionedField< typename DimensionedField< Type, GeoMesh >::cmptType, GeoMesh >> cmptAv(const DimensionedField< Type, GeoMesh > &f1)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
orientedOption
Enumeration defining oriented flags.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensionedScalar pow025(const dimensionedScalar &ds)
dimensionSet operator &&(const dimensionSet &ds1, const dimensionSet &ds2)
dimensionedScalar operator/(const scalar s1, const dimensionedScalar &ds2)
static const Enum< orientedOption > orientedOptionNames
Named enumerations for oriented flags.
Class to determine the 'oriented' status of surface fields.
bool writeEntry(Ostream &os) const
Write the "oriented" flag entry (if ORIENTED)
tmp< faMatrix< Type > > operator+(const faMatrix< Type > &, const faMatrix< Type > &)
dimensionedScalar posPart(const dimensionedScalar &ds)
dimensionedScalar neg(const dimensionedScalar &ds)
dimensionedScalar pow5(const dimensionedScalar &ds)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
bool is_oriented() const noexcept
True if ORIENTED.
dimensionedScalar pos(const dimensionedScalar &ds)
void operator+=(const orientedType &ot)
tmp< faMatrix< Type > > operator*(const areaScalarField::Internal &, const faMatrix< Type > &)
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Istream & operator>>(Istream &, directionInfo &)
dimensionedScalar cbrt(const dimensionedScalar &ds)
dimensionedScalar neg0(const dimensionedScalar &ds)
static bool checkType(const orientedType &a, const orientedType &b) noexcept
True if can operate on this combination of oriented types.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
dimensionSet pow2(const dimensionSet &ds)
tmp< faMatrix< Type > > operator-(const faMatrix< Type > &)
Unary negation.
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
dimensionedScalar pos0(const dimensionedScalar &ds)
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
orientedOption oriented() const noexcept
Return the oriented flag.
OBJstream os(runTime.globalPath()/outputName)
dimensioned< Type > lerp(const dimensioned< Type > &a, const dimensioned< Type > &b, const scalar t)
dimensionSet trans(const dimensionSet &ds)
Check the argument is dimensionless (for transcendental functions)
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)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
void read(const dictionary &dict)
Read the "oriented" state from dictionary.
dimensionedScalar pow3(const dimensionedScalar &ds)
tmp< GeometricField< Type, faPatchField, areaMesh > > operator &(const faMatrix< Type > &, const DimensionedField< Type, areaMesh > &)
friend Istream & operator>>(Istream &is, orientedType &ot)
dimensionedScalar pow4(const dimensionedScalar &ds)
dimensionedScalar pow6(const dimensionedScalar &ds)
void operator/=(const orientedType &ot)
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))
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
dimensionedScalar hypot(const dimensionedScalar &x, const dimensionedScalar &y)
void operator*=(const orientedType &ot)
void operator-=(const orientedType &ot)
bool operator()() const noexcept
Convert to bool. Same as is_oriented()
orientedType & operator=(const orientedType &) noexcept=default
Copy assignment.
dimensioned< typename typeOfMag< Type >::type > magSqr(const dimensioned< Type > &dt)
dimensionedScalar negPart(const dimensionedScalar &ds)
Unknown/undefined orientation.