flip constraint for overcontact binary #824
Replies: 1 comment
-
There are a few things going on here that make flipping this constraint complicated:
this is showing that, by default, the equivalent radius of the primary star and the mass-ratio are the only parameters that are "free", with the equivalent radius of the secondary, the potential, and fillout-factor all being "constrained" (noted by the "C" in front) via the listed expressions in the constraint parameters. In order to make fillout-factor free instead, you'll ultimately need to flip the fillout_factor constraint. You could flip fillout_factor to solve for the mass-ratio, q, and then have fillout-factor and requiv as free parameters, but since you also want q to be free, that means you'll need to flip multiple constraints so that
which now gives you
Hope this helps and makes a little more sense! |
Beta Was this translation helpful? Give feedback.
-
I want to simulate the overcontact binary system with parameters T_p = 5000K, T_s = 6000K, q = 0.35, inclination = 90 degrees, orbital period = 1 day, and fill-out factor = 0.2. However, I can't figure out how to fly the constraint to solve for the fill-out factor and run_compute.
here is my code
I think there are some thing wrong for
cb.flip_constraint('pot@contact_envelope@envelope@component', solve_for ='fillout_factor@component')
because it shows thee error like
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions