OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::dynamics::CSE< dynamics::Tuple< T, descriptors::D2Q9< FIELDS... >, momenta::Tuple< momenta::FreeEnergyInletOutletDensity, momenta::FreeEnergyInletOutletMomentum< 0, -1 >, momenta::RegularizedBoundaryStress< 0, -1 >, momenta::DefineSeparately >, equilibria::FreeEnergy, collision::FreeEnergyInletOutlet< 0, -1 >, dynamics::DefaultCombination > > Struct Template Reference

#include <6a9d362e4120bb517a18aa59786fb97cdbfb4a02b9ffaf0924529de932b25ecb.cse.h>

+ Collaboration diagram for olb::dynamics::CSE< dynamics::Tuple< T, descriptors::D2Q9< FIELDS... >, momenta::Tuple< momenta::FreeEnergyInletOutletDensity, momenta::FreeEnergyInletOutletMomentum< 0, -1 >, momenta::RegularizedBoundaryStress< 0, -1 >, momenta::DefineSeparately >, equilibria::FreeEnergy, collision::FreeEnergyInletOutlet< 0, -1 >, dynamics::DefaultCombination > >:

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< dynamics::Tuple< T, descriptors::D2Q9< FIELDS... >, momenta::Tuple< momenta::FreeEnergyInletOutletDensity, momenta::FreeEnergyInletOutletMomentum< 0, -1 >, momenta::RegularizedBoundaryStress< 0, -1 >, momenta::DefineSeparately >, equilibria::FreeEnergy, collision::FreeEnergyInletOutlet< 0, -1 >, dynamics::DefaultCombination > >

Definition at line 38 of file 6a9d362e4120bb517a18aa59786fb97cdbfb4a02b9ffaf0924529de932b25ecb.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< dynamics::Tuple< T, descriptors::D2Q9< FIELDS... >, momenta::Tuple< momenta::FreeEnergyInletOutletDensity, momenta::FreeEnergyInletOutletMomentum< 0, -1 >, momenta::RegularizedBoundaryStress< 0, -1 >, momenta::DefineSeparately >, equilibria::FreeEnergy, collision::FreeEnergyInletOutlet< 0, -1 >, dynamics::DefaultCombination > >::collide ( CELL & cell,
PARAMETERS & parameters )
inline

Definition at line 40 of file 6a9d362e4120bb517a18aa59786fb97cdbfb4a02b9ffaf0924529de932b25ecb.cse.h.

40 {
41auto x13 = parameters.template get<descriptors::OMEGA>();
42auto x10 = cell.template getFieldComponent<descriptors::FORCE>(1);
43auto x9 = cell.template getFieldComponent<descriptors::FORCE>(0);
44auto x11 = x13 + V{-1};
45auto x12 = cell[0]*x11;
46auto x14 = x10*x10;
47auto x15 = x9*(V{1.5}*x14 + V{-1}) + V{1};
48auto x16 = cell[1]*x11;
49auto x17 = V{0.0277777777777778}*x13*x9;
50auto x18 = x9*(-V{3}*x10 + V{3}*x14 + V{1}) + V{-1};
51auto x19 = -V{0.0277777777777778}*x13*x18 + x17;
52auto x20 = cell[2]*x11;
53auto x21 = V{0.111111111111111}*x13;
54auto x22 = x21*x9;
55auto x23 = cell[3]*x11;
56auto x24 = cell[4]*x11;
57auto x25 = x15*x21 + x22;
58auto x26 = cell[8]*x11;
59auto x27 = V{0.111111111111111}*x13;
60auto x28 = V{0.166666666666667}*x12 - V{0.0277777777777778}*x13*x18 + x15*x27 + V{0.166666666666667}*x16 - x17 + V{0.166666666666667}*x20 + V{0.166666666666667}*x23 + V{0.166666666666667}*x24 + V{0.166666666666667}*x26 + V{0.166666666666667}*x9 + V{-0.166666666666667};
61cell[0] = -x12 - V{0.444444444444444}*x13*x15 + V{0.555555555555556}*x13*x9;
62cell[1] = -x16 - x19;
63cell[2] = V{0.111111111111111}*x13*x18 - x20 - x22;
64cell[3] = -x19 - x23;
65cell[4] = -x24 - x25;
66cell[5] = x28;
67cell[6] = V{0.666666666666667}*x12 + V{0.444444444444444}*x13*x15 + V{0.666666666666667}*x16 - x18*x27 + V{0.666666666666667}*x20 - x22 + V{0.666666666666667}*x23 + V{0.666666666666667}*x24 + V{0.666666666666667}*x26 + V{0.666666666666667}*x9 + V{-0.666666666666667};
68cell[7] = x28;
69cell[8] = -x25 - x26;
70return { x9, x14 };
71}

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