Skip to content
Snippets Groups Projects
Commit e81ce7bf authored by Sylvia Plöckinger's avatar Sylvia Plöckinger
Browse files

Update README.md

parent 1f0fe3c8
Branches
No related tags found
No related merge requests found
...@@ -2,15 +2,18 @@ ...@@ -2,15 +2,18 @@
The python routines to reproduce each figure from Ploeckinger et al. ([arXiv](https://arxiv.org/abs/2310.10721)) can be found here. For the figures showing results from the isolated galaxy simulations, the simulations have to be run first by following the instructions [here](https://gitlab.phaidra.org/softenedjeanscriteria/setup-galaxy-simulations). The python routines to reproduce each figure from Ploeckinger et al. ([arXiv](https://arxiv.org/abs/2310.10721)) can be found here. For the figures showing results from the isolated galaxy simulations, the simulations have to be run first by following the instructions [here](https://gitlab.phaidra.org/softenedjeanscriteria/setup-galaxy-simulations).
**Required python packages:**
- matplotlib
- numpy
- unyt
### Fig. 1: Comparison between Newtonian and softened Jeans mass ### Fig. 1: Comparison between Newtonian and softened Jeans mass
Reproduce Fig. 1 with: Reproduce Fig. 1 with:
``` ```
python3 Fig1_Jeans_mass_comparison.py python3 Fig1_Jeans_mass_comparison.py
``` ```
**Required python packages:**
- matplotlib
- numpy
**Comment:** **Comment:**
Easily adapt this figure to different constant Plummer-equivalent softening lengths by changing the line `eps = 100. # in pc`. Easily adapt this figure to different constant Plummer-equivalent softening lengths by changing the line `eps = 100. # in pc`.
...@@ -21,10 +24,6 @@ Reproduce Fig. 2 with: ...@@ -21,10 +24,6 @@ Reproduce Fig. 2 with:
``` ```
python3 Fig2_SPH_density_sketch.py python3 Fig2_SPH_density_sketch.py
``` ```
**Required python packages:**
- matplotlib
- numpy
- unyt
**Comment:** **Comment:**
Re-running the figures can lead to slightly different results because the particle positions are random. The minimum smoothing length can be varied by changing the line `hmin_in_pc = 1.55 * 10. # minimum smoothing length in pc`. Re-running the figures can lead to slightly different results because the particle positions are random. The minimum smoothing length can be varied by changing the line `hmin_in_pc = 1.55 * 10. # minimum smoothing length in pc`.
...@@ -35,10 +34,6 @@ Reproduce Fig. 3 with: ...@@ -35,10 +34,6 @@ Reproduce Fig. 3 with:
``` ```
python3 Fig3_runaway_collapse_zone.py python3 Fig3_runaway_collapse_zone.py
``` ```
**Required python packages:**
- matplotlib
- numpy
- unyt
**Comment:** **Comment:**
The plotted resolution parameters can be updated by changing the lines that set `epsarr`, `mBarr`, and `h_min_ratio_arr` (see comments in the python script). The plotted resolution parameters can be updated by changing the lines that set `epsarr`, `mBarr`, and `h_min_ratio_arr` (see comments in the python script).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment