[Test] Modify DebyeHuckel test to utilize PDSS_Water class
This commit is contained in:
parent
a5b0bdf695
commit
37be501a68
1 changed files with 5 additions and 2 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#include "cantera/thermo/ThermoFactory.h"
|
||||
#include "cantera/thermo/PDSSFactory.h"
|
||||
#include "cantera/thermo/PDSS_ConstVol.h"
|
||||
#include "cantera/thermo/PDSS_Water.h"
|
||||
#include "cantera/thermo/FixedChemPotSSTP.h"
|
||||
#include "cantera/thermo/PureFluidPhase.h"
|
||||
#include "cantera/thermo/WaterSSTP.h"
|
||||
|
|
@ -359,8 +360,10 @@ TEST(DebyeHuckel, fromScratch)
|
|||
for (auto& s : {sH2O, sNa, sCl, sH, sOH, sNaCl}) {
|
||||
p.addSpecies(s);
|
||||
}
|
||||
size_t k = 0;
|
||||
for (double v : {0.0555555, 0.0, 1.3, 1.3, 1.3, 1.3}) {
|
||||
std::unique_ptr<PDSS_Water> ss(new PDSS_Water());
|
||||
p.installPDSS(0, std::move(ss));
|
||||
size_t k = 1;
|
||||
for (double v : {0.0, 1.3, 1.3, 1.3, 1.3}) {
|
||||
std::unique_ptr<PDSS_ConstVol> ss(new PDSS_ConstVol());
|
||||
ss->setMolarVolume(v);
|
||||
p.installPDSS(k++, std::move(ss));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue