OGS
Adsorption::DensityLegacy Class Reference

Detailed Description

Definition at line 17 of file DensityLegacy.h.

#include <DensityLegacy.h>

Inheritance diagram for Adsorption::DensityLegacy:
[legend]
Collaboration diagram for Adsorption::DensityLegacy:
[legend]

Public Member Functions

double getAdsorbateDensity (const double T_Ads) const override
 
double getAlphaT (const double T_Ads) const override
 
double characteristicCurve (const double A) const override
 
double dCharacteristicCurve (const double A) const override
 
- Public Member Functions inherited from Adsorption::AdsorptionReaction
double getEquilibriumLoading (const double p_Ads, const double T_Ads, const double M_Ads) const override
 
double getEnthalpy (const double p_Ads, const double T_Ads, const double M_Ads) const override
 
double getReactionRate (const double p_Ads, const double T_Ads, const double M_Ads, const double loading) const override
 
- Public Member Functions inherited from Adsorption::Reaction
virtual ~Reaction ()=default
 

Additional Inherited Members

- Static Public Member Functions inherited from Adsorption::AdsorptionReaction
static double getEvaporationEnthalpy (const double T_Ads)
 
static double getEquilibriumVapourPressure (const double T_Ads)
 
static double getMolarFraction (double xm, double M_this, double M_other)
 
static double dMolarFraction (double xm, double M_this, double M_other)
 
static double getLoading (const double rho_curr, const double rho_dry)
 
- Static Public Member Functions inherited from Adsorption::Reaction
static std::unique_ptr< ReactionnewInstance (BaseLib::ConfigTree const &conf)
 

Member Function Documentation

◆ characteristicCurve()

double Adsorption::DensityLegacy::characteristicCurve ( const double A) const
overridevirtual

Implements Adsorption::AdsorptionReaction.

Definition at line 45 of file DensityLegacy.cpp.

46{
47 double W = curvePolyfrac(DensityLegacy_c, A); // cm^3/g
48
49 if (W < 0.0)
50 {
51 W = 0.0; // TODO [CL] debug output
52 }
53
54 return W / 1.e3; // m^3/kg
55}
double curvePolyfrac(const double *coeffs, const double x)
Definition Adsorption.h:52

References Adsorption::curvePolyfrac().

◆ dCharacteristicCurve()

double Adsorption::DensityLegacy::dCharacteristicCurve ( const double A) const
overridevirtual

Implements Adsorption::AdsorptionReaction.

Definition at line 57 of file DensityLegacy.cpp.

58{
59 return dCurvePolyfrac(DensityLegacy_c, A);
60}
double dCurvePolyfrac(const double *coeffs, const double x)
Definition Adsorption.h:61

References Adsorption::dCurvePolyfrac().

◆ getAdsorbateDensity()

double Adsorption::DensityLegacy::getAdsorbateDensity ( const double T_Ads) const
overridevirtual

Implements Adsorption::AdsorptionReaction.

Definition at line 24 of file DensityLegacy.cpp.

25{
26 // set reference state for adsorbate EOS in Hauer
27 const double T0 = 293.15;
28 const double rho0 = 998.084;
29 const double alpha0 = 2.06508e-4; // K; kg/m^3; 1/K
30
31 return (rho0 * (1. - alpha0 * (T_Ads - T0))); // in kg/m^3
32}

◆ getAlphaT()

double Adsorption::DensityLegacy::getAlphaT ( const double T_Ads) const
overridevirtual

Implements Adsorption::AdsorptionReaction.

Definition at line 35 of file DensityLegacy.cpp.

36{
37 // set reference state for adsorbate EOS in Hauer
38 const double T0 = 293.15;
39 const double alpha0 = 2.06508e-4; // K; 1/K
40
41 return (alpha0 / (1. - alpha0 * (T_Ads - T0))); // in 1/K
42}

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