OpenLB 1.8.1
Loading...
Searching...
No Matches
olb::PointExtractionO< FUNCTOR > Struct Template Reference

#include <superLatticePointExtraction.h>

+ Collaboration diagram for olb::PointExtractionO< FUNCTOR >:

Public Types

using parameters = FUNCTOR::parameters
 

Public Member Functions

template<typename CELLS , typename PARAMETERS >
void apply (CELLS &cells, PARAMETERS &parameters) any_platform
 

Static Public Attributes

static constexpr OperatorScope scope = OperatorScope::PerCellWithParameters
 

Detailed Description

template<typename FUNCTOR>
struct olb::PointExtractionO< FUNCTOR >

Definition at line 36 of file superLatticePointExtraction.h.

Member Typedef Documentation

◆ parameters

template<typename FUNCTOR >
using olb::PointExtractionO< FUNCTOR >::parameters = FUNCTOR::parameters

Definition at line 39 of file superLatticePointExtraction.h.

Member Function Documentation

◆ apply()

template<typename FUNCTOR >
template<typename CELLS , typename PARAMETERS >
void olb::PointExtractionO< FUNCTOR >::apply ( CELLS & cells,
PARAMETERS & parameters )
inline

Definition at line 42 of file superLatticePointExtraction.h.

43 {
44 auto point = cells.template get<names::Points>();
45 auto cell = cells.template get<names::Lattice>();
46 auto result = FUNCTOR().compute(cell, parameters);
47 point.template setField<typename FUNCTOR::result_field>(result);
48 }

Member Data Documentation

◆ scope

template<typename FUNCTOR >
OperatorScope olb::PointExtractionO< FUNCTOR >::scope = OperatorScope::PerCellWithParameters
staticconstexpr

Definition at line 37 of file superLatticePointExtraction.h.


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