SimPowerSystems | ![]() |
Set the initial states values of a model built with Power System Blockset
Syntax
powerinit('sys','look') powerinit('sys','reset') powerinit('sys','steady') powerinit('sys','set',X0) powerinit('sys','setb','StateVariableName',Value)
Description
powerinit('sys','look')
displays the current initial states for the specified system.
powerinit('sys','reset')
resets to zero the initial states of the specified system.
powerinit('sys','steady')
sets the initial states of the specified system in order to start the simulation in steady state.
powerinit('sys','set',X0)
sets the initial states values of the model sys
to the specified vector X0
. The ordering of the variables states
is given by the powerinit('sys','look')
command.
powerinit('sys','setb','StateVariableName',Value)
sets the initial state variable specified in 'StateVariableName
' to Value
. The names of the variables states
are given by the powerinit('sys','look')
command.
Example
The following commands reset to zero the initial states values of the psbfilter.mdl
demo.
This command returns the names of the states and their current values.
powerinit('psbfilter','look') Initial states for a particular case: Il_5th Harm. Filter = 0 Uc_5th Harm. Filter = 0 Il_Zsource = 0
See Also
![]() | power2sys |