source: trunk/eml/controllers/lag_1.mso @ 282

Last change on this file since 282 was 176, checked in by Argimiro Resende Secchi, 16 years ago

Fix some new language syntax.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
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.
14*
15*----------------------------------------------------------------------
16* Model Lag
17*-----------------------------------------------------------------------
18* - Inputs
19*               - One input signal
20*
21* - Outputs
22*               - One output signal
23*
24*-----------------------------------------------------------------------
25* Author: Tiago Osório
26* $Id: lag_1.mso 176 2007-03-04 04:56:54Z arge $
27*---------------------------------------------------------------------*#
28
29using "types";
30 
31 
32Model Lag_1
33
34        PARAMETERS
35        gain as positive (Brief="model gain");
36        tau  as positive (Brief="model time constant", Unit='s');
37       
38        VARIABLES
39        input  as Real  (Brief="input signal");
40        output as Real  (Brief="output signal");
41       
42        EQUATIONS
43       
44        "Calculate output"
45        gain*input= tau*diff(output) + output;
46       
47        INITIAL
48        diff(output)=0/'s';
49       
50end
Note: See TracBrowser for help on using the repository browser.