Explicit solver used in model containing Physical Networks blocks
Option to issue warning or error if model uses explicit solver for simulation
Model Configuration Pane: Simscape
Description
When a model contains Simscape™ blocks and you choose an explicit solver, such as ode45
,
simulation performance may not be optimal. Implicit solvers are better for most physical
simulations. For more information about implicit solvers and physical systems, see Important Concepts and Choices in Physical Simulation.
By default, when you use an explicit solver in a model containing Simscape blocks, the system issues a warning to alert you to a potential problem. Use this configuration parameter to turn off this warning or to change it to an error message.
Settings
warning
(default) | error
| none
Specify whether or not the system issues a warning or error upon simulation when the model uses an explicit solver.
warning
Makes the system issue a warning upon simulation if the model uses an explicit solver.
The
daessc
variable-step Simulink® solver provides algorithms specifically designed to simulate differential algebraic equations (DAEs) arising from modeling physical systems. However, it is possible to choose any variable-step or fixed-step solver for models containing Simscape blocks. Other implicit solvers, such asode23t
,ode15s
, andode14x
, are a better choice for a typical model. To alert you to a potential issue, the system issues a warning when you use an explicit solver in a model containing Simscape blocks.error
Makes the system issue an error upon simulation if the model uses an explicit solver.
If your model is stiff, and the use of explicit solvers undesirable, you may choose to select this option to avoid troubleshooting errors in the future.
none
Turns off issuing a warning or error upon simulation with explicit solver.
For models that are not stiff, explicit solvers can be effective, often taking fewer timesteps than implicit solvers. If you work with such models and use explicit solvers, select this option to turn off the warning upon simulation.
Recommended Settings
Application | Setting |
---|---|
Debugging | No Impact |
Traceability | No Impact |
Efficiency | No Impact |
Safety precaution | No Impact |
Programmatic Use
Parameter:
ExplicitSolverDiagnosticOptions |
Type: character vector | string scalar |
Value:
'warning' | 'error' |
'none' |
Default:
'warning' |
Version History
Introduced in R2008b