Fix sign of the radial-velocity term in the documented mixture pressure - #1740
Merged
Conversation
The Euler-Euler modified mixture pressure in equations.md carried a minus on the rho <R^3 Rdot^2> / <R^3> term. Ando (Caltech thesis, 2010) writes the momentum flux as pl - ptilde in Eq. (2.2) with ptilde = alpha (pl - <R^3 pbw>/<R^3> - rho <R^3 Rdot^2>/<R^3>) Eq. (2.5) so both terms are negative inside the parenthesis and the radial-velocity contribution to pl - ptilde is positive. Eq. (A.71) carries the two terms in a single bracket with the same sign. This matches what the HLLC solver computes in m_riemann_solver_hllc.fpp, which folds the correction into pres_L and pres_R directly. The documentation was wrong, not the solver. Reported by R. Jason Scharff in #1739.
Contributor
There was a problem hiding this comment.
Pull request overview
Updates MFC’s governing-equations documentation for Euler–Euler bubbles to match the solver’s implemented modified mixture pressure formulation by correcting the sign of the radial-velocity-squared contribution.
Changes:
- Corrected the documented modified mixture pressure equation by flipping the sign of the radial-velocity term contribution from negative to positive.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
Description
docs/documentation/equations.mdgave the Euler-Euler modified mixture pressure aswith a minus on the radial-velocity term. That sign is wrong. Ando (Caltech thesis, 2010) writes the mixture momentum flux as
p_l - ptildein Eq. (2.2), withBoth terms are negative inside the parenthesis, so
and the radial-velocity contribution is positive. Eq. (A.71) of the same thesis carries the two contributions in a single bracket with the same sign, which is an independent check.
This matches what
m_riemann_solver_hllc.fppcomputes, where the correction is folded intopres_Landpres_Rin place. The documentation was wrong, not the solver.Type of change
Scope
Testing
Documentation only. No solver code is touched and no golden files move.
./mfc.sh precheckpasses.Notes
Reported by R. Jason Scharff in #1739, which this resolves.