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 ScalarNaN floatScalarNaN
89 #define readScalar readFloatScalar
97 #define MAXMINPOW(retType, type1, type2) \
99 MAXMIN(retType, type1, type2) \
101 inline double pow(const type1 s, const type2 e) \
103 return ::powf(s, e); \
115 #define transFunc(func) \
116 inline Scalar func(const Scalar s) \
118 return ::func##f(s); \
138 return ::hypotf(
x,
y);
143 return ::atan2f(
y,
x);
159 #undef ScalarRootVGreat
160 #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 floatScalar floatScalarRootVSmall
static const floatScalar floatScalarGreat
static const floatScalar floatScalarRootVGreat
static const floatScalar floatScalarRootGreat
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 floatScalar floatScalarRootSmall
float floatScalar
Float precision floating point scalar type.
dimensionedScalar jn(const int n, const dimensionedScalar &ds)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
static const floatScalar floatScalarVSmall
static const floatScalar floatScalarNaN
static const floatScalar floatScalarSmall
static const floatScalar floatScalarVGreat