#include <freeEnergyCoupling2D.h>
Definition at line 333 of file freeEnergyCoupling2D.h.
◆ 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
345 auto& cellA = cells.template get<names::A>();
346
347
348 auto& cellB = cells.template get<names::B>();
349
350 V u[DESCRIPTOR::d];
351 cellB.computeU(u);
352 cellA.defineU(u);
353
354
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 }
◆ scope
The documentation for this struct was generated from the following file: