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
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&);
102 dimensionSet
operator-(
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&);
108 dimensionSet
operator^(
const dimensionSet&,
const dimensionSet&);
109 dimensionSet
operator&&(
const dimensionSet&,
const dimensionSet&);
114 Ostream&
operator<<(Ostream&,
const dimensionSet&);
170 void push(
const token&);
174 void unpop(
const token&);
190 bool hasToken()
const;
194 void putBack(
const token&);
196 void splitWord(
const word&);
198 static bool valid(
char c);
206 void round(
const scalar tol);
210 const label lastPrior,
237 const scalar temperature,
239 const scalar current,
240 const scalar luminousIntensity
250 const scalar temperature,
272 void reset(
const dimensionSet&);
327 bool operator=(
const dimensionSet&)
const;
337 friend dimensionSet
max(
const dimensionSet&,
const dimensionSet&);
338 friend dimensionSet
min(
const dimensionSet&,
const dimensionSet&);
350 friend dimensionSet
pow(
const dimensionSet&,
const scalar);
354 friend dimensionSet
sqr(
const dimensionSet&);
355 friend dimensionSet
pow3(
const dimensionSet&);
356 friend dimensionSet
pow4(
const dimensionSet&);
357 friend dimensionSet
pow5(
const dimensionSet&);
358 friend dimensionSet
pow6(
const dimensionSet&);
359 friend dimensionSet
pow025(
const dimensionSet&);
361 friend dimensionSet
sqrt(
const dimensionSet&);
362 friend dimensionSet
magSqr(
const dimensionSet&);
363 friend dimensionSet
mag(
const dimensionSet&);
364 friend dimensionSet
sign(
const dimensionSet&);
365 friend dimensionSet
pos0(
const dimensionSet&);
366 friend dimensionSet
neg(
const dimensionSet&);
367 friend dimensionSet
inv(
const dimensionSet&);
371 friend dimensionSet
trans(
const dimensionSet&);
373 friend dimensionSet
atan2(
const dimensionSet&,
const dimensionSet&);
376 friend dimensionSet
transform(
const dimensionSet&);
381 friend dimensionSet
operator-(
const dimensionSet&);
383 friend dimensionSet
operator+
389 friend dimensionSet
operator-
395 friend dimensionSet
operator*
401 friend dimensionSet
operator/
407 friend dimensionSet
operator&
413 friend dimensionSet
operator^
419 friend dimensionSet
operator&&
dimensionedScalar sign(const dimensionedScalar &ds)
dimensionSet trans(const dimensionSet &)
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 &)
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...
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 &)
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 &)
dimensionedScalar operator/(const scalar s1, const dimensionedScalar &ds2)
dimensionedScalar posPart(const dimensionedScalar &ds)
Ostream & write(Ostream &os, scalar &multiplier, const dimensionSets &) const
Write using provided units.
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 &)
tmp< fvMatrix< Type > > operator*(const volScalarField::Internal &, const fvMatrix< Type > &)
A class for handling words, derived from string.
Istream & operator>>(Istream &, directionInfo &)
dimensionedScalar cbrt(const dimensionedScalar &ds)
dimensionedScalar neg0(const dimensionedScalar &ds)
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 &)
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)
scalar operator[](const dimensionType) const
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
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 &)
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 &)
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 &)