40 #ifndef dimensionSet_H 41 #define dimensionSet_H 62 dimensionSet
max(
const dimensionSet&,
const dimensionSet&);
63 dimensionSet
min(
const dimensionSet&,
const dimensionSet&);
64 dimensionSet
cmptMultiply(
const dimensionSet&,
const dimensionSet&);
65 dimensionSet
cmptDivide(
const dimensionSet&,
const dimensionSet&);
66 dimensionSet
cmptMag(
const dimensionSet&);
68 dimensionSet
pow(
const dimensionSet&,
const scalar);
72 dimensionSet
sqr(
const dimensionSet&);
73 dimensionSet
pow3(
const dimensionSet&);
74 dimensionSet
pow4(
const dimensionSet&);
75 dimensionSet
pow5(
const dimensionSet&);
76 dimensionSet
pow6(
const dimensionSet&);
77 dimensionSet
pow025(
const dimensionSet&);
79 dimensionSet
sqrt(
const dimensionSet&);
80 dimensionSet
cbrt(
const dimensionSet&);
81 dimensionSet
magSqr(
const dimensionSet&);
82 dimensionSet
mag(
const dimensionSet&);
83 dimensionSet
sign(
const dimensionSet&);
84 dimensionSet
pos(
const dimensionSet&);
85 dimensionSet
pos0(
const dimensionSet&);
86 dimensionSet
neg(
const dimensionSet&);
87 dimensionSet
neg0(
const dimensionSet&);
88 dimensionSet
posPart(
const dimensionSet&);
89 dimensionSet
negPart(
const dimensionSet&);
90 dimensionSet
inv(
const dimensionSet&);
94 dimensionSet
trans(
const dimensionSet&);
96 dimensionSet
atan2(
const dimensionSet&,
const dimensionSet&);
99 dimensionSet
transform(
const dimensionSet&);
103 dimensionSet
operator-(
const dimensionSet&);
104 dimensionSet
operator+(
const dimensionSet&,
const dimensionSet&);
105 dimensionSet
operator-(
const dimensionSet&,
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&);
115 Ostream&
operator<<(Ostream&,
const dimensionSet&);
171 void push(
const token&);
175 void unpop(
const token&);
191 bool hasToken()
const;
195 void putBack(
const token&);
197 void splitWord(
const word&);
199 static bool valid(
char c);
207 void round(
const scalar tol);
211 const label lastPrior,
238 const scalar temperature,
240 const scalar current,
241 const scalar luminousIntensity
251 const scalar temperature,
273 void reset(
const dimensionSet&);
328 bool operator=(
const dimensionSet&)
const;
338 friend dimensionSet
max(
const dimensionSet&,
const dimensionSet&);
339 friend dimensionSet
min(
const dimensionSet&,
const dimensionSet&);
350 friend dimensionSet
cmptMag(
const dimensionSet&);
352 friend dimensionSet
pow(
const dimensionSet&,
const scalar);
356 friend dimensionSet
sqr(
const dimensionSet&);
357 friend dimensionSet
pow3(
const dimensionSet&);
358 friend dimensionSet
pow4(
const dimensionSet&);
359 friend dimensionSet
pow5(
const dimensionSet&);
360 friend dimensionSet
pow6(
const dimensionSet&);
361 friend dimensionSet
pow025(
const dimensionSet&);
363 friend dimensionSet
sqrt(
const dimensionSet&);
364 friend dimensionSet
magSqr(
const dimensionSet&);
365 friend dimensionSet
mag(
const dimensionSet&);
366 friend dimensionSet
sign(
const dimensionSet&);
367 friend dimensionSet
pos0(
const dimensionSet&);
368 friend dimensionSet
neg(
const dimensionSet&);
369 friend dimensionSet
inv(
const dimensionSet&);
373 friend dimensionSet
trans(
const dimensionSet&);
375 friend dimensionSet
atan2(
const dimensionSet&,
const dimensionSet&);
378 friend dimensionSet
transform(
const dimensionSet&);
383 friend dimensionSet
operator-(
const dimensionSet&);
385 friend dimensionSet
operator+
391 friend dimensionSet
operator-
397 friend dimensionSet
operator*
403 friend dimensionSet
operator/
409 friend dimensionSet
operator&
415 friend dimensionSet
operator^
421 friend dimensionSet
operator&&
dimensionedScalar sign(const dimensionedScalar &ds)
dimensionSet trans(const dimensionSet &)
tmp< fvMatrix< Type > > operator*(const volScalarField::Internal &, const fvMatrix< Type > &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
bool operator/=(const dimensionSet &)
autoPtr< dimensionSet > clone() const
Construct and return a clone.
friend dimensionSet pow(const dimensionSet &, const scalar)
HashSet< Key, Hash > operator^(const HashSet< Key, Hash > &hash1, const HashSet< Key, Hash > &hash2)
Create a HashSet that only contains unique entries (xor)
A list of keyword definitions, which are a keyword followed by any number of values (e...
friend dimensionSet mag(const dimensionSet &)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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)...
friend dimensionSet neg(const dimensionSet &)
friend dimensionSet pow025(const dimensionSet &)
A token holds items read from Istream.
bool operator-=(const dimensionSet &) const
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensionedScalar pow025(const dimensionedScalar &ds)
friend dimensionSet pow4(const dimensionSet &)
bool operator=(const dimensionSet &) const
ClassName("dimensionSet")
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 Istream & operator>>(Istream &, dimensionSet &)
tmp< fvMatrix< Type > > operator/(const fvMatrix< Type > &, const volScalarField::Internal &)
dimensionedScalar posPart(const dimensionedScalar &ds)
Ostream & write(Ostream &os, scalar &multiplier, const dimensionSets &) const
Write using provided units.
const dimensionedScalar c
Speed of light in a vacuum.
dimensionedScalar neg(const dimensionedScalar &ds)
dimensionedScalar pow5(const dimensionedScalar &ds)
dimensioned< Type > cmptDivide(const dimensioned< Type > &, const dimensioned< Type > &)
bool operator*=(const dimensionSet &)
tmp< GeometricField< Type, fvPatchField, volMesh > > operator &(const fvMatrix< Type > &, const DimensionedField< Type, volMesh > &)
friend dimensionSet sign(const dimensionSet &)
dimensionedScalar pos(const dimensionedScalar &ds)
friend dimensionSet pow6(const dimensionSet &)
friend dimensionSet magSqr(const dimensionSet &)
Dimension set for the base types.
friend Ostream & operator<<(Ostream &, const dimensionSet &)
dimensionSet operator &&(const dimensionSet &, const dimensionSet &)
A class for handling words, derived from string.
Istream & operator>>(Istream &, directionInfo &)
dimensionedScalar cbrt(const dimensionedScalar &ds)
dimensionedScalar neg0(const dimensionedScalar &ds)
dimensionSet cmptMag(const dimensionSet &)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
tmp< fvMatrix< Type > > operator-(const fvMatrix< Type > &)
bool operator+=(const dimensionSet &) const
tmp< fvMatrix< Type > > operator+(const fvMatrix< Type > &, const fvMatrix< Type > &)
An STL-conforming hash table.
friend dimensionSet max(const dimensionSet &, const dimensionSet &)
friend dimensionSet cmptDivide(const dimensionSet &, const dimensionSet &)
bool operator!=(const dimensionSet &) const
dimensioned< Type > cmptMultiply(const dimensioned< Type > &, const dimensioned< Type > &)
dimensioned< scalar > magSqr(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)
friend dimensionSet min(const dimensionSet &, const dimensionSet &)
friend dimensionSet operator-(const dimensionSet &)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
friend dimensionSet pow3(const dimensionSet &)
friend dimensionSet cmptMultiply(const dimensionSet &, const dimensionSet &)
friend dimensionSet trans(const dimensionSet &)
Function to check the argument is dimensionless.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
void reset(const dimensionSet &)
dimensionedScalar pow3(const dimensionedScalar &ds)
scalar operator[](const dimensionType) const
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
Ostream & operator<<(Ostream &, const ensightPart &)
dimensionedScalar pow4(const dimensionedScalar &ds)
dimensionedScalar pow6(const dimensionedScalar &ds)
dimensionType
Define an enumeration for the names of the dimension exponents.
dimensioned< scalar > mag(const dimensioned< Type > &)
friend dimensionSet transform(const dimensionSet &)
Return the argument; transformations do not change the dimensions.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
friend dimensionSet sqr(const dimensionSet &)
friend dimensionSet pow5(const dimensionSet &)
friend dimensionSet pos0(const dimensionSet &)
bool operator==(const dimensionSet &) const
static const scalar smallExponent
bool dimensionless() const
Return true if it is dimensionless.
friend dimensionSet inv(const dimensionSet &)
friend dimensionSet atan2(const dimensionSet &, const dimensionSet &)
friend dimensionSet cmptMag(const dimensionSet &)
Istream & read(Istream &is, scalar &multiplier, const dictionary &)
Read using provided units. Used only in initial parsing.
dimensionedScalar negPart(const dimensionedScalar &ds)
dimensionSet transform(const dimensionSet &)
friend dimensionSet sqrt(const dimensionSet &)