Skip to content

Can't combine Irrgang13 model with dynamical friction #549

Answered by jobovy
edan0314 asked this question in Q&A
Discussion options

You must be logged in to vote

The issue here is that you have to be careful to use the unit-system of Irrgang13I for all objects with which you use Irrgang13I. The easiest way to do this is with get_physical from galpy.util.conversion:

from galpy.util.conversion import get_physical
o3=Orbit.from_name('Sgr',**get_physical(asi))
cdf3=ChandrasekharDynamicalFrictionForce(GMs=4.*10.**8.*units.Msun, rhm=0.55*units.kpc, dens=asi,**get_physical(asi))

then integrating the orbit should work. McMillan17 would require a similar procedure. This isn't necessary for MWPotential or MWPotential2014, because they don't have a fixed unit-system attached, that is, they can use any ro and vo. But for Irrgang13I, McMillan17, and some othe…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@edan0314
Comment options

Answer selected by edan0314
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants