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

#include <freeEnergyCoupling3D.h>

+ Collaboration diagram for olb::InletOutletCoupling3D:

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 267 of file freeEnergyCoupling3D.h.

Member Function Documentation

◆ apply()

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

Definition at line 273 of file freeEnergyCoupling3D.h.

273 {
274
275 using V = typename CELLS::template value_t<names::A>::value_t;
276 using DESCRIPTOR = typename CELLS::template value_t<names::A>::descriptor_t;
277
278 // Get the cell of the first lattice
279 auto& cellA = cells.template get<names::A>();
280
281 // Get the cell of the second lattice
282 auto& cellB = cells.template get<names::B>();
283
284 V u[DESCRIPTOR::d];
285 cellB.computeU(u);
286 cellA.defineU(u);
287 }

Member Data Documentation

◆ scope

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

Definition at line 270 of file freeEnergyCoupling3D.h.


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