data for MWPotential evolve
More...
#include <galpy_interface.h>
data for MWPotential evolve
The evolving Milkyway potential referring to MWPotential2014 in Galpy Reference: Gomez F. A., Helmi A., Brown A. G. A., Li Y. S., 2010, MNRAS, 408, 935. doi:10.1111/j.1365-2966.2010.17225.x, https://ui.adsabs.harvard.edu/abs/2010MNRAS.408..935G
◆ calcMWPotentialParameters()
void MWPotentialEvolve::calcMWPotentialParameters |
( |
const double & |
_time | ) |
|
|
inline |
calculate MW potential based on the input time
- Parameters
-
[in] | _time | physical time [Myr] |
◆ initialFromFile()
void MWPotentialEvolve::initialFromFile |
( |
const std::string & |
_filename, |
|
|
const double & |
_time |
|
) |
| |
|
inline |
initial potential parameter from a file
Parameters in configure file: Time [value(Myr)] a [value] H0 [value(km/s/Mpc)] Omega [energy radiation matter] dt_scale [value] dt_max [value(Myr)] Halo [m_vir(Msun) c ac]
Disk [M(Msun) ra(pc) rb(pc)] Bulge [rho(Msun/pc^(3-alpha)) alpha rcut(pc)] a (scale factor), H0 (Hubble constant) and Omega are used to obtain a at a given time by integrating adot(t) Omega are three normazied densities in FRW cosmological model dt_scale: scale of time to integrate a, if -1, evolve backwards, if 1, evolve forwards dt_max: maximum time step for integrating adot NFW Halo (3): virial mass, concentration, formation epoch of halo (Wechsler 2002, Zhao 2003) Miyamoto Nagai disk (3): mass, a, b Power Spherical bulge with expotential cutoff (3): rho0, power law index, cutoff radius
- Parameters
-
[in] | _filename | the file contain parameters |
[in] | _time | current physical time [Myr] |
◆ readDataFromFile()
void MWPotentialEvolve::readDataFromFile |
( |
const std::string & |
_filename, |
|
|
const double & |
_time |
|
) |
| |
|
inline |
read potential parameter from a file
- Parameters
-
[in] | _filename | the file contain parameters (no label): FRWModel: Time[Myr], a, H0[km/s/Mpc], Omega_energy, Omega_radiation, Omega_matter, dt_scale NFWHalo: M_vir[Msun], c, ac Disk: M[Msun], Ra[pc], Rb[pc] Bulge: M[Msun], alpha, rcut[pc] |
[in] | _time | current physical time [Myr] |
◆ writeDataToFile()
void MWPotentialEvolve::writeDataToFile |
( |
const std::string & |
_filename | ) |
|
|
inline |
write data for restart
- Parameters
-
[in] | _filename | file to save data |
◆ ac_halo
double MWPotentialEvolve::ac_halo |
◆ alpha_bulge
double MWPotentialEvolve::alpha_bulge |
◆ c_halo
double MWPotentialEvolve::c_halo |
◆ frw
◆ gm_disk
double MWPotentialEvolve::gm_disk |
◆ gm_halo
double MWPotentialEvolve::gm_halo |
◆ grho_bulge
double MWPotentialEvolve::grho_bulge |
◆ init
struct { ... } MWPotentialEvolve::init |
◆ m_disk
double MWPotentialEvolve::m_disk |
◆ m_vir_halo
double MWPotentialEvolve::m_vir_halo |
◆ now
struct { ... } MWPotentialEvolve::now |
◆ r_vir_halo
double MWPotentialEvolve::r_vir_halo |
◆ ra_disk
double MWPotentialEvolve::ra_disk |
◆ rb_disk
double MWPotentialEvolve::rb_disk |
◆ rcut_bulge
double MWPotentialEvolve::rcut_bulge |
◆ rho_bulge
double MWPotentialEvolve::rho_bulge |
◆ rho_c_halo
double MWPotentialEvolve::rho_c_halo |
◆ rs_halo
double MWPotentialEvolve::rs_halo |
The documentation for this class was generated from the following file: