functionrootLocus
Plot root locus of nonlinear Modelica model by linearizing the model for variations of one model parameter
Information
Syntax
Plot.rootLocus(modelName, t_linearize, modelParam, simulationSetup, diagram)
Description
This function examines a root locus analysis of a selected Modelica model over
variation of a certain system parameter.
Note, only first parameter modelParam[1] is considered for the analysis.
The parameter is varied equidistantly from minimum to maximum value.
Example
Calling the function
Utilities.Plot.rootLocus(
modelName = "Modelica.Mechanics.Rotational.Examples.First",
t_linearize = 0,
modelParam={
Modelica_LinearSystems2.Records.ParameterVariation(
Name="Jload",
Min=1,
Max=6,
nVar=10,
Unit="kg.m2")});
yields following diagram

Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | modelName | Name of the Modelica model | |
| Modelica.Units.SI.Time | t_linearize | 0 | Simulate until t_linearize and then linearize |
| Modelica_LinearSystems2.WorkInProgress.RootLocusOld.ParameterVariation[:] | modelParam | Model parameter to be varied | |
| Modelica_LinearSystems2.Records.SimulationOptionsForLinearization | simulationSetup | Modelica_LinearSystems2.Records.SimulationOptionsForLinearization() | Simulation options it t_linearize > 0 |
| Modelica_LinearSystems2.WorkInProgress.RootLocusOld.RootLocusDiagramOld | diagram | Diagram properties of the root locus |