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) \
93inline 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); \
162#define Foam_use_scalarImpl_header
164#undef Foam_use_scalarImpl_header
169#undef ScalarROOTVGREAT
170#undef ScalarROOTVSMALL
Direction is an 8-bit unsigned integer type used to represent Cartesian directions,...
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))
constexpr floatScalar floatScalarVGREAT
constexpr floatScalar floatScalarGREAT
constexpr floatScalar floatScalarROOTVGREAT
constexpr floatScalar floatScalarROOTVSMALL
constexpr floatScalar floatScalarSMALL
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
float floatScalar
A typedef for float.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
dimensionedScalar hypot(const dimensionedScalar &x, const dimensionedScalar &y)
constexpr floatScalar floatScalarROOTSMALL
constexpr floatScalar floatScalarVSMALL
constexpr floatScalar floatScalarROOTGREAT
Typedefs for float/double/scalar without requiring scalar.H.