Skip to content

Commit

Permalink
Added test for PD for T > 1.5Tc
Browse files Browse the repository at this point in the history
See also #274

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
  • Loading branch information
ibell committed Dec 4, 2014
1 parent de6e95e commit a6f0a9e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/Backends/Helmholtz/FlashRoutines.cpp
@@ -1,6 +1,7 @@
#include "VLERoutines.h"
#include "FlashRoutines.h"
#include "HelmholtzEOSMixtureBackend.h"
#include "HelmholtzEOSBackend.h"
#include "PhaseEnvelopeRoutines.h"
#include "Configuration.h"

Expand Down Expand Up @@ -1391,18 +1392,15 @@ void FlashRoutines::HS_flash(HelmholtzEOSMixtureBackend &HEOS)
}
}

/*
#define ENABLE_CATCH
#if defined(ENABLE_CATCH)

TEST_SECTION("PD with T very large should yield error","")
TEST_CASE("PD with T very large should yield error","[PDflash]")
{
shared_ptr<HelmholtzEOSMixtureBackend> HEOS(new HelmholtzEOSMixtureBackend("R134a"));
shared_ptr<HelmholtzEOSBackend> HEOS(new HelmholtzEOSBackend("R134a"));
double Tc = HEOS->T_critical();
HEOS->update(DmassT, 1.1, 1.5*Tc);
CHECK_THROWS(
HEOS->update(DmassT_INPUTS, 1.1, 1.5*Tc);
CHECK_THROWS(HEOS->update(DmassP_INPUTS, 2, 0.5*HEOS->p()));
}
#endif
*/

} /* namespace CoolProp */

0 comments on commit a6f0a9e

Please sign in to comment.