Skip to content

Commit

Permalink
[transport] fixed unit test failure for transport_models_test, added …
Browse files Browse the repository at this point in the history
…common species to crit database, and updated keywords file to prevent CI failure for new example
  • Loading branch information
wandadars committed Oct 24, 2024
1 parent 58c8b23 commit d0e2f75
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 15 deletions.
11 changes: 11 additions & 0 deletions data/critical-properties.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6295,3 +6295,14 @@ species:
source: |-
The acentric factor is calculated using the pure fluid saturation data from
Lemmon et al. (2022).
- name: H2
descriptive-name: hydrogen
molecular-weight: 2.016
critical-parameters:
critical-temperature: 32.98
critical-pressure: 1.293e6
critical-molar-volume: 0.0642
critical-compressibility: 0.303
acentric-factor: -0.217
source: |-
Properties of Gases and Liquids, 5th edition, Poling.
3 changes: 2 additions & 1 deletion doc/example-keywords.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Fortran 77
Fortran 90
fuel cell
heat transfer
high-pressure
ignition delay
internal combustion engine
jet-stirred reactor
Expand All @@ -40,9 +41,9 @@ reaction path analysis
reactor network
saving output
sensitivity analysis
shock tube
strained flame
surface chemistry
shock tube
thermodynamic cycle
thermodynamics
transport
Expand Down
12 changes: 6 additions & 6 deletions test/data/transport_models_test.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<pressure units="Pa">2666.4473684210525</pressure>
<moleFractions>H:0.002, H2:0.988, CH3:0.0002, CH4:0.01</moleFractions>
</state>
<thermo model="RedlichKwong"/>
<thermo model="IdealGas"/>
<kinetics model="GasKinetics"/>
<transport model="UnityLewis"/>
</phase>
Expand All @@ -28,7 +28,7 @@
<pressure units="Pa">2666.4473684210525</pressure>
<moleFractions>H:0.002, H2:0.988, CH3:0.0002, CH4:0.01</moleFractions>
</state>
<thermo model="RedlichKwong"/>
<thermo model="IdealGas"/>
<kinetics model="GasKinetics"/>
<transport model="CK_Mix"/>
</phase>
Expand All @@ -43,20 +43,20 @@
<pressure units="Pa">2666.4473684210525</pressure>
<moleFractions>H:0.002, H2:0.988, CH3:0.0002, CH4:0.01</moleFractions>
</state>
<thermo model="RedlichKwong"/>
<thermo model="IdealGas"/>
<kinetics model="GasKinetics"/>
<transport model="CK_Multi"/>
</phase>
<phase id="HighP" dim="3">
<elementArray datasrc="elements.xml">H C</elementArray>
<speciesArray datasrc="gri30.xml#species_data">H H2 CH3 CH4</speciesArray>
<elementArray datasrc="elements.xml">H C O</elementArray>
<speciesArray datasrc="gri30.xml#species_data">CO2 CH4</speciesArray>
<reactionArray datasrc="gri30.xml#reaction_data">
<skip species="undeclared" third_bodies="undeclared"/>
</reactionArray>
<state>
<temperature units="K">1200.0</temperature>
<pressure units="Pa">2666.4473684210525</pressure>
<moleFractions>H:0.002, H2:0.988, CH3:0.0002, CH4:0.01</moleFractions>
<moleFractions>CO2: 0.988, CH4: 0.012</moleFractions>
</state>
<thermo model="RedlichKwong"/>
<kinetics model="GasKinetics"/>
Expand Down
15 changes: 7 additions & 8 deletions test/data/transport_models_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ phases:
elements: [H, C]
species:
- gri30.yaml/species: [H, H2, CH3, CH4]
thermo: Redlich-Kwong
thermo: ideal-gas
transport: unity-Lewis-number
skip-undeclared-third-bodies: true
kinetics: gas
Expand All @@ -20,7 +20,7 @@ phases:
elements: [H, C]
species:
- gri30.yaml/species: [H, H2, CH3, CH4]
thermo: Redlich-Kwong
thermo: ideal-gas
transport: mixture-averaged-CK
skip-undeclared-third-bodies: true
kinetics: gas
Expand All @@ -32,7 +32,7 @@ phases:
elements: [H, C]
species:
- gri30.yaml/species: [H, H2, CH3, CH4]
thermo: Redlich-Kwong
thermo: ideal-gas
transport: multicomponent-CK
skip-undeclared-third-bodies: true
kinetics: gas
Expand All @@ -41,14 +41,13 @@ phases:
state: {T: 1200.0 K, P: 2666.4473684210525 Pa, X: {H: 2.0e-03, H2: 0.988, CH3: 2.0e-04,
CH4: 0.01}}
- name: HighP
elements: [H, C]
elements: [H, C, O]
species:
- gri30.yaml/species: [H, H2, CH3, CH4]
- methane_co2.yaml/species: [CO2, CH4]
thermo: Redlich-Kwong
transport: high-pressure
skip-undeclared-third-bodies: true
kinetics: gas
reactions:
- gri30.yaml/reactions: declared-species
state: {T: 1200.0 K, P: 2666.4473684210525 Pa, X: {H: 2.0e-03, H2: 0.988, CH3: 2.0e-04,
CH4: 0.01}}
- gri30.yaml/reactions: none
state: {T: 1200.0 K, P: 2666.4473684210525 Pa, X: {CO2: 0.988, CH4: 0.012}}

0 comments on commit d0e2f75

Please sign in to comment.