Simulationsbedingungen konfigurieren
Nachdem Sie in Simulink® ein Modell erstellt haben, können Sie die Simulation so konfigurieren, dass sie schnell und genau abläuft, ohne strukturelle Änderungen am Modell vornehmen zu müssen.
Der erste Schritt bei der Konfiguration Ihrer Simulation besteht darin, einen Solver auszuwählen. Standardmäßig wird mit Simulink automatisch ein Solver mit variablen Schritten ausgewählt. Im Fensterbereich Solver des Dialogfelds Konfigurationsparameter können Sie eine Feinabstimmung der Solver-Optionen vornehmen oder einen anderen Solver auswählen.
Manchmal kann sich eine Simulation verlangsamen oder ins Stocken geraten. Verwenden Sie den Solver Profiler, um Engpässe in der Simulation zu identifizieren und Empfehlungen zur Verbesserung der Leistung des Solvers zu erhalten.
Funktionen
Werkzeuge
Modelleinstellungen
Themen
Solver in Simulink
- Choose a Solver
Choose a solver based on the dynamics of the model.
- Compare Solvers
A dynamic system is simulated by computing its states at successive time steps over a specified time span, using information provided by the model. - Zero-Crossing Detection
Learn how zero-crossing events affect simulation. - Choose a Jacobian Method for an Implicit Solver
For implicit solvers, Simulink must compute the solver Jacobian, which is a submatrix of the Jacobian matrix associated with the continuous representation of a Simulink model. - Use Local Solvers in Referenced Models
Learn how local solvers work and how to configure a local solver. - Zero-Crossing Detection with Fixed-Step Simulation
Learn how zero-crossing detection affects fixed-step simulation.
Zustands-Informationen
- Save Block States and Simulation Operating Points
Learn how you can use state information logged from simulation and decide how to log states and operating points. - Use Model Operating Point for Faster Simulation Workflow
Reduce the time required to run a set of simulations by simulating from an initial operating point.
Solver Profiler
- Examine Model Dynamics Using Solver Profiler
Identify factors affecting model simulation using the Solver Profiler. - Solver Resets
The Solver Profiler logs events that cause the solver to reset its parameters because solver resets do incur computational cost. - Zero-Crossing Events
Detect zero-crossing events using Solver Profiler. - Solver Exception Events
This example simulates two identical nonlinear spring-damping systems. - Jacobian Logging and Analysis
The Solver Profiler supports Jacobian logging and analysis for implicit solvers.
Algebraische Schleifen
- Algebraic Loop Concepts
Learn how algebraic loops are created during simulation. - Identify Algebraic Loops in Your Model
If Simulink reports an algebraic loop in your model, the algebraic loop solver may be able to solve the loop. - Remove Algebraic Loops
Learn how to break undesired algebraic loops in a model. - Modeling Considerations with Algebraic Loops
Learn modeling techniques to avoid unnecessary algebraic loops.