-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement full well-balancing in PPM #2945
implement full well-balancing in PPM #2945
Conversation
the best results now come from use_pslope and reflecting BCs this is because of work we've done since the README was last updated.
this seems to work |
@@ -459,6 +477,10 @@ Castro::trace_ppm(const Box& bx, | |||
} | |||
|
|||
|
|||
// for well-balanced, the velocity sources should not be added | |||
|
|||
amrex::Real fac = (castro::ppm_well_balanced && in_hse) ? 0.0_rt : 1.0_rt; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it better to just skip the source trace tracing for src_un
above if we use ppm_well_balaneced
and in_hse
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess so, but somehow I thought this was more clear when reading the code.
Source/hydro/trace_ppm.cpp
Outdated
Real trho[nslp]; | ||
Real src[nslp]; | ||
|
||
load_stencil(q_arr, idir, i, j, k, QRHO, trho); | ||
load_stencil(srcQ, idir, i, j, k, QUN, src); | ||
|
||
ppm_reconstruct_pslope(trho, s, src, flat, dL, sm, sp); | ||
in_hse = ppm_reconstruct_pslope(trho, s, src, flat, dx[idir], sm, sp); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably better to pass in dL
rather than dx[idir]
although it only makes a difference in spherical-theta direction but gravity is in r so there will be no difference, but I still feel its more consistent this way. Same goes with using dL
to get p_m_hse
and p_p_hse
later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
This reverts commit db92cba.
This reverts commit b280340.
PR summary
PR motivation
PR checklist
CHANGES
file has been updated, if appropriate