Difference between revisions of "Visualizing magnetic field lines"
(short notes on how to create field lines plots) |
(ad final picture, resize images) |
||
Line 11: | Line 11: | ||
* add a "Streamline" plot and the "Project" operator | * add a "Streamline" plot and the "Project" operator | ||
* set the streamline options as shown below | * set the streamline options as shown below | ||
− | [[Image:streamlineoptions.png]] | + | [[Image:streamlineoptions.png|1024px]] |
* you can find the full settings in the session file in the rotor repository [https://svn.einsteintoolkit.org/documents/Paper_EinsteinToolkit_GRMHD/rotor/figs/fieldlines.session] | * you can find the full settings in the session file in the rotor repository [https://svn.einsteintoolkit.org/documents/Paper_EinsteinToolkit_GRMHD/rotor/figs/fieldlines.session] | ||
+ | * the final plot should look like this: | ||
+ | [[Image:fieldlines.png|640px]] |
Revision as of 21:07, 12 September 2012
For the ET MHD paper, I wanted to visualize magnetic field lines as done in figure 4 of DelZannaa 2002. For this I wanted to use VisIt on 2d hdf5 output (unigrid) from Carpet. The data and paremter files can be found in the MHD paper repository [1].
To visualize them, one has to do the "usual VisIt" stuff to get a vector into VisIt. Ie.
- open the file in VisIt
- create a new vector Expression (Control/Expressions...)
{<HYDROBASE--Bvec_lb_0_rb_>,<HYDROBASE--Bvec_lb_1_rb_>,<HYDROBASE--Bvec_lb_2_rb_>}
that combines the three components into a single vector (the precise names of the scalars differ from version to version in VisIt).
- add a "Streamline" plot and the "Project" operator
- set the streamline options as shown below
- you can find the full settings in the session file in the rotor repository [2]
- the final plot should look like this: