OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::VelocityCoupling Struct Reference

#include <phaseFieldCoupling.h>

+ Collaboration diagram for olb::VelocityCoupling:

Public Member Functions

int getPriority () const
 
template<typename CELL >
void apply (CELL &cells) any_platform
 

Static Public Attributes

static constexpr OperatorScope scope = OperatorScope::PerCell
 

Detailed Description

Definition at line 359 of file phaseFieldCoupling.h.

Member Function Documentation

◆ apply()

template<typename CELL >
void olb::VelocityCoupling::apply ( CELL & cells)
inline

Definition at line 367 of file phaseFieldCoupling.h.

368 {
369 using V = typename CELL::template value_t<names::NavierStokes>::value_t;
370 using DESCRIPTOR = typename CELL::template value_t<names::NavierStokes>::descriptor_t;
371
372 auto& cellNS = cells.template get<names::NavierStokes>();
373 auto& cellAC = cells.template get<names::Component1>();
374
375 // Computation and storage of forces
376 V u[DESCRIPTOR::d] {};
377 cellNS.computeU(u);
378 cellAC.template setField<descriptors::VELOCITY>(u);
379 }

◆ getPriority()

int olb::VelocityCoupling::getPriority ( ) const
inline

Definition at line 362 of file phaseFieldCoupling.h.

362 {
363 return 0;
364 }

Member Data Documentation

◆ scope

OperatorScope olb::VelocityCoupling::scope = OperatorScope::PerCell
staticconstexpr

Definition at line 360 of file phaseFieldCoupling.h.


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