PeTar
N-body code for collisional gravitational systems
MWPotentialEvolve Class Reference

data for MWPotential evolve More...

#include <galpy_interface.h>

Collaboration diagram for MWPotentialEvolve:
[legend]

Public Member Functions

void initialFromFile (const std::string &_filename, const double &_time)
 initial potential parameter from a file More...
 
void readDataFromFile (const std::string &_filename, const double &_time)
 read potential parameter from a file More...
 
void writeDataToFile (const std::string &_filename)
 write data for restart More...
 
void calcMWPotentialParameters (const double &_time)
 calculate MW potential based on the input time More...
 

Public Attributes

FRWModel frw
 
struct {
   double   m_vir_halo
 
   double   c_halo
 
   double   ac_halo
 
   double   m_disk
 
   double   ra_disk
 
   double   rb_disk
 
   double   rho_bulge
 
   double   alpha_bulge
 
   double   rcut_bulge
 
init
 
struct {
   double   m_vir_halo
 
   double   r_vir_halo
 
   double   rho_c_halo
 
   double   gm_halo
 
   double   rs_halo
 
   double   gm_disk
 
   double   ra_disk
 
   double   rb_disk
 
   double   grho_bulge
 
   double   alpha_bulge
 
   double   rcut_bulge
 
now
 

Detailed Description

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

Member Function Documentation

◆ calcMWPotentialParameters()

void MWPotentialEvolve::calcMWPotentialParameters ( const double &  _time)
inline

calculate MW potential based on the input time

Parameters
[in]_timephysical time [Myr]
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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]_filenamethe file contain parameters
[in]_timecurrent physical time [Myr]
Here is the call graph for this function:
Here is the caller graph for this function:

◆ readDataFromFile()

void MWPotentialEvolve::readDataFromFile ( const std::string &  _filename,
const double &  _time 
)
inline

read potential parameter from a file

Parameters
[in]_filenamethe 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]_timecurrent physical time [Myr]
Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeDataToFile()

void MWPotentialEvolve::writeDataToFile ( const std::string &  _filename)
inline

write data for restart

Parameters
[in]_filenamefile to save data
Here is the caller graph for this function:

Member Data Documentation

◆ ac_halo

double MWPotentialEvolve::ac_halo

◆ alpha_bulge

double MWPotentialEvolve::alpha_bulge

◆ c_halo

double MWPotentialEvolve::c_halo

◆ frw

FRWModel MWPotentialEvolve::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: