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&);
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
neg(
const dimensionSet&);
85 dimensionSet
posPart(
const dimensionSet&);
86 dimensionSet
negPart(
const dimensionSet&);
87 dimensionSet
inv(
const dimensionSet&);
91 dimensionSet
trans(
const dimensionSet&);
93 dimensionSet
atan2(
const dimensionSet&,
const dimensionSet&);
96 dimensionSet
transform(
const dimensionSet&);
100 dimensionSet
operator-(
const dimensionSet&);
101 dimensionSet
operator+(
const dimensionSet&,
const dimensionSet&);
102 dimensionSet
operator-(
const dimensionSet&,
const dimensionSet&);
103 dimensionSet
operator*(
const dimensionSet&,
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&);
112 Ostream&
operator<<(Ostream&,
const dimensionSet&);
168 void push(
const token&);
172 void unpop(
const token&);
188 bool hasToken()
const;
192 void putBack(
const token&);
194 void splitWord(
const word&);
196 static bool valid(
char c);
204 void round(
const scalar tol);
208 const label lastPrior,
235 const scalar temperature,
237 const scalar current,
238 const scalar luminousIntensity
248 const scalar temperature,
270 void reset(
const dimensionSet&);
325 bool operator=(
const dimensionSet&)
const;
335 friend dimensionSet
max(
const dimensionSet&,
const dimensionSet&);
336 friend dimensionSet
min(
const dimensionSet&,
const dimensionSet&);
348 friend dimensionSet
pow(
const dimensionSet&,
const scalar);
352 friend dimensionSet
sqr(
const dimensionSet&);
353 friend dimensionSet
pow3(
const dimensionSet&);
354 friend dimensionSet
pow4(
const dimensionSet&);
355 friend dimensionSet
pow5(
const dimensionSet&);
356 friend dimensionSet
pow6(
const dimensionSet&);
357 friend dimensionSet
pow025(
const dimensionSet&);
359 friend dimensionSet
sqrt(
const dimensionSet&);
360 friend dimensionSet
magSqr(
const dimensionSet&);
361 friend dimensionSet
mag(
const dimensionSet&);
362 friend dimensionSet
sign(
const dimensionSet&);
363 friend dimensionSet
pos(
const dimensionSet&);
364 friend dimensionSet
neg(
const dimensionSet&);
365 friend dimensionSet
inv(
const dimensionSet&);
369 friend dimensionSet
trans(
const dimensionSet&);
371 friend dimensionSet
atan2(
const dimensionSet&,
const dimensionSet&);
374 friend dimensionSet
transform(
const dimensionSet&);
379 friend dimensionSet
operator-(
const dimensionSet&);
381 friend dimensionSet
operator+
387 friend dimensionSet
operator-
393 friend dimensionSet
operator*
399 friend dimensionSet
operator/
405 friend dimensionSet
operator&
411 friend dimensionSet
operator^
417 friend dimensionSet
operator&&
dimensionedScalar sign(const dimensionedScalar &ds)
dimensionSet trans(const dimensionSet &)
bool operator-=(const dimensionSet &) const
bool operator!=(const dimensionSet &) const
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool operator/=(const dimensionSet &)
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...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
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 &)
autoPtr< dimensionSet > clone() const
Construct and return a clone.
friend dimensionSet pow025(const dimensionSet &)
A token holds items read from Istream.
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensionedScalar pow025(const dimensionedScalar &ds)
friend dimensionSet pow4(const dimensionSet &)
ClassName("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 Istream & operator>>(Istream &, dimensionSet &)
dimensionedScalar operator/(const scalar s1, const dimensionedScalar &ds2)
bool operator==(const dimensionSet &) const
tmp< fvMatrix< Type > > operator*(const DimensionedField< scalar, volMesh > &, const fvMatrix< 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 operator*=(const dimensionSet &)
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 &)
friend dimensionSet pos(const dimensionSet &)
A class for handling words, derived from string.
Istream & operator>>(Istream &, directionInfo &)
dimensionedScalar cbrt(const dimensionedScalar &ds)
bool operator+=(const dimensionSet &) const
tmp< fvMatrix< Type > > operator-(const fvMatrix< Type > &)
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 &)
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 atan2(const dimensionedScalar &x, const dimensionedScalar &y)
friend dimensionSet min(const dimensionSet &, const dimensionSet &)
friend dimensionSet operator-(const dimensionSet &)
friend dimensionSet pow3(const dimensionSet &)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
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)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
bool dimensionless() const
Return true if it is dimensionless.
tmp< GeometricField< Type, fvPatchField, volMesh > > operator&(const fvMatrix< Type > &, const DimensionedField< Type, volMesh > &)
Macro definitions for declaring ClassName(), NamespaceName(), etc.
scalar operator[](const dimensionType) const
const dimensionedScalar c
Speed of light in a vacuum.
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 &)
static const scalar smallExponent
friend dimensionSet inv(const dimensionSet &)
Ostream & write(Ostream &os, scalar &multiplier, const dimensionSets &) const
Write using provided units.
friend dimensionSet atan2(const dimensionSet &, const dimensionSet &)
dimensioned< typename scalarProduct< Type1, Type2 >::type > operator&&(const dimensioned< Type1 > &, const dimensioned< Type2 > &)
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 &)