PHOEBE 2.1 Documentation

2.1 Docs



Prev: 2.0 - 2.1 Migration: requiv Next: 2.0 - 2.1 Migration: Plotting
.

IPython Notebook | Python Script

2.0 - 2.1 Migration: Semidetached

In PHOEBE 2.1, rpole and potential have been replaced with requiv. That means that the constraint used to handle semidetached systems has also changed.

import phoebe
b = phoebe.default_binary()

requiv_max

In PHOEBE 2.1, there is a new constrained Parameter that allows access to the critical value of requiv at which overflow would occur (for a detached system - contact systems have requiv_min and requiv_max).

print b['requiv_max@primary@constraint']
Constrains (qualifier): requiv_max
Expression in SI (value): requiv_L1({q@binary@component}, {syncpar@primary@component}, {ecc@binary@component}, {sma@binary@component}, {incl@primary@component}, {long_an@primary@component}, {incl@binary@component}, {long_an@binary@component}, 1)
Current Result (result): 2.01327517654 solRad

In order to create a semidetached system, you create a constraint as in PHOEBE 2.0, except instead of choosing ‘critical_rpole’ or ‘critical_pot’ constraints, use a new constraint called ‘semidetached’.

b.add_constraint('semidetached', 'primary')
<ParameterSet: 1 parameters>
print b['requiv@primary@constraint']
Constrains (qualifier): requiv
Expression in SI (value): 1.000000 * {requiv_max@primary@component}
Current Result (result): 2.01327517654 solRad
Prev: 2.0 - 2.1 Migration: requiv Next: 2.0 - 2.1 Migration: Plotting
.
Last update: 10/29/2018 9:20 a.m. (CET)