Go to the documentation of this file. 1 #ifndef ParametrizedEngine_BCyl_h
2 #define ParametrizedEngine_BCyl_h
27 template <
typename... Args>
29 :
prm{std::forward<Args>(
init)...},
41 namespace bcylDetails {
51 a =
T(1) / (
T(1) +
u2);
61 inline float myExp(
float x) {
return unsafe_expf<3>(x); }
74 using namespace bcylDetails;
78 T zainv = z *
pars.ainv;
79 T u =
pars.hlova - zainv;
84 T rat =
T(0.5) *
pars.ainv;
85 T rat2 = rat * rat *
r2;
86 Br =
pars.hb0 * rat * (fu[1] - gv[1] - (fu[3] - gv[3]) * rat2 *
T(0.5));
87 Bz =
pars.hb0 * (fu[0] + gv[0] - (fu[2] + gv[2]) * rat2);
89 T corBr =
pars.prm[4] * z * (az -
pars.prm[5]) * (az -
pars.prm[5]);
constexpr BCylParam(Args... init)
BCycl(BCylParam< T > const &ipar)
float __attribute__((vector_size(8))) cms_float32x2_t
void operator()(T r2, T z, T &Br, T &Bz) const
void compute(T r2, T z, T &Br, T &Bz) const
Abs< T >::type abs(const T &t)
void ffunkti(T u, T *__restrict__ ff) __attribute__((always_inline))