-
Notifications
You must be signed in to change notification settings - Fork 69
Analytical jacobians for chemistry and vibrational source terms #289
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
Open
raghava-davuluri
wants to merge
24
commits into
mutationpp:master
Choose a base branch
from
hypersonic-lab:feature_jacobians
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Analytical jacobians for chemistry and vibrational source terms #289
raghava-davuluri
wants to merge
24
commits into
mutationpp:master
from
hypersonic-lab:feature_jacobians
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This reverts commit e436e0c.
This reverts commit 2b41465.
This reverts commit bd2f482.
…ct against NAN in SU2" This reverts commit 382b64d.
…ee 1/20/25 email" This reverts commit 87e1c1b.
…dent chemistry jacobians.
…alculating temperature-related chemistry jacobians.
…source term jacobians and also made changes to earlier version to minimize the memory leak.
… species. Allows to run SU2 to run for single species. Also, added nitrogen (N2, N) mixture and N2 dissociation mechanism in data.
…npp into feature_jacobians
…some lines based on space restrictions.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds temperature-dependent Jacobians for chemical source terms and density- and temperature-dependent Jacobians for vibrational energy source terms. With this addition, Mutation++ provides analytical Jacobians for both chemical and vibrational source terms, along with the corresponding source terms, enabling implicit time integration in coupled CFD solvers.
Scope of changes
Motivation
Previously, Mutation++ provided only density-dependent Jacobians for chemical source terms, while analytical Jacobians for vibrational energy source terms were not available. As a result, CFD solvers coupled with Mutation++ were typically run in explicit mode, which can be computationally expensive for thermochemical nonequilibrium flows.
By introducing temperature-dependent Jacobians for chemical source terms and density- and temperature-dependent Jacobians for vibrational energy source terms, this work enables the use of Mutation++ in fully implicit CFD simulations. This allows solvers such as SU2 and other external CFD solvers coupled to Mutation++ to model thermochemical nonequilibrium effects efficiently.
Technical details
Analytical Jacobians are provided for finite-rate chemical source terms with respect to the translational–rotational and vibrational–electronic temperatures. Jacobians for the vibrational energy source term are provided with respect to species partial densities, translational–rotational temperature, and vibrational–electronic temperature.
The vibrational energy source-term Jacobians are implemented for all existing vibrational energy transfer models. The implementation primarily targets the two-temperature thermochemical nonequilibrium framework in Mutation++, with an internal flag that enables temperature-dependent chemistry Jacobians within the one-temperature model.
Verification and testing
Unit tests were added to Mutation++ to verify the temperature-dependent Jacobians of the chemical source terms, and they passed.
Dedicated unit tests for the vibrational energy source-term Jacobians were not added at this stage, as defining a simple and sufficiently general unit-test framework for these terms proved nontrivial. The author is open to suggestions from the maintainers about the best approaches for testing these Jacobians and would be happy to incorporate them in a follow-up update.
In the meantime, the vibrational energy-source term Jacobians were verified through coupled SU2 simulations. Heat-bath simulations were performed using both explicit and implicit time integration for Air-5 and Air-11 mixtures, demonstrating consistent behavior and stable convergence in implicit mode. Additional verification and validation cases were also carried out using SU2 with implicit settings. The corresponding heat-bath results are attached to this pull request.
Impact and compatibility
The changes are backward compatible and do not alter existing behavior unless the calling CFD solver explicitly requests them. No changes are introduced to default workflows.
Notes for Reviewers
Feedback on the formulation and implementation of the vibrational energy source-term Jacobians would be especially welcome.
Report_HeatBath_SU2_Davuluri.pdf