power_initstates
Compute and modify initial values of voltages and currents of model
Syntax
sps = power_initstates('sys')
Description
sps = power_initstates('sys')
returns the initial values of the
electrical state variables (inductor currents and capacitor voltages) of a model, and
modifies the initial electrical states to start the simulation from any initial
conditions. It returns a structure with these fields:
Field | Description |
---|---|
circuit | The name of the model |
States | The names of the electrical state variables |
x0 | The current initial states vector used for the simulation of the model |
x0_steady | The computed initial states that ensure a steady-state simulation |
x0_blocks | The default initial states values defined in blocks |
DependentStates | The names of the dependent states, if any |
x0DependentStates | Initial state values of dependent states |
UseInitialStatesFrom | The initial state for the simulation, expressed as a character
vector (' If set to
|