aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic/clusters/halo.py
Commit message (Collapse)AuthorAgeFilesLines
* clusters/halo.py: Rewrite electron acceleration coefficient calcAaron LI2017-08-141-26/+51
| | | | | | | | | | * Adopt the electron acceleration coefficient formula from [cassano2005] * Rename method "_tau_acceleration()" to "_chi_acceleration()", and rewrite * Add property "kT_merger" * Also save "kT_merger" and "chi" into halos data Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo.py: Simplify two coefficients usageAaron LI2017-08-141-7/+5
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters: Rename property "injection_rate" and save into halos dataAaron LI2017-08-141-37/+37
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters: Implement calc_{power,flux,brightness_mean} in helperAaron LI2017-08-111-40/+10
| | | | | | Help development & debug ... Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo: "volume" use unit "kpc^3" instead of "cm^3"Aaron LI2017-08-111-3/+6
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Fix a bug in clusters/halo.py; Add a comment to utils/io/_create_dir()Aaron LI2017-08-061-1/+1
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo.py: Finished brief simulation descriptionAaron LI2017-08-011-3/+13
|
* clusters: Fix several small issues on wrong variable namesAaron LI2017-07-311-2/+2
| | | | | | Also update logging message for RadioHalo a bit. Signed-off-by: Aaron LI <aly@aaronly.me>
* Add `fg21sim.share` module to hold globally shared "CONFIGS" & "COSMO"Aaron LI2017-07-311-2/+1
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo.py: Add description for "time_crossing" propertyAaron LI2017-07-311-0/+6
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* cluster/halo.py: Add method "calc_brightness_mean()"Aaron LI2017-07-301-0/+48
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo.py: Add property "angular_radius" (unit: [arcsec])Aaron LI2017-07-301-0/+10
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo.py: Add methods "calc_power()" and "calc_flux()"Aaron LI2017-07-291-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 LI2017-07-291-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 LI2017-07-291-0/+9
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo.py: Add property "magnetic_field"Aaron LI2017-07-261-0/+11
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo: Change config "eta_turb" to "beta_turb"Aaron LI2017-07-251-3/+3
| | | | | | | | | | 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: Accept 1D numpy array and calculate values for all gamma'sAaron LI2017-07-231-17/+16
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo.py: Constrain tau_acc to avoid zero diffusionAaron LI2017-07-231-2/+15
| | | | | | | | | | Zero or negative diffusion coefficient leads to unstable or wrong results due to numerical algorithm/scheme adopted to solve the Fokker-Planck equation. Also add a NOTE to the FokkerPlanckSolver class. Signed-off-by: Aaron LI <aly@aaronly.me>
* Use all uppercase to identify the global CONFIGS and COSMOAaron LI2017-07-221-15/+11
| | | | | | Update to use the global CONFIGS and COSMO Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters: Import global "configs" to simplify parametersAaron LI2017-07-221-52/+54
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo.py: Implement "_injection_rate" propertyAaron LI2017-07-221-6/+56
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo.py: update parameters and methodsAaron LI2017-07-221-46/+119
| | | | | | Still WIP... Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo.py: More cleanups with minor updatesAaron LI2017-07-221-70/+97
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo.py: Significant cleanupsAaron LI2017-07-221-551/+2
| | | | | | | Several methods/functions have been migrated into "helper.py", while other methods/functions are obsolete. Signed-off-by: Aaron LI <aly@aaronly.me>
* Use the global "cosmo" instance for simplificationAaron LI2017-07-211-26/+20
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* halo.py: Fix wrong cosmo.age() usageAaron LI2017-06-251-1/+1
|
* halo.py: Add argument "n0_e" to method "calc_electron_spectrum()"Aaron LI2017-06-241-4/+10
|
* halo.py: Split out property "_chi_data"Aaron LI2017-06-241-31/+31
|
* halo.py: Add property "pgrid" as same as it is in slover.pyAaron LI2017-06-241-0/+10
|
* halo.py: use age at cluster redshift z0 instead of present dayAaron LI2017-06-241-6/+12
|
* halo.py: Add property "zgrid" as well as config option "zbinsize"Aaron LI2017-06-241-0/+8
|
* clusters/halo.py: calculate electron density default end at z0Aaron LI2017-06-231-10/+12
|
* halo.py: calculate magnetic field using a scaling relationAaron LI2017-06-231-8/+22
|
* halo.py + formation.py: Add argument z0Aaron LI2017-06-231-3/+7
|
* configs: extragalactic/halos: change "radius_halo" to "radius"Aaron LI2017-06-011-5/+5
|
* clusters: Move units.py and cosmology.py to utilsAaron LI2017-06-011-2/+4
|
* clusters/halo.py: Add zbegin & zend parametersAaron LI2017-06-011-3/+37
| | | | | * Add "zbegin" and "zend" parameters to "calculate_electron_spectrum()" * Add more detail docstrings
* halo.py: Rewrite "_coef_acceleration()" methodAaron LI2017-06-011-15/+44
|
* Bind ClusterFormation to HaloSingleAaron LI2017-06-011-1/+4
| | | | Also add logging messages to simulate_mergertree()
* Update to use custom units.py instead of astropy'sAaron LI2017-06-011-40/+26
| | | | Also fix a parameter error in "formation.py"
* halo.py: Update to match MergerTree structuresAaron LI2017-06-011-8/+8
|
* halo.py: Force a minimal value on acceleration coefficientAaron LI2017-06-011-1/+25
| | | | | | | To avoid the too small (or zero) values for the diffusion coefficient of the Fokker-Planck equation. Also change config "extragalactic/halo/pmax" from 1e4 to 1e5
* clusters/halo: Add missing config "buffer_np"Aaron LI2017-06-011-0/+2
|
* Add clusters/halo.py: simulate single halo for clusterAaron LI2017-06-011-0/+698
Simulate (giant) radio halos following the "statistical magneto-turbulent model" proposed by Cassano & Brunetti (2005).