OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::dynamics::CSE< CombinedAdvectionDiffusionRLBdynamics< T, descriptors::D2Q5< FIELDS... >, dynamics::Tuple< T, descriptors::D2Q5< FIELDS... >, momenta::Tuple< momenta::BulkDensity, momenta::BulkMomentum, momenta::NoStress, momenta::DefineToEq >, equilibria::FirstOrder, collision::AdvectionDiffusionRLB, AdvectionDiffusionExternalVelocityCollision >, momenta::Tuple< momenta::FixedDensity, momenta::FixedTemperatureMomentum< 1, -1 >, momenta::NoStress, momenta::DefineSeparately > > > Struct Template Reference

#include <eeb142e732be2a5b022a450a592a93cb6a52c802e60cf9f407d0ea5d8c009622.cse.h>

+ Collaboration diagram for olb::dynamics::CSE< CombinedAdvectionDiffusionRLBdynamics< T, descriptors::D2Q5< FIELDS... >, dynamics::Tuple< T, descriptors::D2Q5< FIELDS... >, momenta::Tuple< momenta::BulkDensity, momenta::BulkMomentum, momenta::NoStress, momenta::DefineToEq >, equilibria::FirstOrder, collision::AdvectionDiffusionRLB, AdvectionDiffusionExternalVelocityCollision >, momenta::Tuple< momenta::FixedDensity, momenta::FixedTemperatureMomentum< 1, -1 >, momenta::NoStress, momenta::DefineSeparately > > >:

Public Member Functions

template<concepts::Cell CELL, concepts::Parameters PARAMETERS, concepts::BaseType V = typename CELL::value_t>
CellStatistic< V > collide (CELL &cell, PARAMETERS &parameters) any_platform
 

Detailed Description

template<typename T, typename... FIELDS>
struct olb::dynamics::CSE< CombinedAdvectionDiffusionRLBdynamics< T, descriptors::D2Q5< FIELDS... >, dynamics::Tuple< T, descriptors::D2Q5< FIELDS... >, momenta::Tuple< momenta::BulkDensity, momenta::BulkMomentum, momenta::NoStress, momenta::DefineToEq >, equilibria::FirstOrder, collision::AdvectionDiffusionRLB, AdvectionDiffusionExternalVelocityCollision >, momenta::Tuple< momenta::FixedDensity, momenta::FixedTemperatureMomentum< 1, -1 >, momenta::NoStress, momenta::DefineSeparately > > >

Definition at line 38 of file eeb142e732be2a5b022a450a592a93cb6a52c802e60cf9f407d0ea5d8c009622.cse.h.

Member Function Documentation

◆ collide()

template<typename T , typename... FIELDS>
template<concepts::Cell CELL, concepts::Parameters PARAMETERS, concepts::BaseType V = typename CELL::value_t>
CellStatistic< V > olb::dynamics::CSE< CombinedAdvectionDiffusionRLBdynamics< T, descriptors::D2Q5< FIELDS... >, dynamics::Tuple< T, descriptors::D2Q5< FIELDS... >, momenta::Tuple< momenta::BulkDensity, momenta::BulkMomentum, momenta::NoStress, momenta::DefineToEq >, equilibria::FirstOrder, collision::AdvectionDiffusionRLB, AdvectionDiffusionExternalVelocityCollision >, momenta::Tuple< momenta::FixedDensity, momenta::FixedTemperatureMomentum< 1, -1 >, momenta::NoStress, momenta::DefineSeparately > > >::collide ( CELL & cell,
PARAMETERS & parameters )
inline

Definition at line 40 of file eeb142e732be2a5b022a450a592a93cb6a52c802e60cf9f407d0ea5d8c009622.cse.h.

40 {
41auto x6 = cell.template getFieldComponent<descriptors::VELOCITY>(1);
42auto x5 = cell.template getFieldComponent<descriptors::VELOCITY>(0);
43auto x7 = cell.template getFieldComponent<momenta::FixedDensity::RHO>(0);
44auto x8 = parameters.template get<descriptors::OMEGA>();
45auto x9 = V{3}*x5;
46auto x10 = x9 + V{-1};
47auto x11 = V{0.0555555555555556}*x7;
48auto x12 = V{3}*x6;
49auto x13 = x12 + V{-1};
50auto x14 = x9 + V{1};
51auto x15 = x12 + V{1};
52auto x16 = x8 + V{-1};
53auto x17 = V{0.0833333333333333}*x7;
54auto x18 = x16*(V{0.5}*cell[1] - V{0.5}*cell[3] + x10*x17 + x14*x17);
55auto x19 = V{0.166666666666667}*x7;
56auto x20 = x13*x19 + V{0.166666666666667};
57auto x21 = x16*(V{1}*cell[2] + V{1.38777878078145e-17}*x15*x7 + x20);
58cell[0] = -x10*x11 - x11*x13 + V{0.0555555555555556}*x14*x7 + V{0.0555555555555556}*x15*x7 + V{0.111111111111111}*x7 + V{-0.333333333333333};
59cell[1] = -x10*x19 - x18 + V{-0.166666666666667};
60cell[2] = -x20 - x21;
61cell[3] = x14*x19 + x18 + V{-0.166666666666667};
62cell[4] = x15*x19 + x21 + V{-0.166666666666667};
63return { V{1}*x7, x5*x5 + x6*x6 };
64}

The documentation for this struct was generated from the following file: