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 >, 0, -1 > > Struct Template Reference

#include <9f7267a237970cd63bff1c4a33781145763d3670fc224bacc00cccc03f4dee95.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 >, 0, -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 >, 0, -1 > >

Definition at line 38 of file 9f7267a237970cd63bff1c4a33781145763d3670fc224bacc00cccc03f4dee95.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 >, 0, -1 > >::collide ( CELL & cell,
PARAMETERS & parameters )
inline

Definition at line 40 of file 9f7267a237970cd63bff1c4a33781145763d3670fc224bacc00cccc03f4dee95.cse.h.

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