Power System Blockset
  Go to block:
    Search    Help Desk 
Power2sys    See Also

Analyze an electric circuit built with the Power System Blockset

Syntax

Description

The Power2sys block is used to computes the equivalent state-space model of an electrical network built with the Power System Blockset. power2sys extracts the linear part of the simwin system and builds the corresponding state-space model. State variables are the inductor currents and capacitor voltages. Nonlinear elements are simulated by current sources (state-space model inputs) driven by the voltages (state-space model outputs) across the nonlinear elements.

x0 is a vector containing the initial conditions of the state variables listed in state_var.

state_var is a string matrix containing names of the state variables (x vector). Each line of state_var begins with a prefix Uc_ for capacitor voltages or Il_ for inductor currents, followed by the name of the block in which the element (C or L) is found. Inductor current direction and capacitor voltages polarities are defined by the input and output of the block. The following conventions are used:

A suffix is added to the line for blocks containing more than two inductances or capacitors: for example, the three winding Linear Transformer block will produce three state_var lines, one for each leakage inductance, with the suffix coil:x where x is the winding number of the transformer.

inputs is a string matrix containing names of the inputs of the system (vector u). Each line of inputs begins with a prefix U_ for voltage sources or I_ for current sources, followed by the name of the source block.

The following conventions are used for inputs:

A suffix may be added to the input for blocks containing more than one source. For example, the Simplified Alternator block produces two current inputs with suffixes AB and BC.

outputs is a string matrix containing names of the outputs of the state-space system (vector y). Each line of outputs begins with a prefix U_ for voltage outputs or I_ for current outputs, followed by the name of the block which produces the output. Sign conventions are indicated by the polarities of the voltage measurement and current measurement blocks.

uss, xss, and yss are complex matrices containing the steady-state values (phasors) of inputs, states and outputs. If voltage and current sources all generate the same frequency, these are column vectors. If sources with different frequencies are used, each column of the matrices corresponds to a frequency contained in the freqyss vector.

freqyss is a column vector containing the n_freq input source frequencies ordered by increasing values.

Hlin is the complex transfer impedance three-dimension array (n_output by n_input by n_freq) of the linear system corresponding to the frequencies contained in the freqyss vector. For a particular frequency, Hlin is defined by

Netlist.    When called with a second argument 'n', powers2sys generates a netlist stored in a file, simwin.net. This file contains the node numbers automatically generated by power2sys, as well as parameter values of all linear elements. See formats in the circ2ss reference section.

Example

Obtain the state-space matrices and steady-state voltages and currents for the following circuit.

First open the psbnetsim2.mdl example then execute power2sys:

Initial values of states:

Steady-state phasor values of input sources, states, and outputs

The system contains only one source frequency:

Transfer function matrix:

There are two state variables in this circuit. Note that the breaker block is a nonlinear element, which is represented by a current source (second input) driven by the voltage across the breaker (first output).

See Also

Circ2ss

[ Previous | Help Desk | Next ]