dimensionSet Class ReferenceDimension set for the base types. This type may be used to implement rigorous dimension checking for algebraic manipulation.
More...
List of all members.
|
Public Types |
| enum | { nDimensions = 7
} |
| enum | dimensionType {
MASS,
LENGTH,
TIME,
TEMPERATURE,
MOLES,
CURRENT,
LUMINOUS_INTENSITY
} |
| | Define an enumeration for the names of the dimension exponents. More...
|
Public Member Functions |
| | 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.
|
| | dimensionSet (const scalar mass, const scalar length, const scalar time, const scalar temperature, const scalar moles) |
| | Construct given individual dimension exponents for first.
|
| | dimensionSet (Istream &) |
| | Construct from Istream.
|
| bool | dimensionless () const |
| void | reset (const dimensionSet &) |
| scalar | operator[] (const dimensionType) const |
| scalar & | operator[] (const dimensionType) |
| bool | operator== (const dimensionSet &) const |
| bool | operator!= (const dimensionSet &) const |
| bool | operator= (const dimensionSet &) const |
| bool | operator+= (const dimensionSet &) const |
| bool | operator-= (const dimensionSet &) const |
| bool | operator*= (const dimensionSet &) |
| bool | operator/= (const dimensionSet &) |
Static Public Attributes |
| static const scalar | smallExponent = SMALL |
Friends |
| dimensionSet | max (const dimensionSet &, const dimensionSet &) |
| dimensionSet | min (const dimensionSet &, const dimensionSet &) |
| dimensionSet | cmptMultiply (const dimensionSet &, const dimensionSet &) |
| dimensionSet | cmptDivide (const dimensionSet &, const dimensionSet &) |
| dimensionSet | pow (const dimensionSet &, const scalar) |
| dimensionSet | pow (const dimensionSet &, const dimensionedScalar &) |
| dimensionSet | pow (const dimensionedScalar &, const dimensionSet &) |
| dimensionSet | sqr (const dimensionSet &) |
| dimensionSet | pow3 (const dimensionSet &) |
| dimensionSet | pow4 (const dimensionSet &) |
| dimensionSet | pow5 (const dimensionSet &) |
| dimensionSet | pow6 (const dimensionSet &) |
| dimensionSet | sqrt (const dimensionSet &) |
| dimensionSet | magSqr (const dimensionSet &) |
| dimensionSet | mag (const dimensionSet &) |
| dimensionSet | sign (const dimensionSet &) |
| dimensionSet | pos (const dimensionSet &) |
| dimensionSet | neg (const dimensionSet &) |
| dimensionSet | inv (const dimensionSet &) |
| dimensionSet | trans (const dimensionSet &) |
| | Function to check the argument is dimensionless.
|
| dimensionSet | transform (const dimensionSet &) |
| | Return the argument; transformations do not change the dimensions.
|
| dimensionSet | operator- (const dimensionSet &) |
| dimensionSet | operator+ (const dimensionSet &, const dimensionSet &) |
| dimensionSet | operator- (const dimensionSet &, const dimensionSet &) |
| dimensionSet | operator* (const dimensionSet &, const dimensionSet &) |
| dimensionSet | operator/ (const dimensionSet &, const dimensionSet &) |
| dimensionSet | operator& (const dimensionSet &, const dimensionSet &) |
| dimensionSet | operator^ (const dimensionSet &, const dimensionSet &) |
| dimensionSet | operator&& (const dimensionSet &, const dimensionSet &) |
| Istream & | operator>> (Istream &, dimensionSet &) |
| Ostream & | operator<< (Ostream &, const dimensionSet &) |
Detailed Description
Dimension set for the base types. This type may be used to implement rigorous dimension checking for algebraic manipulation.
- Source files
-
Definition at line 104 of file dimensionSet.H.
Member Enumeration Documentation
Define an enumeration for the names of the dimension exponents.
- Enumerator:
-
| MASS |
|
| LENGTH |
|
| TIME |
|
| TEMPERATURE |
|
| MOLES |
|
| CURRENT |
|
| LUMINOUS_INTENSITY |
|
Definition at line 117 of file dimensionSet.H.
Constructor & Destructor Documentation
Construct given individual dimension exponents for all.
seven dimensions
Definition at line 30 of file dimensionSet.C.
Construct given individual dimension exponents for first.
five dimensions
Definition at line 51 of file dimensionSet.C.
Member Function Documentation
| ClassName |
( |
"dimensionSet" |
|
) |
|
| bool dimensionless |
( |
|
) |
const |
Definition at line 88 of file dimensionSet.C.
Referenced by Foam::max(), reuseTmpTmpGeometricField< TypeR, Type1, Type12, TypeR, PatchField, GeoMesh >::New(), and reuseTmpTmpGeometricField< TypeR, TypeR, TypeR, Type2, PatchField, GeoMesh >::New().
Friends And Related Function Documentation
Function to check the argument is dimensionless.
for transcendental functions
Return the argument; transformations do not change the dimensions.
Member Data Documentation
The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd
|