set 'logg@primary' value manually #632
Replies: 1 comment
-
By default, For example: import phoebe
b = phoebe.default_binary()
print(b.filter(qualifier=['logg', 'mass', 'requiv'], component='primary'))
b.flip_constraint('logg@primary', solve_for='requiv@primary')
print(b.filter(qualifier=['logg', 'mass', 'requiv'], component='primary'))
If requiv is constrained already, then you'll first need to flip the requiv constraint so that requiv is a free parameter (and one of the other parameters in the requiv constraint will become constrained in its place). If you want to instead have mass computed based on your provided logg, then you need to first flip the mass constraint to solve for something else in Kepler's third law (sma, period, or q), and then should be able to flip the logg parameter. print(b.filter(['logg@secondary', 'mass@secondary', 'requiv@secondary', 'sma@binary', 'q@binary']))
b.flip_constraint('mass@secondary', solve_for='sma@binary')
b.flip_constraint('logg@secondary', solve_for='mass@secondary')
print(b.filter(['logg@secondary', 'mass@secondary', 'requiv@secondary', 'sma@binary', 'q@binary']))
|
Beta Was this translation helpful? Give feedback.
-
hello, I am trying to set log g for primary stars manually from spectroscopic data. I tried
b.set_valuae('logg@primary', ...)
and it shows an error, thatlogg@primary
is constrained bymass@primary
andrequiv@primary
. I checkedprint(b.filter(context='constraint'))
and I found that mass and requiv is also constrained by another parameters. I triedb.flip_constraint('logg@primary', solve_for='mass@primary' (or 'requiv@primary'))
and it doesn't work since both of them are constrained by another parameters. Is there any way for me to setlogg@primary
manually? What are and how many constrained parameters I should flip to setlogg@primary
?Beta Was this translation helpful? Give feedback.
All reactions