Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Improve logging messages | Aaron LI | 2017-08-01 | 3 | -5/+14 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils: Add profile.py to diagnose memory usage | Aaron LI | 2017-08-01 | 1 | -0/+97 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/emission.py: Fix bug in "F()" | Aaron LI | 2017-08-01 | 1 | -13/+14 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | configs: Clean up imports | Aaron LI | 2017-08-01 | 2 | -3/+2 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | configs: Default logging to INFO; remove a obsolete config option | Aaron LI | 2017-08-01 | 2 | -6/+1 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters: Add config "halos_dumpfile" and dump simulate halos data | Aaron LI | 2017-08-01 | 2 | -1/+12 |
| | |||||
* | utils/io.py: Add functions "pickle_dump()" and "pickle_load()" | Aaron LI | 2017-08-01 | 1 | -0/+31 |
| | |||||
* | utils/io.py: Split out "_create_dir()" and "_check_existence()" | Aaron LI | 2017-08-01 | 1 | -12/+31 |
| | |||||
* | clusters/halo.py: Finished brief simulation description | Aaron LI | 2017-08-01 | 1 | -3/+13 |
| | |||||
* | clusters: Fix several small issues on wrong variable names | Aaron LI | 2017-07-31 | 3 | -7/+8 |
| | | | | | | Also update logging message for RadioHalo a bit. Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | Fix several small issues; Also update PSFormalism a bit | Aaron LI | 2017-07-31 | 2 | -5/+11 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/main.py: Use PSFormalism to simulate cluster catalog | Aaron LI | 2017-07-31 | 1 | -13/+11 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters: Add psformalism.py to simulate cluster catalog | Aaron LI | 2017-07-31 | 2 | -2/+241 |
| | | | | | | Also updated configuration options. Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/cosmology.py: Add "dVc()": differential comoving volume | Aaron LI | 2017-07-31 | 1 | -0/+8 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils: Add interpolate.py with "bilinear()" function | Aaron LI | 2017-07-31 | 1 | -0/+42 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | cosmology: Avoid the circular importing issue | Aaron LI | 2017-07-31 | 3 | -8/+2 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | Add the new module `fg21sim.share` missing from the last commit! | Aaron LI | 2017-07-31 | 1 | -0/+32 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | Add `fg21sim.share` module to hold globally shared "CONFIGS" & "COSMO" | Aaron LI | 2017-07-31 | 7 | -12/+5 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/main.py: Add method "_simulate_halos()" | Aaron LI | 2017-07-31 | 1 | -0/+43 |
| | | | | | | | This method simulates the radio halo properties for each cluster with a recent major merger. Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/halo.py: Add description for "time_crossing" property | Aaron LI | 2017-07-31 | 1 | -0/+6 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | Update references a bit | Aaron LI | 2017-07-31 | 2 | -38/+34 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | cluster/halo.py: Add method "calc_brightness_mean()" | Aaron LI | 2017-07-30 | 1 | -0/+48 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/halo.py: Add property "angular_radius" (unit: [arcsec]) | Aaron LI | 2017-07-30 | 2 | -0/+12 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/emission.py: Remove methods and clean up parameters | Aaron LI | 2017-07-29 | 1 | -78/+2 |
| | | | | | | | | * Methods "power()", "flux()" already moved to "halo.py"; * Method "brightness()" will also be moved over there; * Clean up thus unused parameters "z" and "radius", as well as imports. Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/halo.py: Add methods "calc_power()" and "calc_flux()" | Aaron LI | 2017-07-29 | 1 | -0/+50 |
| | | | | | | | Calculate the synchrotron power (a.k.a. specific luminosity) and flux density from the emissivity for the halo. Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/halo.py: Add method "calc_emissivity()" | Aaron LI | 2017-07-29 | 1 | -6/+37 |
| | | | | | | | This method invokes ``SynchrotronEmission`` to calculate the synchrotron emissivity at specified frequencies for the derived electron spectrum. Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/halo.py: Add property "volume" (unit: [cm^3]) | Aaron LI | 2017-07-29 | 1 | -0/+9 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/units.py: Add several units conversions | Aaron LI | 2017-07-29 | 1 | -0/+4 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/emission.py: support calc emissivity at multiple frequencies | Aaron LI | 2017-07-29 | 1 | -17/+27 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/emission.py: Add property "B_gauss" | Aaron LI | 2017-07-29 | 1 | -7/+11 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | galactic/freefree: Add "dust_fraction" and "halpha_abs_th" configs | Aaron LI | 2017-07-29 | 2 | -10/+18 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | galactic/freefree.py: Add method "_calc_halpha_to_freefree()" | Aaron LI | 2017-07-29 | 1 | -14/+24 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | galactic/freefree.py: Some cleanups | Aaron LI | 2017-07-29 | 1 | -33/+33 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | galactic/freefree: Add config "electron_temperature" | Aaron LI | 2017-07-29 | 2 | -10/+28 |
| | | | | | | Update method "_calc_ratio_a()" to "_calc_factor_a()" Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/emission.py: Cache kernel function interpolation results | Aaron LI | 2017-07-27 | 1 | -22/+22 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/configs: Update "beta_turb" default to 1.0 | Aaron LI | 2017-07-27 | 1 | -1/+1 |
| | | | | | | | This makes the simulation agree better with observations, e.g., <Jsyn> ~ 1e-42 [erg/s/cm^3/Hz] Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/cosmology.py: age() and redshift() accepts numpy arrays | Aaron LI | 2017-07-27 | 1 | -7/+10 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/cosmology.py: Update references and comments | Aaron LI | 2017-07-27 | 1 | -36/+66 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/emission.py: Fix units/dimensions problem | Aaron LI | 2017-07-26 | 1 | -1/+2 |
| | | | | | | | | | | | NOTE: Since we just substitute ``p`` (electron momentum) for ``γ`` (electron Lorentz factor), i.e., N = int_p n(p) dp = int_γ n(γ) dγ , therefore the coefficient ``sqrt(3) e^3 B / (m c^2)`` does NOT need modification (e.g., multiply an extra ``m c``)! Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/emission.py: explain more on Larmor frequency | Aaron LI | 2017-07-26 | 1 | -4/+12 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/emission.py: Fix the calling to F(x) | Aaron LI | 2017-07-26 | 1 | -9/+6 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/emission.py: Rewrite emissivity calculation | Aaron LI | 2017-07-26 | 1 | -15/+24 |
| | | | | | | | | | | Use 2D grid of (discrete) samples to optimize integration speed, avoiding the more complicated integration w.r.t. functions. WARNING: Current calculation results seems wrong! Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/emission.py: Update arguments | Aaron LI | 2017-07-26 | 1 | -28/+28 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/emission.py: Rewrite Synchrotron kernel function calculation | Aaron LI | 2017-07-26 | 1 | -3/+41 |
| | | | | | | | Use interpolation to optimize the speed as well as to vectorize the function to ease calling. Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/halo.py: Add property "magnetic_field" | Aaron LI | 2017-07-26 | 1 | -0/+11 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/solver.py: Use multiple data points to fit the power-law | Aaron LI | 2017-07-25 | 1 | -17/+19 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | configs: Update [[halos]] sections a bit | Aaron LI | 2017-07-25 | 1 | -5/+6 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/halo: Change config "eta_turb" to "beta_turb" | Aaron LI | 2017-07-25 | 2 | -6/+5 |
| | | | | | | | | | | This configuration option "beta_turb" has different meaning as "eta_turb" in [Cassano & Brunetti 2005], though they can both be an indicator for the turbulence acceleration efficiency. Rename this configuration option to make the difference more clear. Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/helper.py: Fix and replace R_halo vs. R_vir relation | Aaron LI | 2017-07-23 | 1 | -11/+12 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/helper.py: Fix a bug in "mass_to_kT()" | Aaron LI | 2017-07-23 | 1 | -2/+2 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> |