floatScalar.H File Reference
Include dependency graph for floatScalar.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Macros

#define Scalar   floatScalar
 
#define ScalarVGreat   floatScalarVGreat
 
#define ScalarVSmall   floatScalarVSmall
 
#define ScalarRootVGreat   floatScalarRootVGreat
 
#define ScalarRootVSmall   floatScalarRootVSmall
 
#define ScalarNaN   floatScalarNaN
 
#define readScalar   readFloatScalar
 
#define MAXMINPOW(retType, type1, type2)
 
#define transFunc(func)
 

Typedefs

typedef float floatScalar
 Float precision floating point scalar type. More...
 

Functions

bool readScalar (const char *buf, floatScalar &s)
 Read whole of buf as a scalar. Return true if successful. More...
 
floatScalar mag (const floatScalar s)
 
 MAXMIN (floatScalar, floatScalar, floatScalar) inline double pow(const floatScalar s
 
 MAXMIN (floatScalar, floatScalar, int) inline double pow(const floatScalar s
 
 MAXMIN (floatScalar, int, floatScalar) inline double pow(const int s
 
 MAXMIN (floatScalar, floatScalar, long) inline double pow(const floatScalar s
 
 MAXMIN (floatScalar, long, floatScalar) inline double pow(const long s
 
floatScalar hypot (const floatScalar x, const floatScalar y)
 
floatScalar atan2 (const floatScalar y, const floatScalar x)
 
floatScalar jn (const int n, const floatScalar s)
 
floatScalar yn (const int n, const floatScalar s)
 

Variables

static const floatScalar floatScalarVGreat = numeric_limits<floatScalar>::max()/10
 
static const floatScalar floatScalarVSmall = numeric_limits<floatScalar>::min()
 
static const floatScalar floatScalarSmall = numeric_limits<floatScalar>::epsilon()
 
static const floatScalar floatScalarGreat = 1.0/floatScalarSmall
 
static const floatScalar floatScalarRootVGreat = ::sqrt(floatScalarVGreat)
 
static const floatScalar floatScalarRootVSmall = ::sqrt(floatScalarVSmall)
 
static const floatScalar floatScalarRootGreat = ::sqrt(floatScalarGreat)
 
static const floatScalar floatScalarRootSmall = ::sqrt(floatScalarSmall)
 
static const floatScalar floatScalarNaN = numeric_limits<floatScalar>::signaling_NaN()
 

Detailed Description

Original source file floatScalar.H

Definition in file floatScalar.H.

Macro Definition Documentation

◆ Scalar

#define Scalar   floatScalar

Definition at line 83 of file floatScalar.H.

◆ ScalarVGreat

#define ScalarVGreat   floatScalarVGreat

Definition at line 84 of file floatScalar.H.

◆ ScalarVSmall

#define ScalarVSmall   floatScalarVSmall

Definition at line 85 of file floatScalar.H.

◆ ScalarRootVGreat

#define ScalarRootVGreat   floatScalarRootVGreat

Definition at line 86 of file floatScalar.H.

◆ ScalarRootVSmall

#define ScalarRootVSmall   floatScalarRootVSmall

Definition at line 87 of file floatScalar.H.

◆ ScalarNaN

#define ScalarNaN   floatScalarNaN

Definition at line 88 of file floatScalar.H.

◆ readScalar

#define readScalar   readFloatScalar

Definition at line 89 of file floatScalar.H.

◆ MAXMINPOW

#define MAXMINPOW (   retType,
  type1,
  type2 
)
Value:
\
MAXMIN(retType, type1, type2) \
\
inline double pow(const type1 s, const type2 e) \
{ \
return ::powf(s, e); \
}
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
const dimensionedScalar e
Elementary charge.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)

Definition at line 97 of file floatScalar.H.

◆ transFunc

#define transFunc (   func)
Value:
inline Scalar func(const Scalar s) \
{ \
}
#define Scalar
Definition: floatScalar.H:83
void func(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
labelList f(nPoints)

Definition at line 115 of file floatScalar.H.