This function linearizes the equations of the example system and extracts the eigenvalues from the state matrix A.
The main goal of this function is to identify the unstable eigenvalues, or modes, which are going to be the focus of the next text system, in Example 2.
function modal_analysis extends Modelica.Icons.Function; import Modelica_LinearSystems2.StateSpace; import Modelica_LinearSystems2.TransferFunction; input String pathToPlantModel = "OpenIPSL.Examples.Tutorial.Example_1.Example_1" "Model to be linearized"; output Modelica_LinearSystems2.StateSpace ss "Object with ABCD matrices of linearized model"; end modal_analysis;