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

Operator for striping off density offset. More...

#include <blockLattice.hh>

+ Collaboration diagram for olb::StripeOffDensityOffsetO:

Classes

struct  OFFSET
 

Public Types

using parameters = meta::list<OFFSET>
 

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

Operator for striping off density offset.

Used by BlockLattice::stripeOffDensityOffset

Definition at line 345 of file blockLattice.hh.

Member Typedef Documentation

◆ parameters

Member Function Documentation

◆ apply()

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

Definition at line 356 of file blockLattice.hh.

356 {
357 using V = typename CELL::value_t;
358 using DESCRIPTOR = typename CELL::descriptor_t;
359 auto offset = parameters.template get<OFFSET>();
360 for (int iPop=0; iPop < DESCRIPTOR::q; ++iPop) {
361 cell[iPop] -= descriptors::t<V,DESCRIPTOR>(iPop) * offset;
362 }
363 }
constexpr T t(unsigned iPop, tag::CUM) any_platform
Definition cum.h:108
meta::list< OFFSET > parameters

References olb::descriptors::t().

+ Here is the call graph for this function:

◆ getPriority()

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

Definition at line 351 of file blockLattice.hh.

351 {
352 return 0;
353 }

Member Data Documentation

◆ scope

OperatorScope olb::StripeOffDensityOffsetO::scope = OperatorScope::PerCellWithParameters
staticconstexpr

Definition at line 346 of file blockLattice.hh.


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