Skip to content

connect_design_systems.m

Basic Information

  SYNTAX: systot = connect_design_systems(connect_sys_in)

  PURPOSE: Connect individual design system components into a single system.

  INPUT:
     connect_sys_in = structure
        use_disturb = Disturbance input flag (1:Use 0:Do not use)
        tok_model = Model of tokamak system (output of build_XX_sys)
        plasma_sys = Tokamak syetem state-space model
        ps_sys = Power system state-space model (optional)
        filter_sys  = Filter system state-sapce model (optional)
        outputs = Connected system output names (optional)
                   [If not defined, all PS, plasma, & filter outputs passed]
        post_proc = Statements to evaluate at end of function (optional)

  OUTPUT:
     systot = State space model of combined system

  METHOD:  Connections are determined using InputName and OutputName
           properties of the state-space models. Names must be a
           case insensitive match to each other to be properly
           connected. Duplicate output names in two systems will
           only match the first name in the order (PS,pl,filt), so
           avoid duplicate output names to remove any ambiguity,

Dependencies