Skip to content

Commit

Permalink
Merge pull request #32 from jeonggyukim/core_formation
Browse files Browse the repository at this point in the history
Core formation
  • Loading branch information
jeonggyukim authored Aug 21, 2024
2 parents c37015f + 653799c commit 9d7df15
Show file tree
Hide file tree
Showing 19 changed files with 3,554 additions and 1,767 deletions.
3 changes: 3 additions & 0 deletions pyathena/core_formation/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.p
visit_script.py
visitlog.py
5 changes: 3 additions & 2 deletions pyathena/core_formation/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
GRID_NUM_START = 30
PLOT_PREFIX_TCOLL_CORES = "tcoll_cores"
GRID_NUM_START = 1
PLOT_PREFIX_CORE_EVOLUTION = "core_evolution"
PLOT_PREFIX_SINK_HISTORY = "sink_history"
PLOT_PREFIX_PDF_PSPEC = "PDF_Pspecs"
PLOT_PREFIX_RHOC_EVOLUTION = "central_density_evolution"
PLOT_PREFIX_MASS_RADIUS= "mass_radius"
340 changes: 231 additions & 109 deletions pyathena/core_formation/do_tasks.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyathena/core_formation/hst.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ def read_hst(self, savdir=None, force_override=False):
# Time in code unit
h['time'] = hst['time']
# Time in unit of free-fall time
h['time_in_tff'] = h['time']/self.tff
h['time_in_tff'] = h['time']/self.tff0
# Timestep
h['dt'] = hst['dt']
h['dt_in_tff'] = h['dt']/self.tff
h['dt_in_tff'] = h['dt']/self.tff0

# Total gas mass
h['mass'] = hst['mass']
Expand Down
Loading

0 comments on commit 9d7df15

Please sign in to comment.