Go to the documentation of this file.
65 #define Scalar floatScalar
66 #define ScalarVGREAT floatScalarVGREAT
67 #define ScalarVSMALL floatScalarVSMALL
68 #define ScalarROOTVGREAT floatScalarROOTVGREAT
69 #define ScalarROOTVSMALL floatScalarROOTVSMALL
70 #define ScalarRead readFloat
80 return ::hypotf(
x,
y);
85 return ::atan2f(
y,
x);
89 #define transFunc(func) \
90 inline Scalar func(const Scalar s) \
92 return ::func##f(s); \
98 #ifdef Foam_no_besselFunc
100 #define besselFunc(func) \
101 inline Scalar func(const Scalar s) \
103 std::cerr<< "No '" << #func << "' function\n"; \
106 #define besselFunc2(func) \
107 inline Scalar func(const int n, const Scalar s) \
109 std::cerr<< "No '" << #func << "' function\n"; \
112 #elif defined(__APPLE__)
114 #define besselFunc(func) \
115 inline Scalar func(const Scalar s) \
119 #define besselFunc2(func) \
120 inline Scalar func(const int n, const Scalar s) \
122 return Scalar(::func(n, double(s))); \
124 #elif defined(__MINGW32__)
126 #define besselFunc(func) \
127 inline Scalar func(const Scalar s) \
131 #define besselFunc2(func) \
132 inline Scalar func(const int n, const Scalar s) \
134 return Scalar(_##func(n, double(s))); \
138 #define besselFunc(func) \
139 inline Scalar func(const Scalar s) \
141 return ::func##f(s); \
143 #define besselFunc2(func) \
144 inline Scalar func(const int n, const Scalar s) \
146 return ::func##f(n, s); \
162 #undef ScalarROOTVGREAT
163 #undef ScalarROOTVSMALL
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))
float floatScalar
Floating-point single precision scalar type.
dimensionedScalar atan2(const dimensionedScalar &x, const dimensionedScalar &y)
constexpr floatScalar floatScalarVSMALL
dimensionedScalar hypot(const dimensionedScalar &x, const dimensionedScalar &y)
constexpr floatScalar floatScalarGREAT
constexpr floatScalar floatScalarROOTSMALL
Direction is an 8-bit unsigned integer type used to represent the Cartesian directions etc.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
constexpr floatScalar floatScalarROOTVGREAT
constexpr floatScalar floatScalarROOTVSMALL
constexpr floatScalar floatScalarSMALL
constexpr floatScalar floatScalarVGREAT