mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-02-09 05:15:45 -05:00
still issues with #413
This commit is contained in:
@@ -23,12 +23,11 @@ void IncompressibleFluid::set_reference_state(double T0, double p0, double x0, d
|
||||
this->rhoref = rho(T0,p0,x0);
|
||||
this->pref = p0;
|
||||
this->href = h0;
|
||||
this->sref = s0;
|
||||
// Now we take care of the energy related values
|
||||
this->uref = 0.0;
|
||||
this->uref = u(T0,p0,x0) - h0; // (value without ref) - (desired ref)
|
||||
//this->sref = 0.0;
|
||||
//this->sref = s(T0,p0,x0) - s0; // (value without ref) - (desired ref)
|
||||
this->sref = 0.0;
|
||||
this->sref = s(T0,p0,x0) - s0; // (value without ref) - (desired ref)
|
||||
}
|
||||
|
||||
void IncompressibleFluid::validate(){
|
||||
@@ -665,8 +664,20 @@ TEST_CASE("Internal consistency checks and example use cases for the incompressi
|
||||
// Compare reference state
|
||||
{
|
||||
res = XLT.h(Tref,pref,xref);
|
||||
CAPTURE(Tref);
|
||||
CAPTURE(pref);
|
||||
CAPTURE(xref);
|
||||
CAPTURE(href)
|
||||
CAPTURE(res)
|
||||
CHECK( check_abs(href,res,acc) );
|
||||
}
|
||||
{
|
||||
res = XLT.s(Tref,pref,xref);
|
||||
CAPTURE(Tref);
|
||||
CAPTURE(pref);
|
||||
CAPTURE(xref);
|
||||
CAPTURE(sref)
|
||||
CAPTURE(res)
|
||||
CHECK( check_abs(sref,res,acc) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user