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 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<float>::max()/10
 
static const floatScalar floatScalarVSmall = numeric_limits<float>::min()
 
static const floatScalar floatScalarSmall = numeric_limits<float>::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)
 

Detailed Description

Original source file floatScalar.H

Definition in file floatScalar.H.

Macro Definition Documentation

◆ Scalar

#define Scalar   floatScalar

Definition at line 76 of file floatScalar.H.

◆ ScalarVGreat

#define ScalarVGreat   floatScalarVGreat

Definition at line 77 of file floatScalar.H.

◆ ScalarVSmall

#define ScalarVSmall   floatScalarVSmall

Definition at line 78 of file floatScalar.H.

◆ ScalarRootVGreat

#define ScalarRootVGreat   floatScalarRootVGreat

Definition at line 79 of file floatScalar.H.

◆ ScalarRootVSmall

#define ScalarRootVSmall   floatScalarRootVSmall

Definition at line 80 of file floatScalar.H.

◆ readScalar

#define readScalar   readFloatScalar

Definition at line 81 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.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
volScalarField & e
Elementary charge.
Definition: createFields.H:11
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)

Definition at line 89 of file floatScalar.H.

◆ transFunc

#define transFunc (   func)
Value:
inline Scalar func(const Scalar s) \
{ \
}
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.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
void func(FieldField< Field, Type > &f, const FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
#define Scalar
Definition: floatScalar.H:76
labelList f(nPoints)

Definition at line 107 of file floatScalar.H.