38 #ifndef Foam_primitives_float_H 39 #define Foam_primitives_float_H 68 #define Scalar floatScalar 69 #define ScalarVGREAT floatScalarVGREAT 70 #define ScalarVSMALL floatScalarVSMALL 71 #define ScalarROOTVGREAT floatScalarROOTVGREAT 72 #define ScalarROOTVSMALL floatScalarROOTVSMALL 73 #define ScalarRead readFloat 83 return ::hypotf(
x,
y);
88 return ::atan2f(
y,
x);
92 #define transFunc(func) \ 93 inline Scalar func(const Scalar s) \ 95 return ::func##f(s); \ 101 #ifdef Foam_no_besselFunc 103 #define besselFunc(func) \ 104 inline Scalar func(const Scalar s) \ 106 std::cerr<< "No '" << #func << "' function\n"; \ 109 #define besselFunc2(func) \ 110 inline Scalar func(const int n, const Scalar s) \ 112 std::cerr<< "No '" << #func << "' function\n"; \ 115 #elif defined(__APPLE__) 117 #define besselFunc(func) \ 118 inline Scalar func(const Scalar s) \ 122 #define besselFunc2(func) \ 123 inline Scalar func(const int n, const Scalar s) \ 125 return Scalar(::func(n, double(s))); \ 127 #elif defined(__MINGW32__) 129 #define besselFunc(func) \ 130 inline Scalar func(const Scalar s) \ 134 #define besselFunc2(func) \ 135 inline Scalar func(const int n, const Scalar s) \ 137 return Scalar(_##func(n, double(s))); \ 141 #define besselFunc(func) \ 142 inline Scalar func(const Scalar s) \ 144 return ::func##f(s); \ 146 #define besselFunc2(func) \ 147 inline Scalar func(const int n, const Scalar s) \ 149 return ::func##f(n, s); \ 165 #undef ScalarROOTVGREAT 166 #undef ScalarROOTVSMALL
constexpr floatScalar floatScalarROOTSMALL
constexpr floatScalar floatScalarROOTVGREAT
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
constexpr floatScalar floatScalarROOTVSMALL
constexpr floatScalar floatScalarSMALL
constexpr floatScalar floatScalarROOTGREAT
constexpr floatScalar floatScalarVSMALL
float floatScalar
A typedef for float.
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
Typedefs for float/double/scalar without requiring scalar.H.
Direction is an 8-bit unsigned integer type used to represent Cartesian directions, components etc.
constexpr floatScalar floatScalarGREAT
constexpr floatScalar floatScalarVGREAT
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.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 hypot(const dimensionedScalar &x, const dimensionedScalar &y)