Skip to content

Commit

Permalink
torus problem in tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
vedantdhruv96 committed Oct 21, 2024
1 parent 609ba00 commit 33aa664
Show file tree
Hide file tree
Showing 4 changed files with 215 additions and 13 deletions.
112 changes: 107 additions & 5 deletions scripts/tutorial/.ipynb_checkpoints/tutorial-checkpoint.ipynb

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions scripts/tutorial/analysis/plot_torus.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ def plot(dumpno):

# load dump
dump = pyharm.load_dump(os.path.join(dumpsdir, 'torus.out0.{:05d}.phdf'.format(dumpno)))

bsq = np.maximum(dump['bsq'], SMALL)

x_slice = xz_slice(np.squeeze(dump['x']), dump, patch_pole=True)
z_slice = xz_slice(np.squeeze(dump['z']), dump)
Expand Down
2 changes: 1 addition & 1 deletion scripts/tutorial/parfiles/sane2d.par
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ bsq_over_rho_max = 100

<parthenon/output0>
file_type = hdf5
dt = 10.0
dt = 5.0
single_precision_output = true
# Fields beginning with a specifier here will be included (e.g., all prims.XXX)
# Fields specified but not present are silently skipped
Expand Down
112 changes: 107 additions & 5 deletions scripts/tutorial/tutorial.ipynb

Large diffs are not rendered by default.

0 comments on commit 33aa664

Please sign in to comment.