OGS
Density100MPa.cpp
Go to the documentation of this file.
1
10#include "Density100MPa.h"
11
12namespace
13{
14// NaX_HighP_polyfrac_CC.pickle
15// date extracted 2015-06-23 15:38:35 file mtime 2015-06-23 15:19:57
16const double Density100MPa_c[] = {
17 0.3490302932983226, /* a0 */
18 -0.0014061345691831226, /* a1 */
19 -0.0007399303393402753, /* a2 */
20 5.129318840267485e-09, /* a3 */
21 5.243619689772646e-07, /* a4 */
22 6.347011955956523e-10, /* a5 */
23 -9.919599580166727e-11 /* a6 */
24};
25
26} // namespace
27
28namespace Adsorption
29{
30double Density100MPa::getAdsorbateDensity(const double T_Ads) const
31{
32 return -0.0013 * T_Ads * T_Ads + 0.3529 * T_Ads + 1049.2;
33}
34
35// Thermal expansivity model for water found in the works of Hauer
36double Density100MPa::getAlphaT(const double T_Ads) const
37{
38 const double rho = -0.0013 * T_Ads * T_Ads + 0.3529 * T_Ads + 1049.2;
39 const double drhodT = -0.0026 * T_Ads + 0.3529;
40
41 return -drhodT / rho;
42}
43
44// Characteristic curve. Return W (A)
45double Density100MPa::characteristicCurve(const double A) const
46{
47 double W = curvePolyfrac(Density100MPa_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}
56
57double Density100MPa::dCharacteristicCurve(const double A) const
58{
59 return dCurvePolyfrac(Density100MPa_c, A);
60}
61
62} // namespace Adsorption
double getAlphaT(const double T_Ads) const override
double getAdsorbateDensity(const double T_Ads) const override
double dCharacteristicCurve(const double A) const override
double characteristicCurve(const double A) const override
double curvePolyfrac(const double *coeffs, const double x)
Definition Adsorption.h:52
double dCurvePolyfrac(const double *coeffs, const double x)
Definition Adsorption.h:61