Skip to content

read_simserver_init_file.m

Basic Information

  USAGE: [i_init, nc, i_ip ] = read_simserver_init_file(sim_init_filename,inc_plasma,system);

  PURPOSE: Read simserver current initialization file.  Replaces code in sim_device_init

  INPUTS:

    sim_init_filename: name of initialization file
    inc_plasma: set=1 to include an initial condition for the Ip equation
    system:  toksys system model

  OUTPUTS:

    i_init: initial values of conductor currents [PF_coils, vessel, Ip]
    nc: number of total PF-coil currents
    i_ip: initial value of Ip

  RESTRICTIONS:  Returns zeros for vessel currents right now.  Could be extended in the future
    to also read and return vessel currents from the initial conditions file.

Dependencies