OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::dynamics::CSE< dynamics::Tuple< T, descriptors::D3Q7< FIELDS... >, momenta::Tuple< momenta::FixedDensity, momenta::FixedVelocityMomentumGeneric, momenta::ZeroStress, momenta::DefineSeparately >, equilibria::FirstOrder, collision::FixedEquilibrium, dynamics::DefaultCombination > > Struct Template Reference

#include <1d431eff28077987ffcd3e8783c159c1d2f8ab21ec8bde06c9c1a0721c7a673b.cse.h>

+ Collaboration diagram for olb::dynamics::CSE< dynamics::Tuple< T, descriptors::D3Q7< FIELDS... >, momenta::Tuple< momenta::FixedDensity, momenta::FixedVelocityMomentumGeneric, momenta::ZeroStress, momenta::DefineSeparately >, equilibria::FirstOrder, collision::FixedEquilibrium, 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::D3Q7< FIELDS... >, momenta::Tuple< momenta::FixedDensity, momenta::FixedVelocityMomentumGeneric, momenta::ZeroStress, momenta::DefineSeparately >, equilibria::FirstOrder, collision::FixedEquilibrium, dynamics::DefaultCombination > >

Definition at line 38 of file 1d431eff28077987ffcd3e8783c159c1d2f8ab21ec8bde06c9c1a0721c7a673b.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::D3Q7< FIELDS... >, momenta::Tuple< momenta::FixedDensity, momenta::FixedVelocityMomentumGeneric, momenta::ZeroStress, momenta::DefineSeparately >, equilibria::FirstOrder, collision::FixedEquilibrium, dynamics::DefaultCombination > >::collide ( CELL & cell,
PARAMETERS & parameters )
inline

Definition at line 40 of file 1d431eff28077987ffcd3e8783c159c1d2f8ab21ec8bde06c9c1a0721c7a673b.cse.h.

40 {
41auto x8 = cell.template getFieldComponent<momenta::FixedVelocityMomentumGeneric::VELOCITY>(0);
42auto x9 = cell.template getFieldComponent<momenta::FixedVelocityMomentumGeneric::VELOCITY>(1);
43auto x10 = cell.template getFieldComponent<momenta::FixedVelocityMomentumGeneric::VELOCITY>(2);
44auto x7 = cell.template getFieldComponent<momenta::FixedDensity::RHO>(0);
45auto x11 = V{4}*x8;
46auto x12 = V{4}*x9;
47auto x13 = V{4}*x10;
48cell[0] = V{0.25}*x7 + V{-0.25};
49cell[1] = -V{0.125}*x7*(x11 + V{-1}) + V{-0.125};
50cell[2] = -V{0.125}*x7*(x12 + V{-1}) + V{-0.125};
51cell[3] = -V{0.125}*x7*(x13 + V{-1}) + V{-0.125};
52cell[4] = V{0.125}*x7*(x11 + V{1}) + V{-0.125};
53cell[5] = V{0.125}*x7*(x12 + V{1}) + V{-0.125};
54cell[6] = V{0.125}*x7*(x13 + V{1}) + V{-0.125};
55return { x7, x10*x10 + x8*x8 + x9*x9 };
56}

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