max_requiv problem #855
Replies: 2 comments 10 replies
-
this is the observation data that Im using. |
Beta Was this translation helpful? Give feedback.
-
The error message, however, is telling you that the other star is overflowing its critical radius. If this is just showing as a warning (through the logger), then it might just be intermediate and you fix the problem later in the script. If it is being raised as an error when you call |
Beta Was this translation helpful? Give feedback.
-
hi im trying to fit a data (semidetached) , bot i got this problem:
secondary is overflowing at periastron (requiv=1.0, requiv_max=0.0835699129883548). Use contact model if overflowing is desired. (3 affected parameters, affecting system,run_compute) when requiv of primary =0.0835699129883548=requiv_max, why they are always same?? i changed parameters but this happened again. i did : b.add_constraint('semidetached','primary')
this is my code:
import numpy as np
import phoebe
b = phoebe.default_binary()
logger = phoebe.logger(clevel = 'WARNING')
lc = np.loadtxt('D:\J2215.txt')
fluxes = np.empty(81)
for i in range(81):
fluxes[i] = 1373*10**((-26-lc[i,1])/2.5)
b.add_constraint('semidetached','primary')
b.set_value('requiv', component='secondary', value=0.00014)
b.set_value('eclipse_method', value ='only_horizon')
b.set_value('sma', component = 'binary', value= 0.22)
b.set_value_all('atm', value='blackbody')
b.set_value_all('ld_mode_bol', value='manual')
b.set_value('distance@system', value = 150, unit = 'pc')
times = b.to_time(lc[:,0])
b.add_dataset('lc', times = times, fluxes = fluxes, passband = 'Johnson:V',ld_mode='manual',pblum_mode='absolute', dataset= 'lc01')
b.set_value_all('ld_mode', value='manual')
b.run_compute()
b.add_solver('estimator.lc_periodogram', solver='lcperiod', algorithm = 'ls')
b.run_solver('lcperiod', solution='lcperiod_sol')
b.adopt_solution('lcperiod_sol')
b.add_solver('estimator.ebai', solver = 'ebai_1')
b.run_solver('ebai_1', solution='ebai1_sol')
#b.add_constraint('requivsumfrac')
#b.add_constraint('requivratio')
#b.flip_constraint('requivratio', solve_for='sma@binary')
b.flip_constraint('requivsumfrac', solve_for='requiv@secondary')
#b.add_constraint('teffratio')
b.flip_constraint('teffratio', solve_for='teff@secondary')
b.flip_constraint('ecosw', solve_for='per0')
b.flip_constraint('esinw', solve_for='ecc')
b.adopt_solution('ebai1_sol')
b.add_solver('estimator.lc_geometry', solver = 'lcgeo',eclipse_method ='only_horizon', overwrite=True)
b.run_solver('lcgeo', solution = 'lcgeo_sol',overwrite=True)
for param,value,unit in zip(b.get_value('fitted_twigs', solution='lcgeo_sol'),b.get_value('fitted_values', solution = 'lcgeo_sol'), b.get_value('fitted_units', solution = 'lcgeo_sol')):
print((param,value,unit))
b.flip_constraint('per0', solve_for='ecosw')
b.flip_constraint('ecc', solve_for='esinw')
b.adopt_solution('lcgeo_sol')
b.run_compute(model = 'ebai_model')
b.run_compute(model = 'lcgeom_model')
b.plot(x='phases', legend = True, show=True)
Beta Was this translation helpful? Give feedback.
All reactions