Skip to content

Fix issues with 1D flame solver#1705

Merged
ischoegl merged 14 commits intoCantera:mainfrom
speth:onedim-fixes
Jun 11, 2024
Merged

Fix issues with 1D flame solver#1705
ischoegl merged 14 commits intoCantera:mainfrom
speth:onedim-fixes

Conversation

@speth
Copy link
Copy Markdown
Member

@speth speth commented Jun 7, 2024

Changes proposed in this pull request

This PR fixes a number of issues with the 1D flame solver.

Checklist

  • The pull request includes a clear description of this code change
  • Commit messages have short titles and reference relevant issues
  • Build passes (scons build & scons test) and unit tests address code coverage
  • Style & formatting of contributed code follows contributing guidelines
  • The pull request is ready for review

@speth speth added the 1D Flames label Jun 7, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 7, 2024

Codecov Report

Attention: Patch coverage is 97.43590% with 1 line in your changes missing coverage. Please review.

Project coverage is 75.72%. Comparing base (026c5c7) to head (790dd3a).

Files Patch % Lines
interfaces/cython/cantera/onedim.py 95.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1705      +/-   ##
==========================================
+ Coverage   75.69%   75.72%   +0.02%     
==========================================
  Files         443      443              
  Lines       60971    60981      +10     
  Branches     9552     9557       +5     
==========================================
+ Hits        46154    46178      +24     
+ Misses      11786    11777       -9     
+ Partials     3031     3026       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

"-q" flag suppresses output of what package versions are being installed,
unlike the same flag for conda.
@speth speth marked this pull request as draft June 7, 2024 16:47
@speth speth force-pushed the onedim-fixes branch 3 times, most recently from 122b4d4 to 2176966 Compare June 8, 2024 02:12
@speth speth marked this pull request as ready for review June 10, 2024 19:34
@speth
Copy link
Copy Markdown
Member Author

speth commented Jun 10, 2024

I'm going to leave the Windows .NET CI failure alone for the sake of this PR. I tried testing locally and can't replicate it.

Copy link
Copy Markdown
Member

@ischoegl ischoegl left a comment

Choose a reason for hiding this comment

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

LGTM - thanks!

@ischoegl ischoegl merged commit 4565a55 into Cantera:main Jun 11, 2024
@speth speth deleted the onedim-fixes branch July 23, 2024 15:19
@AH9316
Copy link
Copy Markdown

AH9316 commented Sep 20, 2024

@speth @ischoegl Hi, there. I recently try to set the initial guess for counterflow flame, however it keep give me the same error shown in #1674. Is there anyway to sovle this problem so far? Thanks!

@wandadars
Copy link
Copy Markdown
Contributor

@AH9316 Are you using a compiled version of the main branch version of Cantera? These changes haven't been released yet through the standard channels yet.

@AH9316
Copy link
Copy Markdown

AH9316 commented Sep 20, 2024 via email

@wandadars
Copy link
Copy Markdown
Contributor

If you are using the Python interface, the counterflow example that finds the extinction point should work fine if you are simply interested in the strain rate at extinction. Your method of using a constant domain and increasing the mdot at the boundaries should also work, and in cases where your incremented mdot fails to solve, you can simply reduce the mdot increment and call the solve() method again in a loop. If you want to obtain the flame all the way down the unstable branch, then in the next coming release of Cantera there is a two-point control continuation method that was added to the counterflow solver.

@AH9316
Copy link
Copy Markdown

AH9316 commented Sep 20, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment