Versions Compared

Key

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

...

  • deallocate_equilibrium_data
    Deallocate all components of the structure.
  • initiate_equilibrium_data_for_input
    Read the part of the command file that controls saving the EIRENE data to the equilibrium IDS.
  • collect_data_for_equilibrium_input
    Read the EIRENE input data intended for the equilibrium IDS from files,
  • transform_equilibrium_for_ids
    Transform the magnetic field data to the form suitable for the equilibrium IDS.
  • save_input_to_equilibrium

  • fetch_input_from_equilibrium

  • get_quantities_from_equilibrium

  • transform_equilibrium_for_eirene

  • write_input_data_from_equilibrium_ids

...

Deallocate all components of the structure.

Argument

Type

Intent

Description

all_data

type(equilibrium_set)

inout

structure to be deallocated


function initiate_equilibrium_data_for_input (io_unit) result (equilibrium_files)

Read the part of the command file that controls saving the EIRENE data to the equilibrium IDS.

Argument

Type

Intent

Description

equilibrium_files

type(equilibrium_file_set)

result

structure holding the file names obtained from the command file

io_unitintegerinindex of the I/O unit attached to the command file


function collect_data_for_equilibrium_input (equilibrium_files) result (equilibrium_data)

Read the EIRENE input data intended for the equilibrium IDS from files. 

Uses the subroutine read_quantity_from_file (module eirene_data_io).

Argument

Type

Intent

Description

equilibrium_data

type(equilibrium_data_set)

result

structure that accepts the data read from the files

equilibrium_filestype(equilibrium_file_set)instructure that holds the file names


subroutine transform_equilibrium_for_ids (equilibrium_data)

Transform the magnetic field data to the form suitable for the equilibrium IDS. On entry, only a part of the 'equilibrium_data' is filled; the subroutine fills the rest.

The input files contain b_x, b_y, b_z (b is the mag. field unit vector), and B_total. The equilibrium IDS accepts B_R, B_Z, B_phi. Here x=R, y=Z (vertical), z=phi (toroidal).

Argument

Type

Intent

Description

equilibrium_data

type(equilibrium_data_set)

inout

structure that holds all magnetic field data



???????????????

Module global_parameters

...