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 readScalar readDoubleScalar 96 #define MAXMINPOW(retType, type1, type2) \ 98 MAXMIN(retType, type1, type2) \ 100 inline double pow(const type1 s, const type2 e) \ 102 return ::pow(Scalar(s), Scalar(e)); \ 115 #define transFunc(func) \ 116 inline Scalar func(const Scalar s) \ 159 #undef ScalarRootVGreat 160 #undef ScalarRootVSmall layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
doubleScalar jn(const int n, const doubleScalar s)
#define MAXMINPOW(retType, type1, type2)
static const doubleScalar doubleScalarNaN
dimensionedScalar yn(const int n, const dimensionedScalar &ds)
dimensionedScalar sqrt(const dimensionedScalar &ds)
doubleScalar yn(const int n, const doubleScalar s)
static const doubleScalar doubleScalarGreat
static const doubleScalar doubleScalarVSmall
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))
dimensionedScalar jn(const int n, const dimensionedScalar &ds)
double doubleScalar
Double precision floating point scalar type.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if successful.
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
doubleScalar atan2(const doubleScalar y, const doubleScalar x)
static const doubleScalar doubleScalarSmall
doubleScalar hypot(const doubleScalar x, const doubleScalar y)
Direction is an 8-bit unsigned integer type used to represent the Cartesian directions etc...
dimensioned< scalar > mag(const dimensioned< Type > &)
dimensionedScalar hypot(const dimensionedScalar &x, const dimensionedScalar &y)
static const doubleScalar doubleScalarVGreat