Cantera / enhancements

Repository for proposed and ongoing enhancements to Cantera
11 stars 5 forks source link

Deactivate lambda and spread_rate for burner stabilized flames #171

Closed ischoegl closed 1 year ago

ischoegl commented 1 year ago

Abstract

Burner-stabilized flames do not use spread_rate or lambda; while the flow is not "free", these components should nevertheless be deactivated / hidden.

In [1]: %run burner_flame.py
[...]
Solution saved to 'burner_flame.csv'.

In [2]: f.to_array()
Out[2]:
            grid velocity spread_rate lambda         T  ...          HO2         H2O2        AR           N2
0    0.00000e+00  1.10292           0      0   373.000  ...  2.00004e-05  2.32431e-06  0.888904  6.64916e-15
1    1.22070e-05  1.10378           0      0   373.300  ...  2.04091e-05  2.37217e-06  0.888905 -3.57185e-15
2    2.44141e-05  1.10464           0      0   373.600  ...  2.07800e-05  2.42012e-06  0.888906 -2.00555e-15
3    3.66211e-05  1.10550           0      0   373.903  ...  2.11161e-05  2.46816e-06  0.888906  2.01846e-15
4    4.88281e-05  1.10637           0      0   374.206  ...  2.14203e-05  2.51625e-06  0.888907  8.48023e-15
..           ...      ...         ...    ...       ...  ...          ...          ...       ...          ...
127  3.00000e-01  5.02974           0      0  1820.690  ...  4.07495e-07  2.00177e-08  0.888643 -1.31704e-14
128  3.25000e-01  5.05705           0      0  1831.589  ...  3.91957e-07  1.87521e-08  0.888642 -1.31743e-14
129  3.50000e-01  5.08146           0      0  1841.332  ...  3.78360e-07  1.76830e-08  0.888642 -1.32409e-14
130  4.25000e-01  5.13671           0      0  1863.292  ...  3.49561e-07  1.55033e-08  0.888639 -1.32705e-14
131  5.00000e-01  5.13671           0      0  1863.292  ...  3.49561e-07  1.55033e-08  0.888639 -1.32705e-14

[132 rows x 16 components; state='TDY']

Motivation

Describe the need for the proposed change:

Possible Solutions

Update logic in StFlow::componentActive.