Skip to content

Fix issue #206: don't divide Laplacian_S tracer viscous reflux by rho… - #260

Merged
asalmgren merged 1 commit into
AMReX-Fluids:developmentfrom
jbbel:fix_issue_206
Oct 9, 2026
Merged

asalmgren merged 1 commit into
AMReX-Fluids:developmentfrom
jbbel:fix_issue_206

Conversation

@jbbel

@jbbel jbbel commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

…_half

In reflux, the viscous flux-register correction of every NonConservative scalar was divided by rho_half. That is right only for scalars diffused in the RhoInverse_Laplacian_S form (rho dS/dt = div beta grad S, e.g. Temp). The default tracer is NonConservative but uses Laplacian_S (dS/dt = div beta grad S), and the rest of the sync path treats its Ssync as a rate of S without rho, so its viscous reflux was off by a factor 1/rho_half. Restrict the division to NonConservative scalars with diffusionType RhoInverse_Laplacian_S.

…eflux by rho_half

In reflux, the viscous flux-register correction of every NonConservative
scalar was divided by rho_half. That is right only for scalars diffused
in the RhoInverse_Laplacian_S form (rho dS/dt = div beta grad S, e.g.
Temp). The default tracer is NonConservative but uses Laplacian_S
(dS/dt = div beta grad S), and the rest of the sync path treats its
Ssync as a rate of S without rho, so its viscous reflux was off by a
factor 1/rho_half. Restrict the division to NonConservative scalars
with diffusionType RhoInverse_Laplacian_S.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jbbel
jbbel requested a review from asalmgren October 8, 2026 22:20
@asalmgren
asalmgren merged commit 1ad9061 into AMReX-Fluids:development Oct 9, 2026
12 checks passed
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