Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The main files (functions 'put_to_IMAS', 'get_from_IMAS' and test scripts)

The file script test_put_to_IMAS.m loads a MAT-file containing the DYON results (the name of the file is defined in the script). It is assumed that there is a structure with the name 'output' among the variables loaded from the MAT-file and that this structure holds all the data that must be saved.

The script then defines the rest of arguments of the function 'put_to_IMAS' and invokes it. The dummy arguments of this function are as follows:

NameTypeDescription
outputstructstructure containing the DYON output to be saved
H_massfloatmass of the H isotope (in units of the proton mass)
machinesymbol arrayname of the IMAS database (usually a tokamak name)
shotintshot number
runintrun number
commentsymbol arraycomment characterizing the saved data (put into each IDS)
data_sourcesymbol array

text describing the origin of the data (put into each IDS)

The function creates an IMAS data entry for the given 'shot' and 'run' parameters (note that the database with the required name must exist; otherwise, an error is raised). Then it invokes several functions that put data to separate IDS's ('put_core_profiles', 'put_core_sources', 'put_equilibrium', 'put_gas_injection', 'put_magnetics', 'put_wall', and 'put_radiation') and closes the database.

The fuction returns ????

The file script test_get_from_IMAS.m ?????defines the input parameters of the function get_from_IMAS and invokes it. The dummy arguments of this function are as follows:

NameTypeDescription
machinesymbol arrayname of the IMAS database (usually a tokamak name)
shotintshot number
runintrun number


IDS core_profiles

IDS core_sources

...