43 using std::numeric_limits;
72 = numeric_limits<floatScalar>::signaling_NaN();
78 s = strtof(buf, &endPtr);
80 return (*endPtr ==
'\0');
83 #define Scalar floatScalar 84 #define ScalarVGreat floatScalarVGreat 85 #define ScalarVSmall floatScalarVSmall 86 #define ScalarRootVGreat floatScalarRootVGreat 87 #define ScalarRootVSmall floatScalarRootVSmall 88 #define readScalar readFloatScalar 96 #define MAXMINPOW(retType, type1, type2) \ 98 MAXMIN(retType, type1, type2) \ 100 inline double pow(const type1 s, const type2 e) \ 102 return ::powf(s, e); \ 114 #define transFunc(func) \ 115 inline Scalar func(const Scalar s) \ 117 return ::func##f(s); \ 137 return ::hypotf(x, y);
142 return ::atan2f(y, x);
158 #undef ScalarRootVGreat 159 #undef ScalarRootVSmall layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
dimensionedScalar yn(const int n, const dimensionedScalar &ds)
dimensionedScalar sqrt(const dimensionedScalar &ds)
static const floatScalar floatScalarVSmall
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))
#define MAXMINPOW(retType, type1, type2)
dimensionedScalar jn(const int n, const dimensionedScalar &ds)
static const floatScalar floatScalarVGreat
float floatScalar
Float 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.
static const floatScalar floatScalarGreat
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
Direction is an 8-bit unsigned integer type used to represent the Cartesian directions etc...
dimensioned< scalar > mag(const dimensioned< Type > &)
static const floatScalar floatScalarSmall
dimensionedScalar hypot(const dimensionedScalar &x, const dimensionedScalar &y)
static const floatScalar floatScalarNaN