-
Notifications
You must be signed in to change notification settings - Fork 7
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
Aspect Ratio Capability in P3 Velocities #432
Conversation
rorlija1
commented
Aug 6, 2024
•
edited
Loading
edited
- This PR adds the capability to compute P3 velocities with aspect ratio using a Boolean argument in the terminal velocity functions. Since this choice between using and not using aspect ratio will likely not be maintained in the long term, we can temporarily sacrifice elegance and efficiency in using the Boolean.
- The docs are also modified/expanded here for the aspect ratio (and mascot).
- Since the aspect ratio is property regime-dependent, we add a helper function to compute the ice density in given particle regimes.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #432 +/- ##
==========================================
- Coverage 96.77% 96.74% -0.03%
==========================================
Files 40 40
Lines 1396 1415 +19
==========================================
+ Hits 1351 1369 +18
- Misses 45 46 +1
|
Thank you so much for all the documentation and really digging into understanding the different P3 regimes. Also, I love love love the P3 duck linking to the original repository. I modified a couple of small things in the PR:
One bigger issue - based on the aspect ratio we are getting and Fig 2 from Chen, I think we should be assuming our particles are oblate. Which I think means that our kappa power should be 1/3. Notice that I don't have the minus sign in front of it, which I think is a typo in Chen 2022. With that formulation my terminal velocities with aspect ratio are always smaller than when assuming spherical particles. Which in turn agrees with Fig 2 in Chen. I will squash/rebase and merge everything. Things to do next for us would be to add some notes on how we derive the aspect ratio and cleanup the documentation plots (sometimes fonts are too small and we have too many plots showcasing the behavior of the numerics of P3 scheme solvers). Maybe we can split the work and I'll do the docs cleanup and you could do the aspect ratio derivation? |
ead8e85
to
225e839
Compare
I forgot - in quadgk integrals you can set the relative tolerance with which you integrate. By default its |
225e839
to
af77c95
Compare
Sounds great, thanks for taking the time to look everything over and provide feedback! Yeah, with kappa = 1/3 the terminal velocity plots are definitely different, so I'm curious to see how all of this will affect what we'll see (hopefully) with liquid fraction! I'm not 100% confident on the aspect ratio derivation since I think Anastasia had implemented the general formula, but I'm happy to dig into it. I don't think I can access Chen 2022 for free, so maybe if you could send me that paper I'd appreciate it since it may help with the aspect ratio stuff. |