OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
olb::Isotherm< T > Class Template Referenceabstract

Base class for isotherms. More...

#include <isotherm.h>

+ Inheritance diagram for olb::Isotherm< T >:
+ Collaboration diagram for olb::Isotherm< T >:

Public Member Functions

 Isotherm (T isoKonstA, T isoKonstB)
 Base class for Isotherm objects.
 
virtual T getLoading (T c) const =0
 Equation for isotherm.
 
virtual T getConversionFactorKonstA ()
 
virtual T getConversionFactorKonstB ()
 
void print (std::ostream &clout) const
 

Public Attributes

isoKonstA {}
 
isoKonstB {}
 

Detailed Description

template<typename T>
class olb::Isotherm< T >

Base class for isotherms.

Create derived class with the actual equation for the equilibrium.

Template Parameters
T

Definition at line 42 of file isotherm.h.

Constructor & Destructor Documentation

◆ Isotherm()

template<typename T >
olb::Isotherm< T >::Isotherm ( T isoKonstA,
T isoKonstB )
inline

Base class for Isotherm objects.

Returns loading in mg/g corresponding to concentration in mg/mL

Parameters
isoKonstAfirst constant
isoKonstBsecond constant or exponent

Definition at line 52 of file isotherm.h.

Member Function Documentation

◆ getConversionFactorKonstA()

template<typename T >
virtual T olb::Isotherm< T >::getConversionFactorKonstA ( )
inlinevirtual

Definition at line 61 of file isotherm.h.

61 {
62 return 1;
63};

◆ getConversionFactorKonstB()

template<typename T >
virtual T olb::Isotherm< T >::getConversionFactorKonstB ( )
inlinevirtual

Definition at line 65 of file isotherm.h.

65 {
66 return 1;
67};

◆ getLoading()

template<typename T >
virtual T olb::Isotherm< T >::getLoading ( T c) const
pure virtual

Equation for isotherm.

Parameters
cConcentration in mg/mL
Returns
q loading in mg/g

Implemented in olb::LinearIsotherm< T >, olb::LangmuirIsotherm< T >, and olb::FreundlichIsotherm< T >.

+ Here is the caller graph for this function:

◆ print()

template<typename T >
void olb::Isotherm< T >::print ( std::ostream & clout) const
inline

Definition at line 69 of file isotherm.h.

69 {
70 clout << "Isotherm exponent n= " << this->isoKonstB << std::endl;
71 clout << "Isotherm factor K= " << this->isoKonstA << std::endl;
72 clout << "-------------------------------------------------------------" << std::endl;
73}

References olb::Isotherm< T >::isoKonstA, and olb::Isotherm< T >::isoKonstB.

+ Here is the caller graph for this function:

Member Data Documentation

◆ isoKonstA

template<typename T >
T olb::Isotherm< T >::isoKonstA {}

Definition at line 53 of file isotherm.h.

53{};

◆ isoKonstB

template<typename T >
T olb::Isotherm< T >::isoKonstB {}

Definition at line 54 of file isotherm.h.

54{};

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