Description of the data format of GENE output
There are two different output files. The nrg
and the kin file. The first contains the
timetrace information, such as density, temperatures and the transport
fluxes, all spatially averaged. As the information amount is low, a
lot of timesteps can be written.
The second file, the kin file (there are as many of these files as
there are species, for the electrons called kine and the ions kini
file) contains at only some timesteps (typically all 500-2000) ten 3D
fields of plasma quantities. These files become rather big.
The entries in this file for each timestep are written in ASCII
sequentially. One entry looks like
2.4862E+01 4.4911E+00 2.1926E+01 1.2346E+02 1.8177E+00 1.1874E-02 1.2012E+01 -3.4358E-02
3.5781E+01 1.7368E+02 2.3356E+01 1.2562E+01 1.8177E+00 1.1874E-02 2.7023E+00 2.4421E-02
The first line contains the time, at which the data has been written
out. Then there follow as many lines as species considered in the
run. In the sample case there are two lines, the first for the
electrons, the second for the ions.
The columns does have the meaning
All quantities are spatially averaged over the full simulation volume.
In contrast to the nrg file, the kin files are binary files. All
entries consist of 8-byte floating point numbers. All timesteps are
written sequentially and each entry consists of the time and ten 3D
fields. The fields itself are written perpendicular plane ordered. The
dimensions of one perpendicular plane are Nx+2Nxb times Ny+2*Nyb where
Nx and Ny are the number of the inner points and Nxb and Nyb the
number of halo boundary points on each side. In parallel direction
there are Nz+2Nzb planes. For the two-dimensional planes the x-index
is running fastest.
The fields are
- electrostatic potential phi
- electromagnetic potential A_par
- density or density of passing particles
- parallel temperature or parallel temperature of the passing
- perpendicular temperature, T_perp
- parallel flux of parallel heat, q_par,par
- parallel flux of perpendicular heat, q_par,perp
- parallel fluid velocity, u_par
- density of the trapped particles
- parallel temperature of the trapped particles
Sample output files
The result of one run is shown here. It is calculated for a typical
case of trapped-electron mode driven turbulence. You can find the
files. The runparameters can be found in the par_827 file,
which will be read by the IDL files of the following section.
IDL script for reading the kin file
There are three small IDL subroutines which reads in one timestep out of the
In the new version of the code (GENE 10), there is an additional file
written to the output, which contains all of the information which is
in the par file and some more information. The main reason for this
new file is that it is now better readable and extendible. The new
file is called parnew and contains all information in the form of
It can be read with the new
read_parnew_file.pro IDL script.
sets a common block for the fields and some more run variables.
reads in the par file, which contains the information of the
parameters used for the run.
gets on snapshot out of the kin file into the named variables in the
common block set up with globale_variablen.pro.
Zurück zur Hauptseite