OpenLB 1.7
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
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 334 of file blockLattice.hh.

Member Typedef Documentation

◆ parameters

Definition at line 338 of file blockLattice.hh.

Member Function Documentation

◆ apply()

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

Definition at line 345 of file blockLattice.hh.

345 {
346 using V = typename CELL::value_t;
347 using DESCRIPTOR = typename CELL::descriptor_t;
348 auto offset = parameters.template get<OFFSET>();
349 for (int iPop=0; iPop < DESCRIPTOR::q; ++iPop) {
350 cell[iPop] -= descriptors::t<V,DESCRIPTOR>(iPop) * offset;
351 }
352 }
meta::list< OFFSET > parameters

◆ getPriority()

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

Definition at line 340 of file blockLattice.hh.

340 {
341 return 0;
342 }

Member Data Documentation

◆ scope

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

Definition at line 335 of file blockLattice.hh.


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