FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

dimensionedScalar.C File Reference


Detailed Description

Definition in file dimensionedScalar.C.

#include "src/OpenFOAM/dimensionedTypes/dimensionedScalar/dimensionedScalar.H"
Include dependency graph for dimensionedScalar.C:

Go to the source code of this file.

Namespaces

namespace  Foam
 

Namespace for OpenFOAM.


Defines

#define  transFunc(func)
#define  transFunc(func)

Functions

dimensionedScalar  operator+ (const dimensionedScalar &ds1, const scalar s2)
dimensionedScalar  operator+ (const scalar s1, const dimensionedScalar &ds2)
dimensionedScalar  operator- (const dimensionedScalar &ds1, const scalar s2)
dimensionedScalar  operator- (const scalar s1, const dimensionedScalar &ds2)
dimensionedScalar  operator* (const dimensionedScalar &ds1, const scalar s2)
dimensionedScalar  operator/ (const scalar s1, const dimensionedScalar &ds2)
dimensionedScalar  pow (const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar  pow3 (const dimensionedScalar &ds)
dimensionedScalar  pow4 (const dimensionedScalar &ds)
dimensionedScalar  pow5 (const dimensionedScalar &ds)
dimensionedScalar  pow6 (const dimensionedScalar &ds)
dimensionedScalar  sqrt (const dimensionedScalar &ds)
dimensionedScalar  cbrt (const dimensionedScalar &ds)
dimensionedScalar  hypot (const dimensionedScalar &x, const dimensionedScalar &y)
dimensionedScalar  sign (const dimensionedScalar &ds)
dimensionedScalar  pos (const dimensionedScalar &ds)
dimensionedScalar  neg (const dimensionedScalar &ds)
dimensionedScalar  exp (const dimensionedScalar &ds)
dimensionedScalar  log (const dimensionedScalar &ds)
dimensionedScalar  log10 (const dimensionedScalar &ds)
dimensionedScalar  sin (const dimensionedScalar &ds)
dimensionedScalar  cos (const dimensionedScalar &ds)
dimensionedScalar  tan (const dimensionedScalar &ds)
dimensionedScalar  asin (const dimensionedScalar &ds)
dimensionedScalar  acos (const dimensionedScalar &ds)
dimensionedScalar  atan (const dimensionedScalar &ds)
dimensionedScalar  sinh (const dimensionedScalar &ds)
dimensionedScalar  cosh (const dimensionedScalar &ds)
dimensionedScalar  tanh (const dimensionedScalar &ds)
dimensionedScalar  asinh (const dimensionedScalar &ds)
dimensionedScalar  acosh (const dimensionedScalar &ds)
dimensionedScalar  atanh (const dimensionedScalar &ds)
dimensionedScalar  erf (const dimensionedScalar &ds)
dimensionedScalar  erfc (const dimensionedScalar &ds)
dimensionedScalar  lgamma (const dimensionedScalar &ds)
dimensionedScalar  j0 (const dimensionedScalar &ds)
dimensionedScalar  j1 (const dimensionedScalar &ds)
dimensionedScalar  y0 (const dimensionedScalar &ds)
dimensionedScalar  y1 (const dimensionedScalar &ds)
dimensionedScalar  jn (const int n, const dimensionedScalar &ds)
dimensionedScalar  yn (const int n, const dimensionedScalar &ds)

Define Documentation

#define transFunc (   func  )
Value:
dimensionedScalar func(const dimensionedScalar& ds)                        \
{                                                                          \
    if (!ds.dimensions().dimensionless())                                  \
    {                                                                      \
        FatalErrorIn(#func "(const dimensionedScalar& ds)")                \
            << "ds not dimensionless"                                      \
            << abort(FatalError);                                          \
    }                                                                      \
                                                                           \
    return dimensionedScalar                                               \
    (                                                                      \
        #func "(" + ds.name() + ')',                                       \
        dimless,                                                           \
        ::func(ds.value())                                                 \
    );                                                                     \
}

Definition at line 229 of file dimensionedScalar.C.

#define transFunc (   func  )
Value:
dimensionedScalar func(const int n, const dimensionedScalar& ds)           \
{                                                                          \
    if (!ds.dimensions().dimensionless())                                  \
    {                                                                      \
        FatalErrorIn(#func "(const int n, const dimensionedScalar& ds)")   \
            << "ds not dimensionless"                                      \
            << abort(FatalError);                                          \
    }                                                                      \
                                                                           \
    return dimensionedScalar                                               \
    (                                                                      \
        #func "(" + name(n) + ',' + ds.name() + ')',                      \
        dimless,                                                           \
        ::func(n, ds.value())                                              \
    );                                                                     \
}

Definition at line 229 of file dimensionedScalar.C.