39 #ifndef dimensionSet_H
40 #define dimensionSet_H
56 template<
class Type>
class dimensioned;
61 dimensionSet
max(
const dimensionSet&,
const dimensionSet&);
62 dimensionSet
min(
const dimensionSet&,
const dimensionSet&);
63 dimensionSet
cmptMultiply(
const dimensionSet&,
const dimensionSet&);
64 dimensionSet
cmptDivide(
const dimensionSet&,
const dimensionSet&);
65 dimensionSet
cmptMag(
const dimensionSet&);
67 dimensionSet
pow(
const dimensionSet&,
const scalar);
71 dimensionSet
sqr(
const dimensionSet&);
72 dimensionSet
pow3(
const dimensionSet&);
73 dimensionSet
pow4(
const dimensionSet&);
74 dimensionSet
pow5(
const dimensionSet&);
75 dimensionSet
pow6(
const dimensionSet&);
76 dimensionSet
pow025(
const dimensionSet&);
78 dimensionSet
sqrt(
const dimensionSet&);
79 dimensionSet
cbrt(
const dimensionSet&);
80 dimensionSet
magSqr(
const dimensionSet&);
81 dimensionSet
mag(
const dimensionSet&);
82 dimensionSet
sign(
const dimensionSet&);
83 dimensionSet
pos(
const dimensionSet&);
84 dimensionSet
pos0(
const dimensionSet&);
85 dimensionSet
neg(
const dimensionSet&);
86 dimensionSet
neg0(
const dimensionSet&);
87 dimensionSet
posPart(
const dimensionSet&);
88 dimensionSet
negPart(
const dimensionSet&);
89 dimensionSet
inv(
const dimensionSet&);
93 dimensionSet
trans(
const dimensionSet&);
95 dimensionSet
atan2(
const dimensionSet&,
const dimensionSet&);
98 dimensionSet
transform(
const dimensionSet&);
105 dimensionSet
operator-(
const dimensionSet&);
106 dimensionSet
operator+(
const dimensionSet&,
const dimensionSet&);
107 dimensionSet
operator-(
const dimensionSet&,
const dimensionSet&);
108 dimensionSet
operator*(
const dimensionSet&,
const dimensionSet&);
109 dimensionSet
operator/(
const dimensionSet&,
const dimensionSet&);
110 dimensionSet
operator&(
const dimensionSet&,
const dimensionSet&);
111 dimensionSet
operator^(
const dimensionSet&,
const dimensionSet&);
112 dimensionSet
operator&&(
const dimensionSet&,
const dimensionSet&);
117 Ostream&
operator<<(Ostream&,
const dimensionSet&);
118 Ostream&
operator<<(Ostream&,
const InfoProxy<dimensionSet>&);
172 void round(
const scalar tol);
190 const scalar temperature,
192 const scalar current,
193 const scalar luminousIntensity
203 const scalar temperature,
A helper class for outputting values to Ostream.
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,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Dimension set for the base types.
Istream & readNoBegin(Istream &is)
Read, assuming the '[' has already been read.
friend dimensionSet pow5(const dimensionSet &)
friend dimensionSet operator-(const dimensionSet &)
bool operator+=(const dimensionSet &) const
friend dimensionSet pow(const dimensionSet &, const dimensionedScalar &)
InfoProxy< dimensionSet > info() const
Return info proxy.
bool operator==(const dimensionSet &) const
friend dimensionSet transform(const dimensionSet &)
friend dimensionSet min(const dimensionSet &, const dimensionSet &)
bool operator!=(const dimensionSet &) const
dimensionSet(const scalar mass, const scalar length, const scalar time, const scalar temperature, const scalar moles, const scalar current, const scalar luminousIntensity)
Construct given individual dimension exponents for all.
friend dimensionSet magSqr(const dimensionSet &)
friend dimensionSet pos0(const dimensionSet &)
friend dimensionSet neg(const dimensionSet &)
static const scalar smallExponent
A small exponent with which to perform inexact comparisons.
friend dimensionSet sqr(const dimensionSet &)
friend dimensionSet pow025(const dimensionSet &)
friend dimensionSet atan2(const dimensionSet &, const dimensionSet &)
friend dimensionSet sqrt(const dimensionSet &)
ClassName("dimensionSet")
bool operator/=(const dimensionSet &)
friend dimensionSet cmptMag(const dimensionSet &)
Ostream & write(Ostream &os) const
Write.
friend Istream & operator>>(Istream &, dimensionSet &)
friend Ostream & operator<<(Ostream &, const dimensionSet &)
friend Ostream & operator<<(Ostream &, const InfoProxy< dimensionSet > &)
friend dimensionSet cmptMultiply(const dimensionSet &, const dimensionSet &)
bool operator-=(const dimensionSet &) const
friend dimensionSet pow4(const dimensionSet &)
scalar operator[](const dimensionType) const
friend dimensionSet mag(const dimensionSet &)
void reset(const dimensionSet &)
friend dimensionSet pow3(const dimensionSet &)
friend dimensionSet sign(const dimensionSet &)
friend dimensionSet pow6(const dimensionSet &)
static const NamedEnum< dimensionType, 7 > dimensionTypeNames_
Names of the dimensions.
bool dimensionless() const
Return true if it is dimensionless.
friend dimensionSet normalised(const dimensionSet &)
autoPtr< dimensionSet > clone() const
Construct and return a clone.
friend dimensionSet pow(const dimensionSet &, const scalar)
dimensionType
Define an enumeration for the names of the dimension exponents.
bool operator*=(const dimensionSet &)
friend dimensionSet trans(const dimensionSet &)
Function to check the argument is dimensionless.
friend dimensionSet cmptDivide(const dimensionSet &, const dimensionSet &)
friend dimensionSet inv(const dimensionSet &)
friend dimensionSet perpendicular(const dimensionSet &)
friend dimensionSet pow(const dimensionedScalar &, const dimensionSet &)
friend dimensionSet max(const dimensionSet &, const dimensionSet &)
bool operator=(const dimensionSet &) const
Istream & read(Istream &is)
Read.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
dimensionedScalar pow6(const dimensionedScalar &ds)
dimensionedScalar pos(const dimensionedScalar &ds)
dimensionedScalar pow5(const dimensionedScalar &ds)
dimensionedScalar pos0(const dimensionedScalar &ds)
dimensionedScalar sign(const dimensionedScalar &ds)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar pow3(const dimensionedScalar &ds)
HashSet< Key, Hash > operator^(const HashSet< Key, Hash > &hash1, const HashSet< Key, Hash > &hash2)
Create a HashSet that only contains unique entries (xor)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensionedScalar negPart(const dimensionedScalar &ds)
dimensionedScalar sqrt(const dimensionedScalar &ds)
Istream & operator>>(Istream &, pistonPointEdgeData &)
dimensionSet transform(const dimensionSet &)
dimensionSet normalised(const dimensionSet &)
dimensioned< scalar > mag(const dimensioned< Type > &)
dimensionedScalar pow4(const dimensionedScalar &ds)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedScalar neg(const dimensionedScalar &ds)
dimensionSet cmptMag(const dimensionSet &)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
tmp< VolField< Type > > operator&(const fvMatrix< Type > &, const DimensionedField< Type, volMesh > &)
tmp< fvMatrix< Type > > operator*(const volScalarField::Internal &, const fvMatrix< Type > &)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
tmp< fvMatrix< Type > > operator+(const fvMatrix< Type > &, const fvMatrix< Type > &)
dimensionedScalar neg0(const dimensionedScalar &ds)
dimensionedScalar cbrt(const dimensionedScalar &ds)
dimensionSet perpendicular(const dimensionSet &)
tmp< fvMatrix< Type > > operator-(const fvMatrix< Type > &)
dimensionSet trans(const dimensionSet &)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
dimensionedScalar posPart(const dimensionedScalar &ds)
tmp< fvMatrix< Type > > operator/(const fvMatrix< Type > &, const volScalarField::Internal &)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dimensionedScalar pow025(const dimensionedScalar &ds)
dimensioned< typename scalarProduct< Type1, Type2 >::type > operator&&(const dimensioned< Type1 > &, const dimensioned< Type2 > &)