-
Notifications
You must be signed in to change notification settings - Fork 30
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
Revive contact smoothing #989
base: feature-contacts
Are you sure you want to change the base?
Revive contact smoothing #989
Conversation
… teffratio from bundle
can you please either rebase or merge |
…ntact-smoothing # Conflicts: # phoebe/frontend/default_bundles/default_binary.bundle # phoebe/frontend/default_bundles/default_contact_binary.bundle # phoebe/frontend/default_bundles/default_star.bundle
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.
It looks good to me, but there is a bit of room still for polish. I understand that this is just the first step to get things working again, but I'd recommend that we use this opportunity and polish the code as well.
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 left a few comments throughout but I believe this is good to go.
b.set_value('mixing_method', 'perfect') # since other mixing methods are arbitrarily parametrized, test this case only | ||
b.set_value('columns', '*') # to populate 'teffs' | ||
|
||
assert b.run_checks().passed |
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'm guessing that, eventually, we'll be able to do better than just test passing checks? It would also be good to find a way to test other mixing methods, but that shouldn't hold up this PR.
b.set_value('teff@secondary', 3000) # so we have different temperatures | ||
b.set_value('mixing_enabled', True) | ||
b.set_value('mixing_method', 'perfect') # since other mixing methods are arbitrarily parametrized, test this case only | ||
b.set_value('columns', '*') # to populate 'teffs' |
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 a bit of an overkill; why not just add teffs?
"extern_atmx", | ||
"extern_planckint", | ||
"blackbody", | ||
"ck2004", |
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.
all the changes to this file are inconsequential; I'd leave the original version.
@@ -144,7 +144,7 @@ null | |||
"kind": "star", | |||
"context": "component", | |||
"description": "Critical (maximum) value of the equivalent radius for the given morphology", | |||
"value": 2.0132751765376384, | |||
"value": 2.013275176537638, |
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.
all the changes to this file are inconsequential; I'd leave the original version.
Replacement PR of #953.
Reinstates the code of @gecheline, @aprsa and @kecnry to handle contact binaries exchanging energy at the surface.
I've added the "perfect mixing" case which assumes very efficient mixing in the interior and makes the whole surface barotropic. This case is parameter-free and enables an easy test to be done.
TODO: