Let's first make sure we have the latest version of PHOEBE 2.1 installed. (You can comment out this line if you don't use pip for your installation or don't want to update to the latest release).
In [ ]:
!pip install -I "phoebe>=2.1,<2.2"
As always, let's do imports and initialize a logger and a new Bundle. See Building a System for more details.
In [1]:
%matplotlib inline
In [2]:
import phoebe
from phoebe import u # units
import numpy as np
import matplotlib.pyplot as plt
logger = phoebe.logger('error')
b = phoebe.default_binary()
Now let's add a light curve dataset to see how ltte affects the timings of eclipses.
In [3]:
b.add_dataset('lc', times=phoebe.linspace(-0.05, 0.05, 51), dataset='lc01')
Out[3]:
In [4]:
print b['ltte@compute']
In order to have a binary system with any noticeable ltte effects, we'll set a somewhat extreme mass-ratio and semi-major axis.
In [5]:
b['sma@binary'] = 100
In [6]:
b['q'] = 0.1
We'll just ignore the fact that this will be a completely unphysical system since we'll leave the radii and temperatures alone despite somewhat ridiculous masses - but since the masses and radii disagree so much, we'll have to abandon atmospheres and use blackbody.
In [7]:
b.set_value_all('atm', 'blackbody')
b.set_value_all('ld_func', 'logarithmic')
In [8]:
b.run_compute(irrad_method='none', ltte=False, model='ltte_off')
Out[8]:
In [9]:
b.run_compute(irrad_method='none', ltte=True, model='ltte_on')
Out[9]:
In [10]:
afig, mplfig = b.plot(show=True)
In [ ]: