OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
olb::ReactingSpecies2D< T, DESCRIPTOR, SOURCE, IMPL > Class Template Reference

#include <reactingSpecies2D.h>

+ Inheritance diagram for olb::ReactingSpecies2D< T, DESCRIPTOR, SOURCE, IMPL >:
+ Collaboration diagram for olb::ReactingSpecies2D< T, DESCRIPTOR, SOURCE, IMPL >:

Public Member Functions

 ReactingSpecies2D (T stoichioCoeff)
 
getStoichioCoeff ()
 
getField (BlockStructureD< 2 > *blockStructure, int iX, int iY)
 
getSource (BlockStructureD< 2 > *blockStructure, int iX, int iY)
 
void incrementSource (BlockStructureD< 2 > *blockStructure, T val, int iX, int iY)
 
void resetSource (BlockStructureD< 2 > *blockStructure, int iX, int iY)
 

Protected Attributes

_stoichioCoeff
 

Detailed Description

template<typename T, typename DESCRIPTOR, typename SOURCE, typename IMPL>
class olb::ReactingSpecies2D< T, DESCRIPTOR, SOURCE, IMPL >

Definition at line 42 of file reactingSpecies2D.h.

Constructor & Destructor Documentation

◆ ReactingSpecies2D()

template<typename T , typename DESCRIPTOR , typename SOURCE , typename IMPL >
olb::ReactingSpecies2D< T, DESCRIPTOR, SOURCE, IMPL >::ReactingSpecies2D ( T stoichioCoeff)

Definition at line 37 of file reactingSpecies2D.hh.

38 : _stoichioCoeff(stoichioCoeff)
39{}

Member Function Documentation

◆ getField()

template<typename T , typename DESCRIPTOR , typename SOURCE , typename IMPL >
T olb::ReactingSpecies2D< T, DESCRIPTOR, SOURCE, IMPL >::getField ( BlockStructureD< 2 > * blockStructure,
int iX,
int iY )

Definition at line 48 of file reactingSpecies2D.hh.

49{
50 return (static_cast<IMPL*>(this))->getField(blockStructure, iX, iY);
51}

◆ getSource()

template<typename T , typename DESCRIPTOR , typename SOURCE , typename IMPL >
T olb::ReactingSpecies2D< T, DESCRIPTOR, SOURCE, IMPL >::getSource ( BlockStructureD< 2 > * blockStructure,
int iX,
int iY )

Definition at line 54 of file reactingSpecies2D.hh.

55{
56 return static_cast<BlockLattice<T,DESCRIPTOR>*>(blockStructure)->get(iX, iY).template getFieldPointer<SOURCE>()[0];
57}
int get()
Get current device.
Definition device.hh:71

◆ getStoichioCoeff()

template<typename T , typename DESCRIPTOR , typename SOURCE , typename IMPL >
T olb::ReactingSpecies2D< T, DESCRIPTOR, SOURCE, IMPL >::getStoichioCoeff ( )

Definition at line 42 of file reactingSpecies2D.hh.

43{
44 return _stoichioCoeff;
45}

◆ incrementSource()

template<typename T , typename DESCRIPTOR , typename SOURCE , typename IMPL >
void olb::ReactingSpecies2D< T, DESCRIPTOR, SOURCE, IMPL >::incrementSource ( BlockStructureD< 2 > * blockStructure,
T val,
int iX,
int iY )

Definition at line 60 of file reactingSpecies2D.hh.

61{
62 static_cast<BlockLattice<T,DESCRIPTOR>*>(blockStructure)->get(iX, iY).template setField<SOURCE>(val + getSource(blockStructure, iX, iY));
63}
T getSource(BlockStructureD< 2 > *blockStructure, int iX, int iY)

◆ resetSource()

template<typename T , typename DESCRIPTOR , typename SOURCE , typename IMPL >
void olb::ReactingSpecies2D< T, DESCRIPTOR, SOURCE, IMPL >::resetSource ( BlockStructureD< 2 > * blockStructure,
int iX,
int iY )

Definition at line 66 of file reactingSpecies2D.hh.

67{
68 static_cast<BlockLattice<T,DESCRIPTOR>*>(blockStructure)->get(iX, iY).template setField<SOURCE>(T());
69}

Member Data Documentation

◆ _stoichioCoeff

template<typename T , typename DESCRIPTOR , typename SOURCE , typename IMPL >
T olb::ReactingSpecies2D< T, DESCRIPTOR, SOURCE, IMPL >::_stoichioCoeff
protected

Definition at line 57 of file reactingSpecies2D.h.


The documentation for this class was generated from the following files: