Add: solve SHOCK_PRANDTL_MEYER expansion within the ShockSolver class#1082
Merged
AlbertoCuadra merged 3 commits intomasterfrom Oct 16, 2025
Merged
Add: solve SHOCK_PRANDTL_MEYER expansion within the ShockSolver class#1082AlbertoCuadra merged 3 commits intomasterfrom
SHOCK_PRANDTL_MEYER expansion within the ShockSolver class#1082AlbertoCuadra merged 3 commits intomasterfrom
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
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.
This PR adds a new method to the
ShockSolverclass that computes isentropic expansion fans using a generalized Prandtl–Meyer formulation consistent with the thermochemical framework of the Combustion Toolbox.This feature extends the shock module beyond compression waves and introduces a real-gas Prandtl–Meyer expansion solver, compatible with both frozen and equilibrium thermochemical models, with built-in path history for visualization and analysis.
Capabilities
θ₂mix2.polar(for polar plotting)numPointsPrandtMeyerduringShockSolverdefinitionSupported caloric models
FLAG_TCHEM_FROZEN = true) Add: include calorically perfect gas solution for the Prandtl-Meyer expansion #1083FLAG_FROZEN = true)Numerical Method Summary
(ρ₂, M₂)generated from classical Prandtl–Meyer relationstracePrandtlMeyerExpansionunder SV constraintsstateSVValidation
The implementation was verified against Caltech’s Shock-Detonation Toolbox for both thermally perfect and calorically imperfect (equilibrium) gas models. The figure below shows the equilibrium Prandtl–Meyer expansion for deflection angles$\theta_2 \in [0, 82^\circ]$ in an air mixture (79% $\text{N}_2$ / 21% $\text{O}_2$ ) at a free-stream Mach number $\mathcal{M}_1 = 1$ .
Example
Benchmark
𝗦𝘆𝘀𝘁𝗲𝗺 𝗜𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻
𝗕𝗲𝗻𝗰𝗵𝗺𝗮𝗿𝗸𝗶𝗻𝗴
𝗦𝘂𝗺𝗺𝗮𝗿𝘆 𝗕𝗲𝗻𝗰𝗵𝗺𝗮𝗿𝗸𝗶𝗻𝗴