MATLAB: How to obtain steady state results for a model created in Simscape 3.2 (R2009b)

Simscape

I would like to obtain steady state results for a Simscape model, and view how these steady state conditions vary with parameter changes. What are my options for doing this?

Best Answer

There are three primary options for finding the steady state:
1) Provide a constant input and simulate long enough for the system to acheive steady state. Record the final state. Repeat for each unique set of parameter values.
2) Provide a constant input. Check the 'Start simulation from steady state' box in the Solver Configuration block to invoke the Simscape steady state solver. This solver efficiently calculates steady state conditions for the system before simulation begins. Run the simulation with a time span of [0 0]. Record the state. Repeat for each unique set of parameter values.
3) For some systems it is possible to remove energy storage elements from the system, and then provide an input to the system that sweeps through the desired input values (such as a ramp). When this approach is taken only one simulation is required.
Each of these techniques is illustrated for a simple hydraulic system in the file FindSteadyState.m, which calls mdl1.mdl, mdl2,mdl, and mdl3.mdl.