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

#include <freeEnergyCoupling2D.h>

+ Collaboration diagram for olb::InletOutletCoupling2D:

Public Member Functions

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

Static Public Attributes

static constexpr OperatorScope scope = OperatorScope::PerCell
 

Detailed Description

Definition at line 333 of file freeEnergyCoupling2D.h.

Member Function Documentation

◆ apply()

template<typename CELLS >
void olb::InletOutletCoupling2D::apply ( CELLS & cells)
inline

Definition at line 339 of file freeEnergyCoupling2D.h.

339 {
340
341 using V = typename CELLS::template value_t<names::A>::value_t;
342 using DESCRIPTOR = typename CELLS::template value_t<names::A>::descriptor_t;
343
344 // Get the cell of the first lattice
345 auto& cellA = cells.template get<names::A>();
346
347 // Get the cell of the second lattice
348 auto& cellB = cells.template get<names::B>();
349
350 V u[DESCRIPTOR::d];
351 cellB.computeU(u);
352 cellA.defineU(u);
353
354 // If relevant, get the cell of the third lattice
355 if constexpr (CELLS::map_t::keys_t::template contains<names::C>()){
356 auto& cellC = cells.template get<names::C>();
357 cellC.defineU(u);
358 }
359 }

Member Data Documentation

◆ scope

constexpr OperatorScope olb::InletOutletCoupling2D::scope = OperatorScope::PerCell
staticconstexpr

Definition at line 336 of file freeEnergyCoupling2D.h.


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