TransferFunction.Plot.ramp(tf) or TransferFunction.Plot.ramp( tf, dt, tSpan, x0, columnLabels, defaultDiagram=Modelica_LinearSystems2.Internal.DefaultDiagramTimeResponse(), device=Modelica_LinearSystems2.Utilities.Plot.Records.Device())
This function plots the ramp response of a transfer function. It is based on timeResponse.
TransferFunction s = Modelica_LinearSystems2.TransferFunction.s(); Modelica_LinearSystems2.TransferFunction tf =(2*s^2 + 7*s + 13)/(s^3 + 6*s^2 + 17*s + 12); algorithm Modelica_LinearSystems2.TransferFunction.Plot.ramp(tf) // gives:
impulse, step, initialResponse
encapsulated function ramp import Modelica; import Modelica_LinearSystems2; import Modelica_LinearSystems2.TransferFunction; import Modelica_LinearSystems2.Utilities.Types.TimeResponse; import Modelica_LinearSystems2.Utilities.Plot; input Modelica_LinearSystems2.TransferFunction tf; input Real dt = 0 "Sample time [s]"; input Real tSpan = 0 "Simulation time span [s]"; input Modelica_LinearSystems2.Utilities.Types.TimeResponse response = Modelica_LinearSystems2.Utilities.Types.TimeResponse.Ramp "type of time response"; input Real x0[TransferFunction.Analysis.denominatorDegree(tf)] = zeros(TransferFunction.Analysis.denominatorDegree(tf)) "Initial state vector"; extends Modelica_LinearSystems2.Internal.PartialPlotFunction(defaultDiagram = Modelica_LinearSystems2.Internal.DefaultDiagramTimeResponse(heading = "Ramp response of tf = " + String(tf))); end ramp;