OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::dynamics::CSE< dynamics::Tuple< T, descriptors::D3Q19< FIELDS... >, momenta::Tuple< momenta::FixedDensity, momenta::FixedPressureMomentum< 2, -1 >, momenta::BulkStress, momenta::DefineSeparately >, equilibria::SecondOrder, collision::BGK, dynamics::DefaultCombination > > Struct Template Reference

#include <aaa65edb877309adcc9730caaa4849454ae0eaa009f30625b6c2dfc3cb460e6d.cse.h>

+ Collaboration diagram for olb::dynamics::CSE< dynamics::Tuple< T, descriptors::D3Q19< FIELDS... >, momenta::Tuple< momenta::FixedDensity, momenta::FixedPressureMomentum< 2, -1 >, momenta::BulkStress, momenta::DefineSeparately >, equilibria::SecondOrder, collision::BGK, 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::D3Q19< FIELDS... >, momenta::Tuple< momenta::FixedDensity, momenta::FixedPressureMomentum< 2, -1 >, momenta::BulkStress, momenta::DefineSeparately >, equilibria::SecondOrder, collision::BGK, dynamics::DefaultCombination > >

Definition at line 38 of file aaa65edb877309adcc9730caaa4849454ae0eaa009f30625b6c2dfc3cb460e6d.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::D3Q19< FIELDS... >, momenta::Tuple< momenta::FixedDensity, momenta::FixedPressureMomentum< 2, -1 >, momenta::BulkStress, momenta::DefineSeparately >, equilibria::SecondOrder, collision::BGK, dynamics::DefaultCombination > >::collide ( CELL & cell,
PARAMETERS & parameters )
inline

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

40 {
41auto x20 = cell.template getFieldComponent<momenta::FixedPressureMomentum<2, -1>::VELOCITY>(0);
42auto x23 = parameters.template get<descriptors::OMEGA>();
43auto x19 = cell.template getFieldComponent<momenta::FixedDensity::RHO>(0);
44auto x21 = cell.template getFieldComponent<momenta::FixedPressureMomentum<2, -1>::VELOCITY>(1);
45auto x22 = x23 + V{-1};
46auto x24 = x20*x20;
47auto x25 = V{1.5}*x24;
48auto x26 = x21*x21;
49auto x27 = V{1.5}*x26;
50auto x28 = x25 + x27;
51auto x29 = V{1} / (x19);
52auto x30 = x29*(cell[0] + cell[10] + cell[11] + cell[13] + cell[14] + V{2}*cell[16] + V{2}*cell[18] + cell[1] + cell[2] + V{2}*cell[3] + cell[4] + cell[5] + V{2}*cell[6] + V{2}*cell[8] + V{1});
53auto x31 = V{1} - x30;
54auto x32 = x31*x31;
55auto x33 = V{1.5}*x32;
56auto x34 = x33 + V{-1};
57auto x35 = x28 + x34;
58auto x36 = V{0.0555555555555556}*x23;
59auto x37 = V{3}*x20;
60auto x38 = V{3}*x24;
61auto x39 = V{3}*x21;
62auto x40 = V{3}*x26;
63auto x41 = -x31;
64auto x42 = x29*(V{3}*cell[0] + V{3}*cell[10] + V{3}*cell[11] + V{3}*cell[13] + V{3}*cell[14] + V{6}*cell[16] + V{6}*cell[18] + V{3}*cell[1] + V{3}*cell[2] + V{6}*cell[3] + V{3}*cell[4] + V{3}*cell[5] + V{6}*cell[6] + V{6}*cell[8] + V{3});
65auto x43 = x28 + x33 - x42 + V{2};
66auto x44 = V{0.0277777777777778}*x23;
67auto x45 = x20 + x21;
68auto x46 = V{4.5}*(x45*x45);
69auto x47 = x35 + x37;
70auto x48 = -x39;
71auto x49 = x20 - x21;
72auto x50 = -x49;
73auto x51 = x20 + x31;
74auto x52 = -x51;
75auto x53 = x30 + V{-1};
76auto x54 = x20 + x53;
77auto x55 = -x54;
78auto x56 = x28 + x42 + V{-4};
79auto x57 = x33 + x56;
80auto x58 = x21 + x31;
81auto x59 = -x58;
82auto x60 = x21 + x53;
83auto x61 = -x60;
84auto x62 = V{1} - x33;
85auto x63 = -x27 + x37 + x62;
86auto x64 = -x25 + x39;
87auto x65 = -x37;
88auto x0 = -cell[0]*x22 - V{0.333333333333333}*x23*(x19*x35 + V{1});
89auto x1 = -cell[1]*x22 - x36*(x19*(x27 + x34 + x37 - x38) + V{1});
90auto x2 = -cell[2]*x22 - x36*(x19*(x25 + x34 + x39 - x40) + V{1});
91auto x3 = -(cell[3]*x22 + x36*(x19*(x43 - V{4.5}*x41*x41) + V{1}));
92auto x4 = -cell[4]*x22 - x44*(x19*(x39 - x46 + x47) + V{1});
93auto x5 = -(cell[5]*x22 + x44*(x19*(x47 + x48 - V{4.5}*x50*x50) + V{1}));
94auto x6 = -(cell[6]*x22 + x44*(x19*(x37 + x43 - V{4.5}*x52*x52) + V{1}));
95auto x7 = -(cell[7]*x22 + x44*(x19*(x37 + x57 - V{4.5}*x55*x55) + V{1}));
96auto x8 = -(cell[8]*x22 + x44*(x19*(x39 + x43 - V{4.5}*x59*x59) + V{1}));
97auto x9 = -(cell[9]*x22 + x44*(x19*(x39 + x57 - V{4.5}*x61*x61) + V{1}));
98auto x10 = -cell[10]*x22 + x36*(x19*(x38 + x63) + V{-1});
99auto x11 = -cell[11]*x22 + x36*(x19*(x40 + x62 + x64) + V{-1});
100auto x12 = -cell[12]*x22 - x36*(x19*(-V{3}*x32 + x56) + V{1});
101auto x13 = -cell[13]*x22 + x44*(x19*(x46 + x63 + x64) + V{-1});
102auto x14 = -(cell[14]*x22 + x44*(x19*(x35 + x39 + x65 - V{4.5}*x49*x49) + V{1}));
103auto x15 = -(cell[15]*x22 + x44*(x19*(x57 + x65 - V{4.5}*x51*x51) + V{1}));
104auto x16 = -(cell[16]*x22 + x44*(x19*(x43 + x65 - V{4.5}*x54*x54) + V{1}));
105auto x17 = -(cell[17]*x22 + x44*(x19*(x48 + x57 - V{4.5}*x58*x58) + V{1}));
106auto x18 = -(cell[18]*x22 + x44*(x19*(x43 + x48 - V{4.5}*x60*x60) + V{1}));
107cell[0] = x0;
108cell[1] = x1;
109cell[2] = x2;
110cell[3] = x3;
111cell[4] = x4;
112cell[5] = x5;
113cell[6] = x6;
114cell[7] = x7;
115cell[8] = x8;
116cell[9] = x9;
117cell[10] = x10;
118cell[11] = x11;
119cell[12] = x12;
120cell[13] = x13;
121cell[14] = x14;
122cell[15] = x15;
123cell[16] = x16;
124cell[17] = x17;
125cell[18] = x18;
126return { x19, x24 + x26 + V{1}*x32 };
127}

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