Versions Compared

Key

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

...

  1.  Introduction
  2. DYON output
    1. Files provided
    2. Running the scripts
    3. The main files (functions 'put_to_IMAS', 'get_from_IMAS' and test scripts)
    4. IDS core_profiles
    5. IDS core_sources
    6. IDS equilibrium
    7. IDS gas_injection
    8. IDS magnetics
    9. IDS radiation
    10. IDS wall
    11. Service functions
  3. DYON inputinputquit
  4. 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'.

NameTypeDescription
outputstructstructure containing the DYON output to be saved
H_massfloatmass of the H isotope (in units of the proton mass)
idxintthe data entry identifies 
commentsymbol arraycomment characterizing the data to be saved
data_sourcesymbol arraytext describing the origin of the data
imas_versionsymbol arrayIMAS major version (prepared in the 'put_to_IMAS' function)
access_layersymbol arrayIMAS 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'.

NameTypeDescription
outputstructstructure containing the DYON output recovered from IMAS
idxintthe data entry identifies 
get_timebooleanswitch on transferring the IDS time to the output time
commentsymbol arraycomment characterizing the recovered data
data_sourcesymbol arraytext describing the origin of the data
imas_versionsymbol arrayIMAS major version
access_layersymbol arrayIMAS 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. 

SourceDD indexIDS nameIDS index





































IDS equilibrium


IDS gas_injection

...