Skip to content

WIP: First draft for Moving EB feature - #54

Merged
asalmgren merged 20 commits into
AMReX-Fluids:developmentfrom
nataraj2:MovingEB
Aug 28, 2023
Merged

asalmgren merged 20 commits into
AMReX-Fluids:developmentfrom
nataraj2:MovingEB

Conversation

@nataraj2

Copy link
Copy Markdown
Contributor

This PR is a work in progress.

  1. This adds moving eb cases in Exec/MovingEBCases. Currently a moving plane is done with 3 levels of refinement as shown in the gif.
  2. It uses a flag - USE_MOVING_EB to enclose portions of the codes which will be enabled only for moving EB cases.
  3. The issue of plotting with some undefined values (for certain plotfiles) exist, and happen only for some moving eb cases. But it is currently fixed with a routine ZeroingOutForPlotting, which makes zero any value less than 1e-12. This will be fixed in a later PR.
  4. Running cases with fixed_dt is enabled.
    MovingPlane_Shock_3Level

@asalmgren

Copy link
Copy Markdown
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
asalmgren marked this pull request as draft August 28, 2023 22:15
@asalmgren

Copy link
Copy Markdown
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
nataraj2 marked this pull request as ready for review August 28, 2023 23:15
@asalmgren
asalmgren merged commit 127b1d2 into AMReX-Fluids:development 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.
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