| Contents | Index |
Utilities
Each physical network represented by a connected Simscape block diagram requires solver settings information for simulation. The Solver Configuration block specifies the solver parameters that your model needs before you can begin simulation.
Each topologically distinct Simscape block diagram requires exactly one Solver Configuration block to be connected to it.
The block has one conserving port. You can add this block anywhere on a physical network circuit by creating a branching point and connecting it to the only port of the Solver Configuration block.

When this box is selected, the solver attempts to find the steady state that would result if the inputs to the system were held constant for a sufficiently large time, starting from the initial state obtained from the initial conditions computation. For more information, see Initial Conditions Computation. Simulation then starts from this steady state.
This parameter affects the nonlinear solver used for computing initial conditions and for transient initialization. It determines how accurately the algebraic constraints are to be satisfied at the beginning of simulation and after every discrete event (for example, a discontinuity resulting from a valve opening, a hard stop, and so on). Decrease the parameter value (that is, tighten tolerance) to obtain a more reliable time simulation. Increase the parameter value (that is, relax the tolerance) if solving for initial conditions failed to converge, or to reduce the computation time.
The default value is 1e-9, which is applicable to most cases.
Lets you use a sample-based local solver with a sample time specified by the Sample time parameter. In sample-based simulation, all the Physical Network states, which are otherwise continuous, become represented to Simulink as discrete states. The solver updates the states once per time step. This option is especially useful for generated code or hardware-in-the-loop (HIL) simulations.
Select the solver type used for updating the states: Backward Euler or Trapezoidal Rule. The Use local solver check box must be selected. The default is Backward Euler.
Specify the sample time for the local solver. The Use local solver check box must be selected. The sample time must be positive. The default is .001 s.
Lets you perform transient initialization at a fixed computational cost.
If you select this check box, you can specify the maximum number of nonlinear and mode iterations for transient initialization. If the system does not converge upon reaching these numbers, it ignores the failure and goes to the next step.
If you clear the check box, the system uses a more robust and time-consuming algorithm, and errors out if it fails to reach convergence at the time of transient initialization.
Specify the maximum number of Newton iterations at the time of transient initialization. The Use fixed-cost runtime consistency iterations check box must be selected. The default number is 3.
Specify the maximum number of mode iterations at the time of transient initialization. The Use fixed-cost runtime consistency iterations check box must be selected. The default number is 2.
Only one major mode update per step is performed when using local solvers, therefore this parameter is not available if the Use local solver check box is selected.
Specifies how the solver treats matrices. The parameter can have one of two values: Sparse or Full. The default value of the parameter is Sparse.
Your choice of this parameter value, Sparse or Full, is implemented in both model simulation and code generated from your model.
Specify the maximum memory budget, in kB, allowed for processing delays when simulating models that contain either blocks from the Delays library, or custom blocks using the delay Simscape language construct. The purpose of this parameter is to protect against excessive memory swapping. If this budget is exceeded, simulation errors out. You can adjust this value based on your available memory resources. The default number is 1024 kB.
In Model Simulation, see:

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |