Output Files ============ .. _LockFile: The Lock File: lock.dat ----------------------- This file is created at the beginning of a GENGA simulation. The behaviour depends on the :literal:`IgnoreLockFile` in the :ref:`define.h` file. - | If it is set to 0, then GENGA can not be started again from time step 0. | The lock file prevents that output files are overwritten and lost. | GENGA can only be started again when the lock.dat file is deleted. - | If it is set to 1, then GENGA can always be started again from time step 0, and all output files are overwritten. Restarting GENGA from a time step > 0 is not affected by the lock file. The Master File: master.out --------------------------- The master file contains information about the used hardware and simulation progress. If an error occurs then the master file contains more details about that. The master file is not deleted at a new GENGA start. The information file: info.dat ------------------------------------ This file contains general information about the used parameters and hardware. At the beginning, the file lists all used parameters, the version number and driver information. After the parameters, the file lists the timings of the kernel tuning routine (see :ref:`tuning`). At each energy output interval the file gives information of the number of close encounter. - Precheck-pairs: number of close encounter candidates found from the prechecker (see :ref:`precheck`). - CE: total number of detected close encounter pairs (see :ref:`precheck`). - groups: number of separate close encounter groups; followed by the number of close encounter groups of size 2,4,8,16,32,64,128,256,512,1024,2048 ... If an error occurs during the simulation, then in this File is written the last coordinates-Output and an information about the error. .. _tuningFile: The tuningParameters.dat file ----------------------------- See :ref:`tuning`. If the kernel self tuning is enabled, then this file is created, containing the values of the kernel parameters. If the kernel self tuning is disabled, then kernel parameters can be read from this file. The later option can be useful for performance measurement. .. _OutFile: The Coordinate Output Files: Out.dat ------------------------------------------ This file contains the heliocentric positions and velocities, the spin and some information about the orbit and close encounters. At the :literal:`coordinate output interval`, set in the :ref:`param.dat` file, a new output is written. The output file format can be set to text-format or to binary-format with the :literal:`Use output binary files` in the :ref:`param.dat` file. The number of digits in the output file names can be changed with the :literal:`def_NFileNameDigits` parameter in the :ref:`define.h` file. .. _OutputFileFormat: Output File Format ^^^^^^^^^^^^^^^^^^ | The values of the output files depend on the :literal:`Output file Format`, set in the :ref:`param.dat` file. | Possible options are: (default = t i m r x y z vx vy vz Sx Sy Sz amin amax emin emax aec aecT encc test) - t: time, in years. - i: index of the body. - m: mass in Solar masses. - r: physical radius in AU. - x: x-position in AU (heliocentric). - y: y-position in AU (heliocentric). - z: z-position in AU (heliocentric). - vx: x-velocity in AU/day * 0.0172020989 (heliocentric) (See :ref:`Units`). - vy: y-velocity in AU/day * 0.0172020989 (heliocentric) (See :ref:`Units`). - vz: z-velocity in AU/day * 0.0172020989 (heliocentric) (See :ref:`Units`). - Sx: x-spin in Solar masses AU^2 / day * 0.0172020989. (See :ref:`Units`). - Sy: y-spin in Solar masses AU^2 / day * 0.0172020989. (See :ref:`Units`). - Sz: z-spin in Solar masses AU^2 / day * 0.0172020989. (See :ref:`Units`). - | amin: minimal value of semi major axis range for aecount (See :ref:`aeLimits`). | Optional. - | amax: maximal value of semi major axis range for aecount (See :ref:`aeLimits`). | Optional. - | emin: minimal value of eccentricity range for aecount (See :ref:`aeLimits`). | Optional. - | emax: maximal value of eccentricity range for aecount (See :ref:`aeLimits`). | Optional. - | k2: potential Love number of degree 2, dimensionless. | (needed when given as initial conditions) - | k2f: fluid Love number of degree 2, dimensionless. | (needed when given as initial conditions) - | tau: time lag in day / 0.0172020989 (See :ref:`Units`). | (needed when given as initial conditions) - | Ic: moment of inertia, dimensionless (See :ref:`Units`). | (needed when given as initial conditions) - | aec: aecount is the number of time steps since the last coordinate output time in which the particles semi major axis and eccentricity where in the aecount box limits (see :ref:`aeLimits`). | Optional. - | aecT, aecountT is the integrated value of all previous aecount values. | Optional. - | encc: enccountT is the number of time steps since the simulation start in which the particle was in a close encounter with another (massive) particle. | Optional. - | Rc: Critical radius for close encounters, rcrit, in AU | Optional. - | test: value stored in the test arrays. | Optional. When the :literal:`Use output binary files` option is used, then the files contain the same data as described before with the following types: - t: double, 64bit - i: int, 32bit - m: double, 64bit - r: double, 64bit - x: double, 64bit - y: double, 64bit - z: double, 64bit - vx: double, 64bit - vy: double, 64bit - vz: double, 64bit - Sx: double, 64bit - Sy: double, 64bit - Sz: double, 64bit - amin: float, 32bit - amax: float, 32bit - emin: float, 32bit - emax: float, 32bit - k2: double, 64bit - k2f: double, 64bit - tau: double, 64bit - Ic: double, 64bit - aec: float, 32bit - aecT: float, 32bit - encc: unsigned long long, 64bit - Rc: double, 64bit - test: double, 64bit The structure of the coordinate output files depends on the parameters :literal:`FormatS`, :literal:`FormatT`, :literal:`FormatP` and :literal:`FormatO`. Here we describe the possible choices: The tools :ref:`P1T0_to_P0T1` and :ref:`P0T1_to_P1T0` can be used to convert output files between different formats. FormatS = 0, FormatT = 0, FormatP = 1, FormatO = 0: Out_