-
Notifications
You must be signed in to change notification settings - Fork 77
Major changes to tidal prescriptions #1451
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: dev
Are you sure you want to change the base?
Conversation
… momentum conservation, made minor modification to ZAHN1977 tides to avoid inf.
✅ COMPAS Build Successful!
Detailed Evolution PlotGenerated by COMPAS CI |
✅ COMPAS Build Successful!
Detailed Evolution PlotGenerated by COMPAS CI |
ilyamandel
left a comment
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.
Thanks, @veome22 !
This will be a fairly quick skim, because I am about to go offline for 10 days. I trust that @jeffriley will review once he is back from his work trip to Italy, so I am marking this as comments, not review -- once @jeffriley approves, I am happy. ;-) The non-cosmetic ones are starred.
- changelog.h -- you need to actually change the version number on the last line :-), and then re-create the YAML file with that version (currently, it claims it was created with 3.28.00).
KAPIL2025->KAPIL2026 -- I guess our methods will be a bit wrong, but we can live with that ;-)
- I am quite worried about updating previous values in BaseBinaryStar.cpp, lines 2800-2804. Normally, these previous values are meant to hold the values from the previous time step. Now, we may be updating these multiple times per time step, which could create problems elsewhere. Jeff will be fixing this in his "state vector" PR, but can we avoid putting this in here for now, because it might cause unanticipated side effects? If you need to store pre-tide values to be used just a few lines later in the same function (lines 2811-2815), save them as local variables.
*Speaking of lines 2811-2815 in BaseBinaryStar.cpp, I don't quite understand what you are doing here and why. Aren't the equations above intended to conserve angular momentum? If they don't, shouldn't you be computing the angular momentum of the orbit using conservation laws, rather than just capping it (what if the eccentricity is too small to conserve total angular momentum rather than too large)? Also, I can't easily see what lines 2811-2815 are doing; can you write a mathematical equation in the comments above, or refer to one from the literature?
There seem to be multiple commented out equations in the Zahn tidal prescription (BaseBinaryStar.cpp, lines 2876 onwards). Some appear to be pseudo-code and are presumably there as explanations, but others just seem like code that was commented out (say, lines 2918-2920). Please check and remove any equations that were just temporary code.


Major Updates:
ZAHN1977, based mostly on Zahn (1977), although this should be mostly the same as Hurley+ (2002). I wrote this option for my own internal testing, so please feel free to point out any code inefficiencies/ bad documentation.KAPIL2025prescription to allow for pseudo-synchronization based on Eq. (45) of Hut (1981), which should also help with this.KAPIL2025toKAPIL2026.Minor updates:
Changes to the dynamical tides equations in
KAPIL2026.