...
- Introduction
- DYON output
- Files provided
- Running the scripts
- The main files (functions 'put_to_IMAS', 'get_from_IMAS' and test scripts)
- IDS core_profiles
- IDS core_sources
- IDS equilibrium
- IDS gas_injection
- IDS magnetics
- IDS radiation
- IDS wall
- Service functions
- DYON inputinputquit
- To be done
Introduction
This page contains a description of MATLAB scripts supporting the storage of DYON input and output data files in IMAS.
...
Here ion label and ion index are the label and the index of the species in the core_profiles.profiles1d.ion AoS (array of structures), respectively.
For all ions except for H, several ion states (charge states) are defined, the index of the 'state' array element being equal to the ion charge number.
The following functions support I/O with the 'core_profiles' IDS:
...
Write a suitable part of the 'output' structure to the 'core_profiles' IDS.
This function invokes the functions 'arrange_ion_densities' and 'arrange_neutral_density'.
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) |
idx | int | the data entry identifies |
comment | symbol array | comment characterizing the data to be saved |
data_source | symbol array | text describing the origin of the data |
imas_version | symbol array | IMAS major version (prepared in the 'put_to_IMAS' function) |
access_layer | symbol array | IMAS access layer version used when writing the IDS (prepared in the 'put_to_IMAS' function) |
...
Add the data from the 'core_profiles' IDS to the 'output' structure.
This function invokes the function 'extract_ion_densities'.
Name | Type | Description |
---|---|---|
output | struct | structure containing the DYON output recovered from IMAS |
idx | int | the data entry identifies |
get_time | boolean | switch on transferring the IDS time to the output time |
comment | symbol array | comment characterizing the recovered data |
data_source | symbol array | text describing the origin of the data |
imas_version | symbol array | IMAS major version |
access_layer | symbol array | IMAS access layer version used when writing the IDS |
IDS core_sources
The source densities are stored as 1D-profiles on the formal grid consisting of a single point although they are represented by single values.
Source | DD index | IDS name | IDS index |
---|---|---|---|
IDS equilibrium
IDS gas_injection
...