43 using std::numeric_limits;
61 static const floatScalar floatScalarRootVGreat =
::sqrt(floatScalarVGreat);
62 static const floatScalar floatScalarRootVSmall =
::sqrt(floatScalarVSmall);
64 static const floatScalar floatScalarRootGreat =
::sqrt(floatScalarGreat);
65 static const floatScalar floatScalarRootSmall =
::sqrt(floatScalarSmall);
71 s = strtof(buf, &endPtr);
73 return (*endPtr ==
'\0');
76 #define Scalar floatScalar 77 #define ScalarVGreat floatScalarVGreat 78 #define ScalarVSmall floatScalarVSmall 79 #define ScalarRootVGreat floatScalarRootVGreat 80 #define ScalarRootVSmall floatScalarRootVSmall 81 #define readScalar readFloatScalar 89 #define MAXMINPOW(retType, type1, type2) \ 91 MAXMIN(retType, type1, type2) \ 93 inline double pow(const type1 s, const type2 e) \ 95 return ::powf(s, e); \ 107 #define transFunc(func) \ 108 inline Scalar func(const Scalar s) \ 110 return ::func##f(s); \ 130 return ::hypotf(x, y);
135 return ::atan2f(y, x);
151 #undef ScalarRootVGreat 152 #undef ScalarRootVSmall dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedScalar yn(const int n, const dimensionedScalar &ds)
dimensionedScalar sqrt(const dimensionedScalar &ds)
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)
float floatScalar
Float precision floating point scalar type.
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)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
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)