This class implements the density structure for a flared axisymmatric disk, with a density given by:
![\rho(R,z,\phi) = \rho_0^{\rm disk}\,\left(\frac{R_0}{R}\right)^{\beta - p}\,\exp{\left[-\frac{1}{2}\left(\frac{z}{h(R)}\right)^2\right]} \\](../_images/math/70bdd21ecfa488ec70d4b88e1ba6ea69d633cacc.png)
Once the FlaredDisk class has been instantiated, the parameters for the density structure can be set via attributes:
>>> from hyperion.util.constants import msun, au
>>> disk = FlaredDisk()
>>> disk.mass = 2. * msun
>>> disk.rmin = 0.1 * au
>>> disk.rmax = 100 * au
Attributes
| mass | total mass (g) |
| rmin | inner radius (cm) |
| rmax | outer radius (cm) |
| p | surface density power-law exponent |
| beta | scaleheight power-law exponent |
| h_0 | scaleheight of the disk at r_0 (cm) |
| r_0 | radius at which h_0 is defined (cm) |
| cylindrical_inner_rim | Whether the inner edge of the disk should be defined as a truncation |
| cylindrical_outer_rim | Whether the outer edge of the disk should be defined as a truncation |
| dust | dust properties (filename or dust object) |
Methods
| rho_0() | Returns the density factor rho0 |
| density(grid) | Return the density grid |
| midplane_cumulative_density(r) | Find the cumulative column density as a function of radius. |
| vertical_cumulative_density(r, theta) | Find the cumulative column density as a function of theta. |
Methods (detail)
Returns the density factor rho0
Return the density grid
| Parameters : | grid : SphericalPolarGrid or CylindricalPolarGrid instance.
|
|---|---|
| Returns : | rho : np.ndarray
|
Find the cumulative column density as a function of radius.
The cumulative density is measured outwards from the origin, and in the midplane.
| Parameters : | r : np.ndarray
|
|---|---|
| Returns : | rho : np.ndarray
|
Find the cumulative column density as a function of theta.
| Parameters : | r : float
theta : np.ndarray
|
|---|---|
| Returns : | rho : np.ndarray
|