functioninitialResponse
Initial condition response plot
Extends from Modelica_LinearSystems2.Internal.PartialPlotFunction (Interface of a plot function).
Information
Syntax
TransferFunction.Plot.initialResponse(tf) or TransferFunction.Plot.initialResponse( tf, dt, tSpan, y0, columnLabels, defaultDiagram=Modelica_LinearSystems2.Internal.DefaultDiagramTimeResponse(), device=Modelica_LinearSystems2.Utilities.Plot.Records.Device())
Description
This function plots the initial response, i.e. the zeros input response of a transfer function. It is based on timeResponse.
Example
TransferFunction s = Modelica_LinearSystems2.TransferFunction.s(); Modelica_LinearSystems2.TransferFunction tf = (s + 1)/(s^2 + 5*s + 12); Real y0=1; algorithm Modelica_LinearSystems2.TransferFunction.Plot.initialResponse(tf,y0=y0, dt=0.02, tSpan=3) // gives:
See also
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica_LinearSystems2.TransferFunction | tf | Transfer function of a system | |
| Real | dt | 0 | Sample time [s] |
| Real | tSpan | 0 | Simulation time span [s] |
| Modelica_LinearSystems2.Utilities.Types.TimeResponse | response | Modelica_LinearSystems2.Utilities.Types.TimeResponse.Initial | Type of time response |
| Real | y0 | Initial output (for initial condition plot) | |
| Plot.Records.Diagram | defaultDiagram (from PartialPlotFunction) | Default diagram layout | |
| Plot.Records.Device | device (from PartialPlotFunction) | Modelica_LinearSystems2.Utilities.Plot.Records.Device() | Properties of device where figure is shown |