mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
Deprecate class GRI_30_Kinetics
This commit is contained in:
@@ -16,7 +16,6 @@ ideal_gas(name = "gri30",
|
||||
HCN H2CN HCNN HCNO HOCN HNCO NCO N2 AR C3H7
|
||||
C3H8 CH2CHO CH3CHO """,
|
||||
reactions = "all",
|
||||
kinetics = "GRI30",
|
||||
initial_state = state(temperature = 300.0,
|
||||
pressure = OneAtm) )
|
||||
|
||||
@@ -29,7 +28,6 @@ ideal_gas(name = "gri30_mix",
|
||||
HCN H2CN HCNN HCNO HOCN HNCO NCO N2 AR C3H7
|
||||
C3H8 CH2CHO CH3CHO """,
|
||||
reactions = "all",
|
||||
kinetics = "GRI30",
|
||||
transport = "Mix",
|
||||
initial_state = state(temperature = 300.0,
|
||||
pressure = OneAtm) )
|
||||
@@ -44,7 +42,6 @@ ideal_gas(name = "gri30_multi",
|
||||
HCN H2CN HCNN HCNO HOCN HNCO NCO N2 AR C3H7
|
||||
C3H8 CH2CHO CH3CHO """,
|
||||
reactions = "all",
|
||||
kinetics = "GRI30",
|
||||
transport = "Multi",
|
||||
initial_state = state(temperature = 300.0,
|
||||
pressure = OneAtm) )
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<pressure units="Pa">101325.0</pressure>
|
||||
</state>
|
||||
<thermo model="IdealGas"/>
|
||||
<kinetics model="GRI30"/>
|
||||
<kinetics model="GasKinetics"/>
|
||||
<transport model="None"/>
|
||||
</phase>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<pressure units="Pa">101325.0</pressure>
|
||||
</state>
|
||||
<thermo model="IdealGas"/>
|
||||
<kinetics model="GRI30"/>
|
||||
<kinetics model="GasKinetics"/>
|
||||
<transport model="Mix"/>
|
||||
</phase>
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
<pressure units="Pa">101325.0</pressure>
|
||||
</state>
|
||||
<thermo model="IdealGas"/>
|
||||
<kinetics model="GRI30"/>
|
||||
<kinetics model="GasKinetics"/>
|
||||
<transport model="Multi"/>
|
||||
</phase>
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ ideal_gas(name = "gri30",
|
||||
HCN H2CN HCNN HCNO HOCN HNCO NCO N2 AR C3H7
|
||||
C3H8 CH2CHO CH3CHO """,
|
||||
reactions = "all",
|
||||
kinetics = "GRI30",
|
||||
# kinetics = "GRI30",
|
||||
initial_state = state(temperature = 300.0,
|
||||
pressure = OneAtm) )
|
||||
|
||||
@@ -29,7 +29,7 @@ ideal_gas(name = "gri30_mix",
|
||||
HCN H2CN HCNN HCNO HOCN HNCO NCO N2 AR C3H7
|
||||
C3H8 CH2CHO CH3CHO """,
|
||||
reactions = "all",
|
||||
kinetics = "GRI30",
|
||||
# kinetics = "GRI30",
|
||||
transport = "Mix",
|
||||
initial_state = state(temperature = 300.0,
|
||||
pressure = OneAtm) )
|
||||
@@ -44,7 +44,7 @@ ideal_gas(name = "gri30_multi",
|
||||
HCN H2CN HCNN HCNO HOCN HNCO NCO N2 AR C3H7
|
||||
C3H8 CH2CHO CH3CHO """,
|
||||
reactions = "all",
|
||||
kinetics = "GRI30",
|
||||
# kinetics = "GRI30",
|
||||
transport = "Multi",
|
||||
initial_state = state(temperature = 300.0,
|
||||
pressure = OneAtm) )
|
||||
|
||||
@@ -18,6 +18,7 @@ namespace Cantera
|
||||
* class GRI_30_Kinetics, which is the kinetics manager with
|
||||
* hard-wired replacements for some of the generic kinetics
|
||||
* methods like "getNetReactionRates."
|
||||
* @deprecated
|
||||
*/
|
||||
class GRI30 :
|
||||
public IdealGasPhase,
|
||||
|
||||
@@ -17,6 +17,7 @@ const int cGRI_30_Kinetics = cGasKinetics + 1;
|
||||
|
||||
/**
|
||||
* Kinetics manager implementing reaction mechanism GRI-Mech 3.0
|
||||
* @deprecated
|
||||
*/
|
||||
class GRI_30_Kinetics : public GasKinetics
|
||||
{
|
||||
|
||||
@@ -540,7 +540,7 @@ class TestWellStirredReactorIgnition(utilities.CanteraTest):
|
||||
break
|
||||
|
||||
# regression test; no external basis for this result
|
||||
self.assertNear(tIg, 2.2284, 1e-3)
|
||||
self.assertNear(tIg, 2.2249, 1e-3)
|
||||
|
||||
def test_ignition2(self):
|
||||
self.setup(900.0, 10*ct.one_atm, 1.0, 20.0)
|
||||
@@ -553,7 +553,7 @@ class TestWellStirredReactorIgnition(utilities.CanteraTest):
|
||||
break
|
||||
|
||||
# regression test; no external basis for this result
|
||||
self.assertNear(tIg, 1.4900, 1e-3)
|
||||
self.assertNear(tIg, 1.4856, 1e-3)
|
||||
|
||||
def test_ignition3(self):
|
||||
self.setup(900.0, 10*ct.one_atm, 1.0, 80.0)
|
||||
|
||||
@@ -21,7 +21,10 @@ namespace Cantera
|
||||
{
|
||||
|
||||
GRI_30_Kinetics::
|
||||
GRI_30_Kinetics(thermo_t* th) : GasKinetics(th) {}
|
||||
GRI_30_Kinetics(thermo_t* th) : GasKinetics(th) {
|
||||
warn_deprecated("class GRI_30_Kinetics",
|
||||
"To be removed in Cantera 2.2.");
|
||||
}
|
||||
|
||||
void GRI_30_Kinetics::
|
||||
gri30_update_rates_T()
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<pressure units="Pa">101325.0</pressure>
|
||||
</state>
|
||||
<thermo model="IdealGas"/>
|
||||
<kinetics model="GRI30"/>
|
||||
<kinetics model="GasKinetics"/>
|
||||
<transport model="Mix"/>
|
||||
</phase>
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@ using namespace Cantera;
|
||||
|
||||
int kinetics_example2(int job)
|
||||
{
|
||||
suppress_deprecation_warnings();
|
||||
try {
|
||||
std::cout << "Ignition simulation using class GRI30." << std::endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user