10#include "gtest/gtest.h"
18const Real
b = -0.004679;
19const Real
c = 0.0004114;
26TEST(GeochemistryActivityCalculatorsTest, log10ActCoeffDHBdot)
28 const Real charge = 2.0;
29 const Real ionic_rad = 1.5;
30 const Real ionic_str = 0.2;
31 const Real log10gold = -0.718192735532499;
33 charge, ionic_rad, std::sqrt(ionic_str),
A,
B,
Bdot),
44TEST(GeochemistryActivityCalculatorsTest, log10ActCoeffDavies)
46 const Real charge = 2.0;
47 const Real ionic_str = 0.2;
48 const Real log10gold = -0.489368197345647;
56TEST(GeochemistryActivityCalculatorsTest, log10ActCoeffDHBdotAlternative)
58 const Real ionic_str = 0.2;
59 const Real log10gold = 0.00348;
67TEST(GeochemistryActivityCalculatorsTest, log10ActCoeffDHBdotNeutral)
69 const Real ionic_str = 0.2;
70 const Real log10gold = 0.0242961312;
78TEST(GeochemistryActivityCalculatorsTest, lnActivityDHBdotWater)
80 const Real ionic_str = 0.2;
81 const Real loggold = -0.0066955098152888023;
TEST(GeochemistryActivityCalculatorsTest, log10ActCoeffDHBdot)
Real log10ActCoeffDHBdot(Real charge, Real ion_size, Real sqrt_ionic_strength, Real A, Real B, Real Bdot)
log10(activity coefficient) according to the Debye-Huckel B-dot model
Real log10ActCoeffDHBdotAlternative(Real ionic_strength, Real Bdot)
log10(activity coefficient) alternative expression that is sometimes used in conjunction with the Deb...
Real log10ActCoeffDavies(Real charge, Real sqrt_ionic_strength, Real A)
log10(activity coefficient) according to the Davies model
Real log10ActCoeffDHBdotNeutral(Real ionic_strength, Real a, Real b, Real c, Real d)
log10(activity coefficient) for neutral species according to the Debye-Huckel B-dot model
Real lnActivityDHBdotWater(Real stoichiometric_ionic_strength, Real A, Real atilde, Real btilde, Real ctilde, Real dtilde)
ln(activity of water) according to the Debye-Huckel B-dot model