Skip to content

Conversation

@TimothyEDawson
Copy link
Collaborator

Initializing a Combustor with use_double_flux=False will now skip the double-flux variable calculations. Temperature will be computed from the internal energy instead of having pressure computed from the double-flux variables, and a single inviscid flux is computed at the cell faces.

@TimothyEDawson
Copy link
Collaborator Author

I'm getting some pretty strange results on the example cases, so this might not be ready to merge in. While part of the advantage of the double-flux approach is improved shock-capturing, I would expect the combination of the fifth-order WENO scheme and the HLLC Riemann solver to handle discontinuities like these even without it.

case1

I may need to set up some Sod shock tube test cases to investigate this further.

@TimothyEDawson
Copy link
Collaborator Author

Alright, realized I made a tiny mistake where the fluxes ended up using energy where they should have been using enthalpy! Now everything checks out.

case1

Additionally, I added a Sod shock tube case to the examples which is set up for comparing different schemes!

sod_rho

This is ready to merge in any time.

Initializing a `Combustor` with `use_double_flux=False` will now skip
the double-flux variable calculations. Temperature will be computed
from the internal energy instead of having pressure computed from the
double-flux variables, and a single inviscid flux is computed at the
cell faces.

Added a Sod shock tube example script for testing scheme options.
Copy link
Contributor

@jjhans jjhans left a comment

Choose a reason for hiding this comment

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

Looks good! I'll try running the validation case again with these new changes

@TimothyEDawson TimothyEDawson merged commit 55267ac into develop Dec 12, 2025
10 of 11 checks passed
@TimothyEDawson TimothyEDawson deleted the double-flux-toggle branch December 12, 2025 22:59
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.

2 participants