53#define KERNEL_ABS std::abs
79template <TurbulenceModel turbulenceModel>
243 real OxxPyyPzz = c1o1;
246 real OxyyPxzz = c8o1 * (-c2o1 + omega) * (c1o1 + c2o1 * omega) / (-c8o1 - c14o1 * omega + c7o1 * omega * omega);
248 c8o1 * (-c2o1 + omega) * (-c7o1 + c4o1 * omega) / (c56o1 - c50o1 * omega + c9o1 * omega * omega);
249 real Oxyz = c24o1 * (-c2o1 + omega) * (-c2o1 - c7o1 * omega + c3o1 * omega * omega) /
250 (c48o1 + c152o1 * omega - c130o1 * omega * omega + c29o1 * omega * omega * omega);
267 real factorA = (c4o1 + c2o1 * omega - c3o1 * omega * omega) / (c2o1 - c7o1 * omega + c5o1 * omega * omega);
268 real factorB = (c4o1 + c28o1 * omega - c14o1 * omega * omega) / (c6o1 - c21o1 * omega + c15o1 * omega * omega);
350 switch (turbulenceModel) {
355 turbulentViscosity.
value =
359 turbulentViscosity.
value =
554 distribution[dP00] =
fP00;
555 distribution[dM00] =
fM00;
556 distribution[d0P0] =
f0P0;
557 distribution[d0M0] =
f0M0;
558 distribution[d00P] =
f00P;
559 distribution[d00M] =
f00M;
560 distribution[dPP0] =
fPP0;
561 distribution[dMM0] =
fMM0;
562 distribution[dPM0] =
fPM0;
563 distribution[dMP0] =
fMP0;
564 distribution[dP0P] =
fP0P;
565 distribution[dM0M] =
fM0M;
566 distribution[dP0M] =
fP0M;
567 distribution[dM0P] =
fM0P;
568 distribution[d0PP] =
f0PP;
569 distribution[d0MM] =
f0MM;
570 distribution[d0PM] =
f0PM;
571 distribution[d0MP] =
f0MP;
572 distribution[d000] =
f000;
573 distribution[dPPP] =
fPPP;
574 distribution[dPMP] =
fPMP;
575 distribution[dPPM] =
fPPM;
576 distribution[dPMM] =
fPMM;
577 distribution[dMPP] =
fMPP;
578 distribution[dMMP] =
fMMP;
579 distribution[dMPM] =
fMPM;
580 distribution[dMMM] =
fMMM;
std::shared_ptr< T > SPtr
__host__ __device__ real calcTurbulentViscositySmagorinsky(real SGSConstant, real dxux, real dyuy, real dzuz, real Dxy, real Dxz, real Dyz)
constexpr void backwardChimera(real &mfa, real &mfb, real &mfc, real vv, real v2)
backward chimera transformation backwardChimera Transformation from central moments to distributions ...
constexpr void runK17CompressibleNavierStokes(CollisionParameter ¶meter, MacroscopicValues ¯oscopicValues, TurbulentViscosity &turbulentViscosity)
Kernel for CumulantK17 including different turbulence models and options for local body forces and wr...
constexpr void forwardChimeraWithInverseK(real &mfa, real &mfb, real &mfc, real vv, real v2, real inverseK, real K)
forward chimera transformation forwardChimeraWithInverseK Transformation from distributions to centra...
constexpr void getCompressibleMacroscopicValues(const real *const &f, real &drho, real &oneOverRho, real &vx1, real &vx2, real &vx3)
__host__ __device__ real calcTurbulentViscosityQR(real SGSConstant, real dxux, real dyuy, real dzuz, real Dxy, real Dxz, real Dyz)
constexpr void forwardChimera(real &mfa, real &mfb, real &mfc, real vv, real v2)
forward chimera transformation forwardChimera Transformation from distributions to central moments ac...
constexpr real calculateOmegaWithTurbulentViscosity(real omega, real turbulenceViscosity)
constexpr void backwardChimeraWithInverseK(real &mfa, real &mfb, real &mfc, real vv, real v2, real inverseK, real K)
backward chimera transformation backwardChimeraWithInverseK Transformation from central moments to di...