modelBasic

Comparison of the basic continuous and discrete time blocks

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

Description of the example

In this example are shown the step responces of various basic linear systems:

  • integrator,
  • first order,
  • lead lag,
  • and complex poles

For each continuous time system there is its discretised version. It is possible to modify the discretisation methods
as well the sampling time in order to see the changes.

Continuous time


Discrete time (Forward Euler)

Parameters

TypeNameDefaultDescription
Integrator
Realmu_int0.04Integrating process gain
Realy_start_int1Integrating process initial condition
First Order
Realmu_FO2First order process gain
Realtau_FO3First order time constant
Realy_start_FO0initial condition
Lead Lag
Realmu_LL2Lead Lag process gain
Realy_start_LL0Lead Lag initial condition
RealT1_LL2Lead Lag time constant of the zero
RealT2_LL3Lead Lag time constant of the pole
Complex poles
Realmu_cpx2Complex poles process gain
Realomegan_cpx1Complex poles natural frequency
Realxi_cpx0.4Complex poles dumping factor
Realy_start_cpx0Complex poles initial value
Realdy_start_cpx0Complex poles initial slope
Discretisation
RealTs0.5Sampling time
IndustrialControlSystems.LinearSystems.Discrete.Types.discrMethodmethodIndustrialControlSystems.LinearSystems.Discrete.Types.discrMethod.FEMethod

Components

TypeNameDefaultDescription
Continuous.Integratorint
Discrete.Integratorint_dig
Continuous.FirstOrderfO
Discrete.FirstOrderfO_dig
Continuous.LeadLaglLag
Discrete.LeadLaglLag_dig
Modelica.Blocks.Sources.StepstepSignal
Continuous.ComplexPolescomplexPoles
Discrete.ComplexPolescomplexPoles_dig

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.