Repository navigation
WIP: First draft for Moving EB feature - #54
Merged
Merged
Conversation
added 13 commits
August 1, 2023 04:58
Contributor
|
@nataraj2 -- I don't think we need to set AMREX_USE_MOVING_EB -- that's only if we need something different from the AMReX library itself but I don't think we do. Also -- it seems your test on redistribution_type should have "==" instead of "!=" -- could you check that? |
asalmgren
marked this pull request as draft
August 28, 2023 22:15
Contributor
|
I think if you change AMREX_USE_MOVING_EB to CAMR_USE_MOVING_EB everywhere, that will address that issue. On the line where you added the test on fixed_dt, could you make that " <= 0.0" instead of " == 0.0" |
nataraj2
marked this pull request as ready for review
August 28, 2023 23:15
asalmgren
approved these changes
Aug 28, 2023
drummerdoc
added a commit
to drummerdoc/CAMR
that referenced
this pull request
Jul 13, 2026
…X-Fluids#54) ps_apply_floor keyed its correction off a boolean predicate on the BRANCH-LOCKED per-phase EOS. At the pipe-break orifice lip phase 1 expands to vapor-like density where the locked branch goes non-finite; the isfinite cliff flipped between mirror cells and seeded a growing up-down asymmetry (regression after the AMReX-Fluids#47 flux-symmetry fix). Replace with a pure clamp e_new = max(ek, e_pf, e_tf): P-floor via the phase-detected RYP2E (state_from_P_rho), T-floor via a bounded monotone bisection on the auto-detect REY2T (not the Vapor-locked RTY2E). Both targets are smooth in rho, so mirror cells differ only by round-off. Validated: conserved fields symmetric to round-off (rho ~5e-13) through step 100, vs 4e4 Pa / rho 1.2 asymmetry at step 80 before. Floor is opt-in; standalone unaffected.
This was referenced Aug 20, 2026
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 is a work in progress.
Exec/MovingEBCases. Currently a moving plane is done with 3 levels of refinement as shown in the gif.USE_MOVING_EBto enclose portions of the codes which will be enabled only for moving EB cases.ZeroingOutForPlotting, which makes zero any value less than1e-12. This will be fixed in a later PR.fixed_dtis enabled.