scbc5
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
scbc5 [2015/09/16 09:09] – [Making movies] simonw7 | scbc5 [2022/07/21 06:59] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Post-Processing ===== | ||
+ | |||
+ | There are now a vast array of tools are available for examining data from simulations. More recently due to the development of predictive capabilities for codes, the requirements for post-processing are evolving to derive parameters that are akin to experimental measurements for direct comparison, such are called ' | ||
+ | |||
+ | ====Intro to post processing==== | ||
+ | |||
+ | {{http:// | ||
+ | |||
+ | * Post-processing using a scripting language (like Matlab, Octave or IDL) | ||
+ | |||
+ | e.g. ITER simulation post-processing with MATLAB: | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | * Post-processing using visualization tools | ||
+ | |||
+ | e.g. ITER simulation post-processing with Paraview: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | |||
+ | ====Scripting Languages==== | ||
+ | |||
+ | Scripted processing of the data files provides a number of direct benefits: 1) Matlab/ | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | {{: | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | Tarball of Matlab routines also runs with Octave (which is opensource). | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | ===Running an octave script=== | ||
+ | |||
+ | Invoke Octave with: | ||
+ | |||
+ | octave | ||
+ | | ||
+ | to load the script, just type filename into the octave commandline: | ||
+ | |||
+ | octave: | ||
+ | | ||
+ | for a file named example.m | ||
+ | |||
+ | |||
+ | |||
+ | ====Visualization Packages - Manuals/ | ||
+ | |||
+ | GUI-based visualization tools are very powerful for graphically manupulating large datasets without needing to script. | ||
+ | |||
+ | The main tools we use are: VISIT and ParaView. | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[ http:// | ||
+ | |||
+ | //2016 Bootcamp: Sections// | ||
+ | * 1 | ||
+ | * < | ||
+ | * < | ||
+ | * 1.3 | ||
+ | * < | ||
+ | * 2.1 | ||
+ | * 2.2 | ||
+ | * 2.3 | ||
+ | * 2.4 note especially Clip - submenus, not so much | ||
+ | * < | ||
+ | * 2.6 perhaps come back to if there' | ||
+ | * < | ||
+ | * 2.8 just the first paragraph and accompanying pictures | ||
+ | * 2.9 //we actually don't change the color scale very often// | ||
+ | * 2.10 optional | ||
+ | * 2.11 can skip to exercise 2.25 if time is getting short | ||
+ | * < | ||
+ | * < | ||
+ | |||
+ | ====Common Data Formats==== | ||
+ | |||
+ | Primarily the data formats that we use are VTK, and we convert for example, NIMROD dump files using a python script to VTK format using a routine written by Brian Nelson at the University of Washington. | ||
+ | |||
+ | Download {{: | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | ====Synthetic Diagnostics==== | ||
+ | |||
+ | In fusion devices, there are a range of standard diagnostics (please take a look at the diagnostics that we can build [[http:// | ||
+ | |||
+ | ==Magnetics== | ||
+ | B-dot coils (B), rogowskis (I, J), | ||
+ | |||
+ | ==Electrostatics== | ||
+ | Langmuir probes (V, v, T), Retarding Grid Energy Analysers (T) | ||
+ | |||
+ | ==Refractive index== | ||
+ | Interferometers (< | ||
+ | |||
+ | ==Scattering== | ||
+ | Thomson (T(r), n(r)) | ||
+ | |||
+ | ==Radiation== | ||
+ | Bolometers (P_rad), spectrometers (P_rad), scintillators, | ||
+ | |||
+ | ====Making movies==== | ||
+ | |||
+ | First convert the .eps files to .jpg files (if you are using the matlab scripts) using ImageMagick | ||
+ | |||
+ | $convert | ||
+ | |||
+ | Make movies use mencoder: | ||
+ | |||
+ | $mencoder mf://*.jpg -ovc lavc -lavcopts vcodec=mpeg4: | ||
+ | |||
+ | View movies use VLC (best done locally i.e. not on control - scp the output.avi file from your control account to your terminal): | ||
+ | |||
+ | $vlc output.avi | ||
+ | |||
+ | To transfer files to your local terminal do: | ||
+ | |||
+ | $scp -P 26 username@10.1.10.11: | ||
+ | | ||
scbc5.txt · Last modified: 2022/07/21 06:59 by 127.0.0.1