66 s = strtof(buf, &endPtr);
68 return (*endPtr ==
'\0');
71 #define Scalar floatScalar 72 #define ScalarVGREAT floatScalarVGREAT 73 #define ScalarVSMALL floatScalarVSMALL 74 #define ScalarROOTVGREAT floatScalarROOTVGREAT 75 #define ScalarROOTVSMALL floatScalarROOTVSMALL 76 #define readScalar readFloatScalar 83 #define transFunc(func) \ 84 inline Scalar func(const Scalar s) \ 86 return ::func##f(s); \ 106 return ::hypotf(x, y);
111 return ::atan2f(y, x);
127 #undef ScalarROOTVGREAT 128 #undef ScalarROOTVSMALL static const floatScalar floatScalarROOTVGREAT
static const floatScalar floatScalarROOTSMALL
static const floatScalar floatScalarGREAT
dimensionedScalar yn(const int n, const dimensionedScalar &ds)
static const floatScalar floatScalarSMALL
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)
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 succesful.
static const floatScalar floatScalarVSMALL
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 floatScalarROOTVSMALL
dimensionedScalar hypot(const dimensionedScalar &x, const dimensionedScalar &y)
static const floatScalar floatScalarVGREAT