aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic
Commit message (Collapse)AuthorAgeFilesLines
...
* clusters: Use "GalaxyClusters" from main.pyAaron LI2017-07-221-2/+2
| | | | | | The "clusters.py" is deprecated and will be deleted later. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/helper.py: Add "velocity_impact()" and "time_crossing()"Aaron LI2017-07-221-3/+71
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Add property "halo_configs"Aaron LI2017-07-221-1/+31
| | | | | | And update the config specification accordingly with some cleanups. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Add "_magnetic_field()" methodAaron LI2017-07-211-0/+33
| | | | | | Also update the configurations Signed-off-by: Aaron LI <aly@aaronly.me>
* Add clusters/helper.pyAaron LI2017-07-211-0/+158
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Use the global "cosmo" instance for simplificationAaron LI2017-07-214-53/+34
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Add basic "preprocess()" methodAaron LI2017-07-201-1/+23
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Implement "_simulate_merger()"Aaron LI2017-07-201-6/+76
| | | | | | | | | | Simulate the formation history of each cluster and identify the last/recent major merger event. Also add new configuration option "tau_merger" and tweak several configurations options. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/formation.py: show verbose info only in DEBUGAaron LI2017-07-201-6/+9
| | | | | | | | Since the ``ClusterFormation`` is repeatedly invoked in ``GalaxyClusters``, so make the verbose information printed only at DEBUG level. Signed-off-by: Aaron LI <aly@aaronly.me>
* mergertree/show_mergertree(): Improve print formatAaron LI2017-07-201-3/+3
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/formation.py: Fix bug in "last_major_merger" propertyAaron LI2017-07-201-7/+11
| | | | | | Also calculate and add the mass ratio to the event dictionary. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/formation.py: Fix bug in "_trace_main()"Aaron LI2017-07-201-4/+8
| | | | | | | | | Do not modify the root node of the merger tree, and return this root node after tracing the formation history. Also print some more information for debug. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/mergertree.py: Add function "show_mtree()"Aaron LI2017-07-191-0/+32
| | | | | | | This function traces the main cluster and print its formation history to the screen, for easier illustration and examination. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Add and save catalog comments for columnsAaron LI2017-07-191-6/+18
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: GalaxyClusters implements some basic methodsAaron LI2017-07-191-8/+130
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Use [arcsec] as the unit for pixel size and resolutionAaron LI2017-07-191-2/+2
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/formation.py: Add "last_major_merger" propertyAaron LI2017-07-191-1/+42
| | | | | | | A new parameter "ratio_major" added to distinguish between major and minor merger events. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/formation.py: Add method "_trace_main()"Aaron LI2017-07-191-10/+77
| | | | | | Also update "simulate_megertree()" default to trace only the main cluster. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/formation.py: Simplify parameters handlingAaron LI2017-07-191-28/+24
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* halo.py: Fix wrong cosmo.age() usageAaron LI2017-06-251-1/+1
|
* solver.py: Fix coefficients calculation w.r.t. escape termAaron LI2017-06-251-5/+6
|
* solver.py: Add example for TDMAsolver()Aaron LI2017-06-251-0/+16
|
* clusters/solver.py: Split methods bound_w/Wplus/WminusAaron LI2017-06-251-14/+36
| | | | Also change an INFO message to be DEBUG level.
* clusters/solver.py: Fix "fix_boundary()" and remove a warningAaron LI2017-06-251-6/+5
|
* clusters/solver.py: Support escape termAaron LI2017-06-251-5/+12
|
* 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
|
* mergertree.py: axes.hold() is deprecated and it is True by defaultAaron LI2017-06-231-1/+0
|
* halo.py: calculate magnetic field using a scaling relationAaron LI2017-06-231-8/+22
|
* halo.py + formation.py: Add argument z0Aaron LI2017-06-232-7/+18
|
* emission.py: Add power(), flux(), brightness() methodsAaron LI2017-06-231-25/+111
|
* Use keyword "BUNIT" and unit "K"Aaron LI2017-06-131-1/+1
|
* Fix GalaxyClusters importAaron LI2017-06-131-2/+2
|
* clusters.py: Fix calculation on size_{major,minor}Aaron LI2017-06-111-15/+20
| | | | | | | | The size_{major,minor} should be the major and minor (not semi-) axes of the cluster halo; but I originally calculated them as the semi-major and semi-minor axes. Also change the units of size_{major,minor} from [deg] to [arcmin].
* 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-015-291/+6
|
* extragalactic/clusters/clusters.py: Trim unused importsAaron LI2017-06-011-2/+0
|
* fg21sim/clusters: Save progress on halo simulationAaron LI2017-06-014-3/+29
|
* 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
* Add clusters/emission.py: Calculate synchrotron emissivityAaron LI2017-06-012-0/+123
| | | | | | | Calculate the synchrotron emissivity from the given electron spectrum at specified frequency. Add the electron charge to units.Constants
* halo.py: Rewrite "_coef_acceleration()" methodAaron LI2017-06-011-15/+44
|
* Bind ClusterFormation to HaloSingleAaron LI2017-06-012-1/+7
| | | | Also add logging messages to simulate_mergertree()
* cosmology.py: Optimize the speed of overdensity_crit()Aaron LI2017-06-011-2/+11
|
* Update to use custom units.py instead of astropy'sAaron LI2017-06-013-52/+36
| | | | Also fix a parameter error in "formation.py"
* Add units.py: Commonly used units and conversions and constantsAaron LI2017-06-011-0/+66
| | | | | Astropy's unit conversions is too slow, thus store the used units conversions to avoid astropy's slow conversions.
* mergertree.py: Implement function "plot_mtree()"Aaron LI2017-06-011-2/+52
|