doubleScalar.H File Reference
Include dependency graph for doubleScalar.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   doubleScalar
 
#define ScalarVGreat   doubleScalarVGreat
 
#define ScalarVSmall   doubleScalarVSmall
 
#define ScalarRootVGreat   doubleScalarRootVGreat
 
#define ScalarRootVSmall   doubleScalarRootVSmall
 
#define readScalar   readDoubleScalar
 
#define MAXMINPOW(retType, type1, type2)
 
#define transFunc(func)
 

Typedefs

typedef double doubleScalar
 Double precision floating point scalar type. More...
 

Functions

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

Variables

static const doubleScalar doubleScalarVGreat = numeric_limits<double>::max()/10
 
static const doubleScalar doubleScalarVSmall = numeric_limits<double>::min()
 
static const doubleScalar doubleScalarSmall = numeric_limits<double>::epsilon()
 
static const doubleScalar doubleScalarGreat = 1.0/doubleScalarSmall
 
static const doubleScalar doubleScalarRootVGreat = ::sqrt(doubleScalarVGreat)
 
static const doubleScalar doubleScalarRootVSmall = ::sqrt(doubleScalarVSmall)
 
static const doubleScalar doubleScalarRootGreat = ::sqrt(doubleScalarGreat)
 
static const doubleScalar doubleScalarRootSmall = ::sqrt(doubleScalarSmall)
 
const doubleScalar e { return ::pow( doubleScalar (s), doubleScalar (e))
 Elementary charge. More...
 

Detailed Description

Original source file doubleScalar.H

Definition in file doubleScalar.H.

Macro Definition Documentation

◆ Scalar

#define Scalar   doubleScalar

Definition at line 76 of file doubleScalar.H.

◆ ScalarVGreat

#define ScalarVGreat   doubleScalarVGreat

Definition at line 77 of file doubleScalar.H.

◆ ScalarVSmall

#define ScalarVSmall   doubleScalarVSmall

Definition at line 78 of file doubleScalar.H.

◆ ScalarRootVGreat

#define ScalarRootVGreat   doubleScalarRootVGreat

Definition at line 79 of file doubleScalar.H.

◆ ScalarRootVSmall

#define ScalarRootVSmall   doubleScalarRootVSmall

Definition at line 80 of file doubleScalar.H.

◆ readScalar

#define readScalar   readDoubleScalar

Definition at line 81 of file doubleScalar.H.

◆ MAXMINPOW

#define MAXMINPOW (   retType,
  type1,
  type2 
)
Value:
\
MAXMIN(retType, type1, type2) \
\
inline double pow(const type1 s, const type2 e) \
{ \
}
#define Scalar
Definition: doubleScalar.H:76
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 doubleScalar.H.

◆ transFunc

#define transFunc (   func)
Value:
inline Scalar func(const Scalar s) \
{ \
}
#define Scalar
Definition: doubleScalar.H:76
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)

Definition at line 108 of file doubleScalar.H.