...
The quantities stored in this IDS include electron and ion temperatures, densities of electrons, several ion species and several neutral species, loop voltage, and plasma current. Although all these quantities are represented by single values, most of them are stored as 1D-profiles on the formal grid consisting of a single point. When the ion and neutral densities are recovered from the IDS, the species are selected in the array of structures by their labels (not by their places in the array). This is done to permit more flexibility if the set of the ions simulated by the code changes. At present, the storage of ion quantities in the IDS is organized as follows:
Element | Ion label | Ion index | Neutral label | Neutral index |
---|---|---|---|---|
H | H | 1 | - | - |
Be | Be | 2 | Be0 | 1 |
C | C | 3 | C0 | 2 |
N | N | 4 | N0 | 3 |
O | O | 5 | O0 | 4 |
He | He | 6 | He0 | 5 |
Ne | Ne | 7 | Ne0 | 6 |
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; 'neutral label' and 'neutral index' are the label and the index of the species in the core_profiles.profiles1d.neutral 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.
...
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) |
function [output, comment, data_source, imas_version, access_layer] = get_core_profiles (output, idx, get_time)
...
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.
When the data are recovered from the IDS, the sources are sought for in the array of structures by their DD indices (not by their places in the array). This is done to permit more flexibility if the set of the sources calculated by the code changes. At present, the storage of sources in the IDS is organized as follows:
Source | DD index | IDS name | IDS index |
---|---|---|---|
IDS equilibrium
IDS gas_injection
...