OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::GeometricPhaseFieldCurvedWallProcessor2D< T, DESCRIPTOR > Struct Template Reference

#include <phaseFieldCoupling.h>

+ Collaboration diagram for olb::GeometricPhaseFieldCurvedWallProcessor2D< T, DESCRIPTOR >:

Public Types

using parameters = meta::list<descriptors::THETA>
 

Public Member Functions

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

Static Public Attributes

static constexpr OperatorScope scope = OperatorScope::PerCellWithParameters
 

Detailed Description

template<typename T, typename DESCRIPTOR>
struct olb::GeometricPhaseFieldCurvedWallProcessor2D< T, DESCRIPTOR >

Definition at line 790 of file phaseFieldCoupling.h.

Member Typedef Documentation

◆ parameters

template<typename T , typename DESCRIPTOR >
using olb::GeometricPhaseFieldCurvedWallProcessor2D< T, DESCRIPTOR >::parameters = meta::list<descriptors::THETA>

Definition at line 792 of file phaseFieldCoupling.h.

Member Function Documentation

◆ apply()

template<typename T , typename DESCRIPTOR >
template<typename CELL , typename PARAMETERS >
void olb::GeometricPhaseFieldCurvedWallProcessor2D< T, DESCRIPTOR >::apply ( CELL & cell,
PARAMETERS & parameters )
inline

Definition at line 799 of file phaseFieldCoupling.h.

800 {
801 auto phi = cell.template getField<descriptors::STATISTIC>();
802 phi[0] = 0;
803 T weightSum = 0;
804 for (int iPop=0; iPop < DESCRIPTOR::q; ++iPop) {
805 if(cell.neighbor(descriptors::c<DESCRIPTOR>(iPop)).template getField<descriptors::BOUNDARY>() == 1.) {
806 phi[0] += cell.neighbor(descriptors::c<DESCRIPTOR>(iPop)).template getFieldComponent<descriptors::STATISTIC>(0) * descriptors::t<T,DESCRIPTOR>(iPop);
807 weightSum += descriptors::t<T,DESCRIPTOR>(iPop);
808 }
809 }
810 phi[0] = phi[0]/weightSum;
811 cell.template setField<descriptors::STATISTIC>(phi);
812 }
constexpr T t(unsigned iPop, tag::CUM) any_platform
Definition cum.h:108
constexpr int c(unsigned iPop, unsigned iDim) any_platform
Definition functions.h:83

References olb::descriptors::c(), and olb::descriptors::t().

+ Here is the call graph for this function:

◆ getPriority()

template<typename T , typename DESCRIPTOR >
int olb::GeometricPhaseFieldCurvedWallProcessor2D< T, DESCRIPTOR >::getPriority ( ) const
inline

Definition at line 794 of file phaseFieldCoupling.h.

794 {
795 return 1;
796 }

Member Data Documentation

◆ scope

template<typename T , typename DESCRIPTOR >
OperatorScope olb::GeometricPhaseFieldCurvedWallProcessor2D< T, DESCRIPTOR >::scope = OperatorScope::PerCellWithParameters
staticconstexpr

Definition at line 791 of file phaseFieldCoupling.h.


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