35 #ifndef doubleScalar_H
36 #define doubleScalar_H
43 using std::numeric_limits;
72 = numeric_limits<doubleScalar>::signaling_NaN();
78 s = strtod(buf, &endPtr);
80 return (*endPtr ==
'\0');
83 #define Scalar doubleScalar
84 #define ScalarVGreat doubleScalarVGreat
85 #define ScalarVSmall doubleScalarVSmall
86 #define ScalarRootVGreat doubleScalarRootVGreat
87 #define ScalarRootVSmall doubleScalarRootVSmall
88 #define ScalarNaN doubleScalarNaN
89 #define readScalar readDoubleScalar
97 #define MAXMINPOW(retType, type1, type2) \
99 MAXMIN(retType, type1, type2) \
101 inline double pow(const type1 s, const type2 e) \
103 return ::pow(Scalar(s), Scalar(e)); \
116 #define transFunc(func) \
117 inline Scalar func(const Scalar s) \
160 #undef ScalarRootVGreat
161 #undef ScalarRootVSmall
Direction is an 8-bit unsigned integer type used to represent the Cartesian directions etc.
#define MAXMINPOW(retType, type1, type2)
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))
static const doubleScalar doubleScalarRootVGreat
doubleScalar jn(const int n, const doubleScalar s)
double doubleScalar
Double precision floating point scalar type.
static const doubleScalar doubleScalarSmall
static const doubleScalar doubleScalarNaN
dimensionedScalar yn(const int n, const dimensionedScalar &ds)
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if successful.
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensionedScalar hypot(const dimensionedScalar &x, const dimensionedScalar &y)
dimensioned< scalar > mag(const dimensioned< Type > &)
static const doubleScalar doubleScalarRootGreat
static const doubleScalar doubleScalarGreat
dimensionedScalar jn(const int n, const dimensionedScalar &ds)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
doubleScalar yn(const int n, const doubleScalar s)
doubleScalar atan2(const doubleScalar y, const doubleScalar x)
doubleScalar hypot(const doubleScalar x, const doubleScalar y)
static const doubleScalar doubleScalarVSmall
static const doubleScalar doubleScalarVGreat
static const doubleScalar doubleScalarRootSmall
static const doubleScalar doubleScalarRootVSmall