trxpl: a tool to read TRANSP data and write GEQDSK equilibrium files and GS2 namelist files. written by Doug McCune (notes by Greg Hammett, April 10, 2001.) SUMMARY ******* trxpl fetches TRANSP data from a file or from an MDS+ server, and puts the equilibrium information into the XPLASMA structure. It can then write a GEQDSK format file of the equlibrium (i.e., the same format generated by EFIT). It can also read temperature and density profiles needed to generate a GS2 namelist file. It has options for amalgamation of various species and for smoothing. It can start with a GS2 template file, and update it with the proper parameters for this shot. Setup ***** /usr/ntcc/bin/trxpl setenv RPLOT_CACHE TRUE # to save cache files in home directory setenv RPLOT_CACHE /tmp/$USER/rplot_cache # to save on a scratch disk setenv TERMINAL_TYPE XTERM setenv PLOT filename # to send plots to file instead of screen setenv GETLINE_EDITOR TRUE # enable fortran/uread command line recall/editing. setenv LD_LIBRARY_PATH /usr/local/mdsplus/lib # or on the petrel* computers (where Lahey Fortran 95 is used instead of # one of the other fortran compilers available on Intel Linux systems): setenv LD_LIBRARY_PATH /usr/local/lff95/lib:/usr/local/mdsplus/lib Example run *********** trxpl f m (mds option) s birch.pppl.gov (mds server) d d jet.00 51976c11 (or:) d d nstx.00 103875x01 a (accept) time of interest: 6.5 +-dt avg: 0.1 (triangular weighted smooth from 6.4-6.6) , , , (default grids) CCW B_T ? (1 or 0) (Counter-clockwise viewing down from top) CCW I_p ? (1 or 0) (Counter-clockwise viewing down from top) verify?: y g , , , (write GEQDSK file) m (read species desnities and tmperature) various plotting, aggregating, and smoothing options. smoothing option b. eventually do: "w" (write gs2 namelists) The geqxpl program can be used to plot information in the geqdsk file. More Help ********* http://w3.pppl.gov/ntcc, click on modules library, and then uread, etc.