Versions Compared

Key

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

...

function [density, ion_found] = extract_ion_densities (profiles, Z)

Extracts Extract densities of all charge states of an ion species from the core_profiles IDS.

NameTypeDescription
density
struct?????structure containing the emissivity and properties of the neutral species
1D float arraythe array elements with the numbers 1, ..., Z hold the densities of the corresponding charge states; the element Z+1 hold the neutral density
ion_foundboolean
label of the chemical elementZ
equals to false if the ion with the given Z is missing
profilesstructtime slice of the AoS core_profiles.profiles_1d
????ion mass number
Z
floatcharge number of the nucleus


function [AOS_index] = find_source (sources, dictionary_index)

Finds Find location of the element with a given data dictionary index in an AOS (in particular, the source in core_sources.source and the process in radiation.process).

NameTypeDescription
AOS_indexintindex of the required element in the array
sourcesstructAoS where the search is performed
dictionary_indexintDD index of the required element


function index = find_species (species_list, label)

Finds Find location of the species element with a given label in AoS. The function is used to find the required spruttering coefficient in the 'wall' IDS. The label is the chemical element label; it is hold in the 'label' leaf of each AoS element.

NameTypeDescription
indexintindex of the required element in the array
species_liststructAoS where the search is performed
labelsymbol arraylabel of the required element


 DYON input

Description of the scripts processing the DYON input (to be done).

...