-
Notifications
You must be signed in to change notification settings - Fork 2
Plotting
Plotting can be done in the same way as it’s done for THOR, using mjolnir
.
Another way of doing plotting is to use the mjolnyr.ipynb
jupyter notebook in the main THOR repository.
You can set the path to your data directory and set some boolean switches at the head of the script before running it, and it will create plot and movies of the simulation.
It contains plots of fluxes, Qheat, spectrum, and g0 and w0 if stored.
The muninn
script can run the notebook and create an HTML version of the report. From the THOR directory, run:
$ muninn -j ./mjolnir/mjolnyr.ipynb Path/to/thor/output/directory
the -j
option points to the mjolnyr jupyter notebook to run.
Note: when running muninn with the option to create long videos, it might run into issues while opening all the files and caching them. If you get a “Too many open files” error, you might want to try to change the limit for the number of open files (check the limit with ulimit -n
change the limit with ulimit -n 4096