[Thermo] Fix updating state of PDSS_IonsFromNeutral objects
Setting T and P now updates the state of the underlying "neutral molecule phase". Also removed the unimplemented setState_TR method.
This commit is contained in:
parent
bdc81684b1
commit
d6d91f4d98
3 changed files with 3 additions and 7 deletions
|
|
@ -80,7 +80,6 @@ public:
|
|||
//! @{
|
||||
|
||||
virtual void setState_TP(doublereal temp, doublereal pres);
|
||||
virtual void setState_TR(doublereal temp, doublereal rho);
|
||||
|
||||
//! @}
|
||||
//! @name Initialization of the Object
|
||||
|
|
|
|||
|
|
@ -214,12 +214,9 @@ doublereal PDSS_IonsFromNeutral::molarVolume_ref() const
|
|||
|
||||
void PDSS_IonsFromNeutral::setState_TP(doublereal temp, doublereal pres)
|
||||
{
|
||||
neutralMoleculePhase_->setState_TP(temp, pres);
|
||||
m_pres = pres;
|
||||
m_temp = temp;
|
||||
}
|
||||
|
||||
void PDSS_IonsFromNeutral::setState_TR(doublereal temp, doublereal rho)
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ TEST(IonsFromNeutralConstructor, fromXML)
|
|||
|
||||
// Values for regression testing only -- no reference values known for comparison
|
||||
EXPECT_NEAR(p->density(), 1984.3225978174073, 1e-6);
|
||||
EXPECT_NEAR(p->enthalpy_mass(), -8035317241137.971, 1e-1);
|
||||
EXPECT_NEAR(p->enthalpy_mass(), -14737778.668383721, 1e-6);
|
||||
EXPECT_NEAR(mu[0], -4.66404010e+08, 1e1);
|
||||
EXPECT_NEAR(mu[1], -2.88157298e+06, 1e-1);
|
||||
}
|
||||
|
|
@ -150,7 +150,7 @@ TEST(IonsFromNeutralConstructor, fromScratch)
|
|||
|
||||
// Values for regression testing only -- same as XML test
|
||||
EXPECT_NEAR(p.density(), 1984.3225978174073, 1e-6);
|
||||
EXPECT_NEAR(p.enthalpy_mass(), -8035317241137.971, 1e-1);
|
||||
EXPECT_NEAR(p.enthalpy_mass(), -14737778.668383721, 1e-6);
|
||||
EXPECT_NEAR(mu[0], -4.66404010e+08, 1e1);
|
||||
EXPECT_NEAR(mu[1], -2.88157298e+06, 1e-1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue