Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deactivate lambda and spread_rate for burner stabilized flames #171

Closed
ischoegl opened this issue Apr 12, 2023 · 0 comments · Fixed by Cantera/cantera#1477
Closed

Deactivate lambda and spread_rate for burner stabilized flames #171

ischoegl opened this issue Apr 12, 2023 · 0 comments · Fixed by Cantera/cantera#1477
Labels
feature-request New feature request help wanted Extra attention is needed

Comments

@ischoegl
Copy link
Member

ischoegl commented Apr 12, 2023

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:

  • What problem is it trying to solve? ... remove unused components/clutter
  • Who is affected by the change? ... any user of Python's BurnerFlame
  • Why is this a good solution? ... remove components that are not an intuitive part of the solution, but occupy a prominent part of the SolutionArray summary.

Possible Solutions

Update logic in StFlow::componentActive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature request help wanted Extra attention is needed
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

1 participant