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

Fix extinction temperature definition in diffusion_flame_extinction.py #1066

Merged
merged 2 commits into from
Jun 30, 2021

Conversation

d-e-t
Copy link
Contributor

@d-e-t d-e-t commented Jun 25, 2021

Assigning extinction temperature based on inlet temperatures, for consistancy with the use of np.isclose() for the extinction criteria in Cantera 2.5 version of this Python example. Otherwise the extinction criteria only works if temperature_limit_extinction is set equal to the higher gas inlet temperature.

Closes #1064

…sistancy with the use of np.isclose() for the extinciton criteria in Cantera 2.5 version of this Python example
Copy link
Member

@speth speth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small suggestion, otherwise this looks fine to me.

@@ -114,6 +114,7 @@
strain_factor = alpha[-1] / alpha[n_last_burning]
# Create an initial guess based on the previous solution
# Update grid
# NB: Grid scaling changes the diffusion flame width
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a minor suggestion to improve readability, we're trying to avoid use of some more obscure abbreviations, especially these Latin ones, so I would just write "note" here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess 'NB' is a habit I picked up in British boarding school that I use without thinking about much :-) I will note well that it is now arcane and obscure!

@codecov
Copy link

codecov bot commented Jun 28, 2021

Codecov Report

Merging #1066 (5af8e01) into main (e0b3823) will increase coverage by 0.02%.
The diff coverage is 100.00%.

❗ Current head 5af8e01 differs from pull request most recent head 91d102f. Consider uploading reports for the commit 91d102f to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1066      +/-   ##
==========================================
+ Coverage   73.04%   73.07%   +0.02%     
==========================================
  Files         357      358       +1     
  Lines       46925    46956      +31     
==========================================
+ Hits        34277    34311      +34     
+ Misses      12648    12645       -3     
Impacted Files Coverage Δ
src/zeroD/Reactor.cpp 84.81% <100.00%> (+1.11%) ⬆️
test/zeroD/test_zeroD.cpp 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e0b3823...91d102f. Read the comment docs.

@speth speth merged commit 7d2e0e4 into Cantera:main Jun 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extinction criteria in diffusion_flame_extinction.py
3 participants