From bb786f1b0a93a34fdbdd6abe7de22c13ae86df5b Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Thu, 11 Jun 2015 21:00:54 -0600 Subject: [PATCH] Build tables up to 1.5*Tmax; closes #680 --- src/Backends/Tabular/TabularBackends.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Backends/Tabular/TabularBackends.h b/src/Backends/Tabular/TabularBackends.h index 84b23773..fb717ae4 100644 --- a/src/Backends/Tabular/TabularBackends.h +++ b/src/Backends/Tabular/TabularBackends.h @@ -488,9 +488,9 @@ class LogPHTable : public SinglePhaseGriddedTableData xmin = AS->hmolar(); ymin = AS->p(); // Check both the enthalpies at the Tmax isotherm to see whether to use low or high pressure - AS->update(DmolarT_INPUTS, 1e-10, AS->Tmax()); + AS->update(DmolarT_INPUTS, 1e-10, 1.499*AS->Tmax()); CoolPropDbl xmax1 = AS->hmolar(); - AS->update(PT_INPUTS, AS->pmax(), AS->Tmax()); + AS->update(PT_INPUTS, AS->pmax(), 1.499*AS->Tmax()); CoolPropDbl xmax2 = AS->hmolar(); xmax = std::max(xmax1, xmax2); @@ -533,7 +533,7 @@ class LogPTTable : public SinglePhaseGriddedTableData AS->update(QT_INPUTS, 0, AS->Ttriple()); ymin = AS->p(); - xmax = AS->Tmax(); ymax = AS->pmax(); + xmax = AS->Tmax()*1.499; ymax = AS->pmax(); } void deserialize(msgpack::object &deserialized){ LogPTTable temp;