From a42199f62a58b92001d09c074dfe6b3e55ee6f0d Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 12 Apr 2012 21:35:40 +0000 Subject: [PATCH] Added tests for overconstrained equilibrium problems --- test/python/testEquilibrium.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/python/testEquilibrium.py b/test/python/testEquilibrium.py index 42bb46369..a871e3c80 100644 --- a/test/python/testEquilibrium.py +++ b/test/python/testEquilibrium.py @@ -61,6 +61,18 @@ class EquilTestCases(object): gas.equilibrate('TP', self.solver) self.check(gas, CH4=0, O2=1, H2O=2, CO2=1) + def test_equil_overconstrained1(self): + gas = ct.importPhase('equilibrium.cti', 'overconstrained-1') + gas.set(X='CH4:1.0, O2:1.0', T=301, P=100000) + gas.equilibrate('TP', self.solver) + self.check(gas, CH4=1, O2=1) + + def test_equil_overconstrained2(self): + gas = ct.importPhase('equilibrium.cti', 'overconstrained-2') + gas.set(X='CH4:1.0, O2:1.0', T=301, P=100000) + gas.equilibrate('TP', self.solver) + self.check(gas, CH4=1, O2=1) + class ChemEquilTest(EquilTestCases, unittest.TestCase): def __init__(self, *args, **kwargs):