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

#include <3cab17e537cc84d326f7fd7f8fb6c0734f3eb8353bae0e9bfec7d28709bc7962.cse.h>

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

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

Definition at line 40 of file 3cab17e537cc84d326f7fd7f8fb6c0734f3eb8353bae0e9bfec7d28709bc7962.cse.h.

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