...
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:
Name | Type | Description |
---|---|---|
output | struct | structure containing the DYON output to be saved |
H_mass | float | mass of the H isotope (in units of the proton mass) |
machine | symbol array | name of the IMAS database (usually a tokamak name) |
shot | int | shot number |
run | int | run number |
comment | symbol array | comment characterizing the saved data (put into each IDS) |
data_source | symbol 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:
Name | Type | Description |
---|---|---|
machine | symbol array | name of the IMAS database (usually a tokamak name) |
shot | int | shot number |
run | int | run number |
IDS core_profiles
IDS core_sources
...