-
Notifications
You must be signed in to change notification settings - Fork 111
bubbles clean-up: remove R0_type
and V0
#963
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
base: master
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
probably need @anandrdbz to look at this |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #963 +/- ##
==========================================
+ Coverage 44.02% 44.04% +0.01%
==========================================
Files 69 69
Lines 19625 19611 -14
Branches 2430 2430
==========================================
- Hits 8640 8637 -3
+ Misses 9484 9474 -10
+ Partials 1501 1500 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@sbryngelson Yes V0 should be 1 for both cases, I guess we never really use model_eqns = 4 anymore hence this went unnoticed. And yeah R0_type is always 1 since only Simpson's quadrature rule is used |
@hyeoksu-lee can you make adjustments based on @anandrdbz's comment? perhaps @anandrdbz you can explain why V0 = 1 so we can add it as a comment to avoid future confusion |
@sbryngelson @anandrdbz I just noticed that there is no explanation on And.. below is my thought on I don't think In the case of QBMM, we consider the distribution of In contrast, in monodisperse simulations, having a non-zero |
Yes right what you say makes sense. If I remember correctly, the case that made more sense is that the velocities of all the bubbles with the same R0 but different R,V (so the QBMM case) start with V0=1. I'm noticing that's not what the original code implements, but feel like there must be some reason for this. @anandrdbz can you comment/guess? |
FYI R0_type followed from a code of Keita Ando that had two different strategies for integration and I was messing with that and matching his code. But yeah it's defunct now. |
After looking at this carefully, I think V0 is pretty meaningless in the code in the current state. The whole point of using R0 was to get the quadrature nodes at equilibrium radii and then the initial condition is scaled by patch_icpp%r0. For the bubble velocity there is no such equivalent as they are initialized to a constant value using the case file, so I'm not sure if there is a point to using this extra variable. We don't really get any inherent information about bubble velocities from the log-normal PDF. |
I agree with @anandrdbz. I can remove |
@anandrdbz is leading the charge on QBMM/sub-grid bubbles for the few years on our side. so if he says do X, I take his word for it. |
@sbryngelson @anandrdbz I removed |
R0_type
and fix V0
bugR0_type
and V0
User description
Description
R0_type
is an unnecessary parameter since it only has one valid option:R0_type = 1
. As far as I can tell, this has been the case for years. The parameter would only be useful if additional quadrature rules were implemented in the future. For now, I believe its presence may confuse general users. Therefore, I have removed it and documentation has been updated accordingly.Additionally, I noticed that
V0(:) = 1
formodel_eqns = 2
, butV0(:) = 0
formodel_eqns = 4
. I suspect thatV0(:) = 0
may be a bug.Type of change
Scope
If you cannot check the above box, please split your PR into multiple PRs that each have a common goal.
How Has This Been Tested?
Test suite passes on Carpenter
Checklist
docs/
)./mfc.sh format
before committing my codePR Type
Bug fix, Enhancement
Description
Remove unnecessary
R0_type
parameter from bubble modulesFix
V0
initialization bug for single bubble caseClean up commented code and documentation
Update examples and test cases
Diagram Walkthrough
File Walkthrough