Removing the phase check

This commit is contained in:
Gandhali Kogekar
2023-06-22 17:18:47 -04:00
committed by Ray Speth
parent 865dec011c
commit ae40b869ae
2 changed files with 2 additions and 8 deletions
+1 -7
View File
@@ -26,13 +26,7 @@ StFlow::StFlow(ThermoPhase* ph, size_t nsp, size_t points) :
if (ph == 0) {
return; // used to create a dummy object
}
if (ph->type() == "ideal-gas" || ph->type() == "Redlich-Kwong" ||
ph->type() == "Peng-Robinson") {
m_thermo = ph;
} else {
throw CanteraError("StFlow::StFlow", "Unsupported phase type:",
"need 'IdealGasPhase' or 'Redlich-Kwong'or 'Peng-Robinson'");
}
m_thermo = ph;
size_t nsp2 = m_thermo->nSpecies();
if (nsp2 != m_nsp) {
+1 -1
View File
@@ -13,7 +13,7 @@ class TestOnedim(utilities.CanteraTest):
def test_badInstantiate(self):
solid = ct.Solution("diamond.yaml", "diamond")
with pytest.raises(ct.CanteraError, match="Unsupported phase type"):
with pytest.raises(ct.CanteraError, match="An appropriate transport model\nshould be set when instantiating"):
ct.FreeFlow(solid)
def test_instantiateSurface(self):