-
-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Test] Add test for specifying non-reactant orders in CTI files
- Loading branch information
1 parent
7e71645
commit a68cdec
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Input file to test use of non-reactant species | ||
|
||
units(length = "cm", time = "s", quantity = "mol", act_energy = "kJ/mol") | ||
|
||
ideal_gas(name = "gas", | ||
elements = " O H ", | ||
species = """gri30: H2 O2 H2O OH """, | ||
reactions = "all", | ||
initial_state = state(temperature = 300.0, | ||
pressure = OneAtm) ) | ||
|
||
#------------------------------------------------------------------------------- | ||
# Reactions data | ||
#------------------------------------------------------------------------------- | ||
|
||
#test negative orders and non-reactant orders | ||
reaction("2 H2 + O2 => 2 H2O", [1e13, 0.0, 0.0], | ||
order="H2:-0.25 OH:0.15", | ||
options=['negative_orders', 'nonreactant_orders']) | ||
|
||
#if uncomment, should throw an error | ||
#reaction("2 H2 + O2 => 2 H2O", [1e13, 0.0, 0.0], | ||
# order="OH:0.15") |