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

#include <phaseFieldCoupling.h>

+ Collaboration diagram for olb::SetIncOutletCells:

Public Member Functions

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

Static Public Attributes

static constexpr OperatorScope scope = OperatorScope::PerCell
 

Detailed Description

Definition at line 877 of file phaseFieldCoupling.h.

Member Function Documentation

◆ apply()

template<typename CELL >
void olb::SetIncOutletCells::apply ( CELL & cell)
inline

Definition at line 885 of file phaseFieldCoupling.h.

886 {
887 using DESCRIPTOR = typename CELL::descriptor_t;
888 //T p, u[DESCRIPTOR::d];
889 auto outlet_cell = cell.template getField<descriptors::CONV_POPS>();
890 //cell.computeRhoU(p, u);
891 //auto rho = cell.template getField<descriptors::RHO>();
892 for (int iPop=0; iPop < DESCRIPTOR::q; ++iPop) {
893 outlet_cell[iPop] = cell[iPop];
894 }
895 cell.template setField<descriptors::CONV_POPS>(outlet_cell);
896 }

◆ getPriority()

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

Definition at line 880 of file phaseFieldCoupling.h.

880 {
881 return 0;
882 }

Member Data Documentation

◆ scope

OperatorScope olb::SetIncOutletCells::scope = OperatorScope::PerCell
staticconstexpr

Definition at line 878 of file phaseFieldCoupling.h.


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