PrincetonUniversity / SPEC

The Stepped-Pressure Equilibrium Code, an advanced MRxMHD equilibrium solver.
https://princetonuniversity.github.io/SPEC/
GNU General Public License v3.0
25 stars 6 forks source link

Utilities #26

Closed jloizu closed 6 years ago

jloizu commented 6 years ago

I have created a folder Utilities/matlabtools in which I will, in the next days, upload a series of user-friendly (and documented) routines that can be run with matlab in order to diagnose output from spec, but also to created new inputs or even to run spec sequentially.

To start, I just added a routine that takes two hdf5 file names as input and returns the difference in the results in terms of interface geometry. This is useful to test whether 2 versions of the code that are supposed to solve the same problem (only faster, perhaps) do indeed produce the same results.

lazersos commented 6 years ago

I do have some utilities I used a long time ago. I'm sure the files have changed a bit. In the coming month I will try to verify that my utilities work as well, then upload them.

jloizu commented 6 years ago

I am slowly importing matlab routines that I think will be very useful. Each routine is commented and information can also be obtained by calling "help routine_name". Nevertheless, I intend to import a short Example or Tutorial file that quickly shows how to use these routines.

jloizu commented 6 years ago

I have uploaded a series of matlab routines that are easy to use - all is required is matlab. I have also uploaded 3 very short Tutorial files that show how to produce Poincare plots, rotational transform plots, and |B| plots, from SPEC output data.