Table Of Contents

Previous topic

Description of the model

Next topic

Contributing

This Page

Usage

To use dflab in a project:

import dflab

To import the class limepy:

from dflab import limepy

Examples

Construct a Woolley model with W_0 = 7 and print r_{\rm t}/r_0 and r_{\rm v}/r_{\rm h}

>>> from dflab import limepy
>>> k = limepy(7, 0)
>>> print k.rt/k.r0, k.rv/k.rh

Construct a Michie-King model and print r_{\rm
a}/r_{\rm h}

>>> a = limepy(7, 1, ra=2)
>>> print a.ra/a.rh

Create a Wilson model with W_0 = 12 in Henon/N-body units: G=M=r_{\rm v}=1 and print the normalisation constant A of the DF and the DF in the centre:

>>> w = limepy(12, 2, scale=True, GS=1, MS=1, RS=1, scale_radius='rv')
>>> print w.A, w.df(0,0,0)

Multi-mass King model in physical units with r_{\rm h}
= 1\,{\rm pc} and M = 10^5\,{\rm M_{\odot}}

>>> m = limepy(7, 1, mj=[0.3,1,5], Mj=[9,3,1], scale=True, MS=1e5, RS=1)