# galpy.df.evolveddiskdf.oortB¶

evolveddiskdf.oortB(R, t=0.0, nsigma=None, deg=False, phi=0.0, epsrel=0.01, epsabs=1e-05, grid=None, gridpoints=101, returnGrids=False, derivRGrid=None, derivphiGrid=None, derivGridpoints=101, derivHierarchgrid=False, hierarchgrid=False, nlevels=2, integrate_method='dopr54_c')[source]

Calculate the Oort function B at (R,phi,t)

Parameters:
• R (float) – Radius at which to calculate the moment (can be Quantity)

• phi (float, optional) – Azimuth (rad unless deg=True; can be Quantity), by default 0.0

• t (float or array, optional) – Time at which to evaluate the DF (can be a list or ndarray; if this is the case, list needs to be in descending order and equally spaced) (can be Quantity), by default 0.0

• surfacemass (float, optional) – If set use this pre-calculated surfacemass and mean rotational velocity, by default None

• meanvT (float, optional) – If set use this pre-calculated surfacemass and mean rotational velocity, by default None

• nsigma (float, optional) – Number of sigma to integrate the velocities over (based on an estimate, so be generous), by default None

• deg (bool, optional) – Azimuth is in degree (default=False); do not set this when giving phi as a Quantity, by default False

• epsrel (float, optional) – Scipy.integrate keywords (the integration calculates the ratio of this vmoment to that of the initial DF), by default 1.0e-02

• epsabs (float, optional) – Scipy.integrate keywords (the integration calculates the ratio of this vmoment to that of the initial DF), by default 1.0e-05

• grid (bool or evolveddiskdfGrid or evolveddiskdfHierarchicalGrid, optional) – If set to True, build a grid and use that to evaluate integrals; if set to a grid-objects (such as returned by this procedure), use this grid, by default None

• gridpoints (int, optional) – Number of points to use for the grid in 1D (default=101), by default 101

• returnGrids (bool, optional) – If True, return the grid objects (default=False), by default False

• derivRGrid (bool or evolveddiskdfGrid or evolveddiskdfHierarchicalGrid, optional) – If set to True, build a grid and use that to evaluate integrals of the derivatives of the DF; if set to a grid-objects (such as returned by this procedure), use this grid, by default None

• derivphiGrid (bool or evolveddiskdfGrid or evolveddiskdfHierarchicalGrid, optional) – If set to True, build a grid and use that to evaluate integrals of the derivatives of the DF; if set to a grid-objects (such as returned by this procedure), use this grid, by default None

• derivGridpoints (int, optional) – Number of points to use for the grid in 1D (default=101), by default 101

• derivHierarchgrid (bool, optional) – If True, use a hierarchical grid (default=False), by default False

• hierarchgrid (bool, optional) – If True, use a hierarchical grid (default=False), by default False

• nlevels (int, optional) – Number of hierarchical levels for the hierarchical grid, by default 2

• integrate_method (str, optional) – orbit.integrate method argument, by default “dopr54_c”

Returns:

Oort B at R,phi,t or tuple of Oort A at R,phi,t and grid objects

Return type:

float or tuple

Notes

• 2011-10-16 - Written - Bovy (NYU)