Versions Compared

Key

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

...

Similarly as in script for input DYON data, the input data are placed into IMAS IDS's (Interface Data Structures). The allocation of the data in the IDS's and the functions supporting it are described below.

List of the script files

main_input_get_data_from_IMAS.m

Main script DYON input saving data from IMAS to MAT file: IMAS data

main_input_put_data_to_IMAS.m

Additional script saving DYON input data in the IMAS

get_from_IMAS.m

Auxiliary script for main_input_get_data_from_IMAS.m

Input_put_to_IMAS.m

Auxiliary script for main_input_put_data_to_IMAS.m

Input_put_core_profiles.m

Function saving data to the 'core_profiles' IDS

Input_put_ec_launchers.m

Function saving data to the 'ec_lauchers' IDS

Input_put_equilibrium.m

Function saving data to the 'equilibrium' IDS

Input_put_gas_injection.m

Function saving data to the 'gas_injection' IDS

Input_put_magnetics.m

Function saving data to the 'magnetics' IDS

Input_put_em_coupling.m

Function saving data to the ' em_coupling' IDS

Input_put_wall.m

Function saving data to the 'wall' IDS

Input_put_pf_active.m

Function saving data to the 'pf_active ' IDS

Input_put_pf_passive.m

Function saving data to the 'pf_passive' IDS

Input_put_pulse_shedule.m

Function saving data to the ' pulse_shedule ' IDS

Input_put_plasma_initiation.m

Function saving data to the ' plasma_initiation ' IDS

Input_put_tf.m

Function saving data to the ' tf ' IDS



Input_get_core_profiles.m

Function recovering the saved data from the 'core_profiles' IDS

Input_get_ec_launchers.m

Function recovering the saved data from the 'ec_lauchers' IDS

Input_get_equilibrium.m

Function recovering the saved data from the 'equilibrium' IDS

Input_get_gas_injection.m

Function recovering the saved data from the 'gas_injection' IDS

Input_get_magnetics.m

Function recovering the saved data from the 'magnetics' IDS

Input_get_em_coupling.m

Function recovering the saved data from the ' em_coupling' IDS

Input_get_wall.m

Function recovering the saved data from the 'wall' IDS

Input_get_pf_active.m

Function recovering the saved data from the 'pf_active ' IDS

Input_get_pf_passive.m

Function recovering the saved data from the 'pf_passive' IDS

Input_get_pulse_shedule.m

Function recovering the saved data from the ' pulse_shedule ' IDS

Input_get_plasma_initiation.m

Function recovering the saved data from the ' plasma_initiation ' IDS


MAST_27512__2023_3_17_22_1_45_p0=1.1563mPa.mat

Example of MAT-file with DYON results (received from Kim Hyun-Tae)


Running the scripts

To launch the test scripts, do the following:

  • Enter:

...

  • module load imasenv/<IMASversion>

...

  • . Here <IMASversion> is 3.38.1/rc or higher.
  • The scripts in its present form use the IMAS database 'step'. If you are planning to use it and this database is non-existent, enter the following command to create the database:

...

  • imasdb step

...

  • .You can replace 'step' with another IMAS database name, but do not forget to create it and change the variable 'machine' in main_input_get_data_from_IMAS.m and main_input_put_data_to_IMAS.m.
  • Enter

...

  • : matlab
  • Run main_input_put_data_to_IMAS.m in order to save in IMAS the data from an available DYON input MAT-file (you can change shot, run, IDS comments etc. by changing the parameters in this script).
  • To get back the DYON input data, run test_get_from_IMAS.m.

The main files (functions main_input_put_data_to_IMAS.m ', 'input_put_to_IMAS' and main_input_get_data_from_IMAS.m, 'input_get_from_IMAS)

...

  • The script engage the function input_get_from_IMAS, which load data to MAT-file from different IDS’s defined in the body of the function via separate functions: 'input_get_core_profiles', 'input_get_equilibrium', 'input_get_gas_injection', ‘input_get_tf’, 'input_get_wall', ‘input_get_pf_active’, ‘input_get_pf_pasive’, ‘input_get_ec_launchers’, ‘input_get_pulse_shedule’, ‘input_get_plasma_initiation’, 'input_get_magnetics' and ‘input_get_em_coupling’. The function returns the 'input' structure, which is to be equivalent (after the script is complete) to the 'input' structure that was initially put to IMAS.

IDS core_profiles

input_put_core_profiles

The function load DYON data to core_profiles IDS. The quantities stored in this IDS include  prefill gas pressure with individual time. All data are stored as a single value for given time step.

Input_get_core_profiles

This function load prefill gas pressure with individual time to input.prefill.time and input.prefill.data MAT-file structure.

IDS equilibrium

input_put_equilibrium

The function load to the equilibrium IDS the DYON data: major radius of the plasma current, vertical position of the plasma current, minor radius of the plasma current, plasma elongation data, plasma cross sectional area data, plasma volume data, internal inductance data, as well as radial and vertical position of the mesh grid cells. All quantities are time dependent with a genetic time.

...