OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::dynamics::CSE< AdvectionDiffusionBoundariesDynamics< T, descriptors::D3Q7< FIELDS... >, dynamics::Tuple< T, descriptors::D3Q7< FIELDS... >, momenta::Tuple< momenta::BulkDensity, momenta::BulkMomentum, momenta::NoStress, momenta::DefineToEq >, equilibria::FirstOrder, collision::AdvectionDiffusionRLB, AdvectionDiffusionExternalVelocityCollision >, momenta::Tuple< momenta::FixedDensity, momenta::FixedVelocityMomentumGeneric, momenta::ZeroStress, momenta::DefineSeparately >, 2, 1 > > Struct Template Reference

#include <25fac19e76d9c87c70721bc18b6033a6af0527cbb7580484bd498bed62501ca1.cse.h>

+ Collaboration diagram for olb::dynamics::CSE< AdvectionDiffusionBoundariesDynamics< T, descriptors::D3Q7< FIELDS... >, dynamics::Tuple< T, descriptors::D3Q7< FIELDS... >, momenta::Tuple< momenta::BulkDensity, momenta::BulkMomentum, momenta::NoStress, momenta::DefineToEq >, equilibria::FirstOrder, collision::AdvectionDiffusionRLB, AdvectionDiffusionExternalVelocityCollision >, momenta::Tuple< momenta::FixedDensity, momenta::FixedVelocityMomentumGeneric, momenta::ZeroStress, momenta::DefineSeparately >, 2, 1 > >:

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< AdvectionDiffusionBoundariesDynamics< T, descriptors::D3Q7< FIELDS... >, dynamics::Tuple< T, descriptors::D3Q7< FIELDS... >, momenta::Tuple< momenta::BulkDensity, momenta::BulkMomentum, momenta::NoStress, momenta::DefineToEq >, equilibria::FirstOrder, collision::AdvectionDiffusionRLB, AdvectionDiffusionExternalVelocityCollision >, momenta::Tuple< momenta::FixedDensity, momenta::FixedVelocityMomentumGeneric, momenta::ZeroStress, momenta::DefineSeparately >, 2, 1 > >

Definition at line 38 of file 25fac19e76d9c87c70721bc18b6033a6af0527cbb7580484bd498bed62501ca1.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< AdvectionDiffusionBoundariesDynamics< T, descriptors::D3Q7< FIELDS... >, dynamics::Tuple< T, descriptors::D3Q7< FIELDS... >, momenta::Tuple< momenta::BulkDensity, momenta::BulkMomentum, momenta::NoStress, momenta::DefineToEq >, equilibria::FirstOrder, collision::AdvectionDiffusionRLB, AdvectionDiffusionExternalVelocityCollision >, momenta::Tuple< momenta::FixedDensity, momenta::FixedVelocityMomentumGeneric, momenta::ZeroStress, momenta::DefineSeparately >, 2, 1 > >::collide ( CELL & cell,
PARAMETERS & parameters )
inline

Definition at line 40 of file 25fac19e76d9c87c70721bc18b6033a6af0527cbb7580484bd498bed62501ca1.cse.h.

40 {
41auto x9 = cell.template getFieldComponent<descriptors::VELOCITY>(2);
42auto x14 = parameters.template get<descriptors::OMEGA>();
43auto x10 = cell.template getFieldComponent<momenta::FixedDensity::RHO>(0);
44auto x8 = cell.template getFieldComponent<descriptors::VELOCITY>(1);
45auto x7 = cell.template getFieldComponent<descriptors::VELOCITY>(0);
46auto x11 = x14 + V{-1};
47auto x12 = V{0.5}*cell[1];
48auto x13 = V{0.5}*cell[4];
49auto x15 = V{4}*x7;
50auto x16 = x15 + V{1};
51auto x17 = V{0.0625}*x10;
52auto x18 = x15 + V{-1};
53auto x19 = x11*(x12 - x13 + x16*x17 + x17*x18);
54auto x20 = V{0.125}*x10;
55auto x21 = V{0.5}*cell[2];
56auto x22 = V{0.5}*cell[5];
57auto x23 = V{4}*x8;
58auto x24 = x23 + V{1};
59auto x25 = x23 + V{-1};
60auto x26 = x11*(x17*x24 + x17*x25 + x21 - x22);
61auto x27 = V{4}*x9;
62auto x28 = x27 + V{-1};
63auto x29 = x27 + V{1};
64auto x30 = V{0.5}*cell[0] + V{1}*cell[6] - V{0.5}*x10 + x12 + x13 - x17*x29 + x21 + x22 + V{0.5};
65cell[0] = V{0.25}*x10 + V{-0.25};
66cell[1] = -x18*x20 - x19 + V{-0.125};
67cell[2] = -x20*x25 - x26 + V{-0.125};
68cell[3] = x11*(-x17*x28 + x30) - x20*x28 + V{-0.125};
69cell[4] = x16*x20 + x19 + V{-0.125};
70cell[5] = x20*x24 + x26 + V{-0.125};
71cell[6] = V{0.125}*x10*x29 - x11*(-x17*x28 + x30) + V{-0.125};
72return { x10, x7*x7 + x8*x8 + x9*x9 };
73}

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