modelComparisonTFunction
Comparison of the various discretisation methods (generic Trasfer Function)
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
Description of the example
In this example are shown the step responces of a first order linear systems:
- continuous,
- discretised with BE,
- discretised with FE,
- and discretised with TU
Comparison
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Transfer Function | |||
| Real[:] | a | {-1, 1} | Numerator coefficients |
| Real[:] | b | {2, 4, 1} | Denumerator coefficients |
| Real | y_start | 0 | Initial value |
| Discretisation | |||
| Real | Ts | 0.1 | Sampling time |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | error_BE | tf.y - tf_BE.y | |
| Real | error_FE | tf.y - tf_FE.y | |
| Real | error_TU | tf.y - tf_TU.y | |
| Continuous.TransferFunction | tf | ||
| Modelica.Blocks.Sources.Step | step | ||
| Discrete.TransferFunction | tf_FE | ||
| Discrete.TransferFunction | tf_BE | ||
| Discrete.TransferFunction | tf_TU |
Revisions
- Industrial Control Systems (v 1.0.0) : April-May 2012
- List of revisions:
- 11 May 2012 (author: Marco Bonvini)
- Main Authors:
- Marco Bonvini; <bonvini@elet.polimi.it>
- Alberto Leva <leva@elet.polimi.it>
- Politecnico di Milano
- Dipartimento di Elettronica e Informazione
- Via Ponzio 34/5
- 20133 Milano - ITALIA -
- Copyright:
- Copyright © 2010-2012, Marco Bonvini and Alberto Leva.
- The IndustrialControlSystems package is free software; it can be redistributed and/or modified under the terms of the Modelica license.