OpenLB 1.7
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | List of all members
olb::NavierStokesAdvectionDiffusionVelocityCoupling Struct Reference

Velocity coupling between Navier-Stokes and an Advection-Diffusion lattice. More...

#include <navierStokesAdvectionDiffusionCoupling.h>

+ Collaboration diagram for olb::NavierStokesAdvectionDiffusionVelocityCoupling:

Public Types

using parameters = meta::list<>
 

Public Member Functions

template<typename CELLS , typename PARAMETERS >
void apply (CELLS &cells, PARAMETERS &parameters) any_platform
 

Static Public Attributes

static constexpr OperatorScope scope = OperatorScope::PerCellWithParameters
 

Detailed Description

Velocity coupling between Navier-Stokes and an Advection-Diffusion lattice.

Definition at line 121 of file navierStokesAdvectionDiffusionCoupling.h.

Member Typedef Documentation

◆ parameters

Definition at line 124 of file navierStokesAdvectionDiffusionCoupling.h.

Member Function Documentation

◆ apply()

template<typename CELLS , typename PARAMETERS >
void olb::NavierStokesAdvectionDiffusionVelocityCoupling::apply ( CELLS & cells,
PARAMETERS & parameters )
inline

Definition at line 127 of file navierStokesAdvectionDiffusionCoupling.h.

128 {
129 using V = typename CELLS::template value_t<names::NavierStokes>::value_t;
130 using DESCRIPTOR = typename CELLS::template value_t<names::NavierStokes>::descriptor_t;
131
132 auto& cellNSE = cells.template get<names::NavierStokes>();
133 auto& cellADE = cells.template get<names::Concentration0>();
134
135 // Velocity coupling
136 V u[DESCRIPTOR::d] { };
137 cellNSE.computeU(u);
138 cellADE.template setField<descriptors::VELOCITY>(u);
139 }

Member Data Documentation

◆ scope

constexpr OperatorScope olb::NavierStokesAdvectionDiffusionVelocityCoupling::scope = OperatorScope::PerCellWithParameters
staticconstexpr

Definition at line 122 of file navierStokesAdvectionDiffusionCoupling.h.


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