Last change
on this file since 886 was
354,
checked in by Argimiro Resende Secchi, 16 years ago
|
Fixing more wiki notation.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Id
|
File size:
1.4 KB
|
Rev | Line | |
---|
[74] | 1 | #*------------------------------------------------------------------- |
---|
| 2 | * EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC. |
---|
| 3 | * |
---|
| 4 | * This LIBRARY is free software; you can distribute it and/or modify |
---|
| 5 | * it under the therms of the ALSOC FREE LICENSE as available at |
---|
| 6 | * http://www.enq.ufrgs.br/alsoc. |
---|
| 7 | * |
---|
| 8 | * EMSO Copyright (C) 2004 - 2007 ALSOC, original code |
---|
| 9 | * from http://www.rps.eng.br Copyright (C) 2002-2004. |
---|
| 10 | * All rights reserved. |
---|
| 11 | * |
---|
| 12 | * EMSO is distributed under the therms of the ALSOC LICENSE as |
---|
| 13 | * available at http://www.enq.ufrgs.br/alsoc. |
---|
[1] | 14 | *----------------------------------------------------------------------- |
---|
| 15 | * Author: Tiago Osório |
---|
| 16 | * $Id: lead_lag.mso 354 2007-08-30 17:17:16Z arge $ |
---|
| 17 | *---------------------------------------------------------------------*# |
---|
| 18 | |
---|
| 19 | using "types"; |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | Model Lead_lag |
---|
| 23 | |
---|
[291] | 24 | ATTRIBUTES |
---|
| 25 | Pallete = true; |
---|
[306] | 26 | Icon = "icon/Lead_Lag"; |
---|
[291] | 27 | Brief = "Model Lead lag."; |
---|
| 28 | Info = |
---|
[354] | 29 | "== Inputs == |
---|
| 30 | * One input signal. |
---|
[291] | 31 | |
---|
[354] | 32 | == Outputs == |
---|
| 33 | * One output signal. |
---|
| 34 | "; |
---|
[291] | 35 | |
---|
[1] | 36 | PARAMETERS |
---|
| 37 | gain as positive (Brief="model gain"); |
---|
[176] | 38 | beta as positive (Brief="lead time constant", Unit='s'); |
---|
| 39 | alpha as positive (Brief="lag time constant", Unit='s'); |
---|
[1] | 40 | |
---|
| 41 | VARIABLES |
---|
| 42 | input as Real (Brief="input signal"); |
---|
| 43 | output as Real (Brief="output signal"); |
---|
| 44 | aux as Real (Brief="internal variable"); |
---|
| 45 | |
---|
| 46 | EQUATIONS |
---|
| 47 | |
---|
| 48 | "Calculate variable aux" |
---|
| 49 | alpha*diff(aux)=gain*input-aux; |
---|
| 50 | |
---|
| 51 | "Calculate output" |
---|
| 52 | output=beta*diff(aux) + aux; |
---|
| 53 | |
---|
| 54 | INITIAL |
---|
[176] | 55 | diff(aux)= 0/'s'; |
---|
[1] | 56 | |
---|
| 57 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.