source: mso/eml/controllers/lag_1.mso @ 1

Last change on this file since 1 was 1, checked in by Rafael de Pelegrini Soares, 16 years ago

Initial import of the library

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 780 bytes
Line 
1#*----------------------------------------------------------------------
2* Model Lag
3*-----------------------------------------------------------------------
4* - Inputs
5*               - One input signal
6*
7* - Outputs
8*               - One output signal
9*
10* - Assumptions
11*
12*-----------------------------------------------------------------------
13* Author: Tiago Osório
14* $Id: lag_1.mso 1 2006-06-20 17:33:53Z rafael $
15*---------------------------------------------------------------------*#
16
17using "types";
18 
19 
20Model Lag_1
21
22        PARAMETERS
23        gain as positive (Brief="model gain");
24        tau  as positive (Brief="model time constant", Unit="s");
25       
26        VARIABLES
27        input  as Real  (Brief="input signal");
28        output as Real  (Brief="output signal");
29       
30        EQUATIONS
31       
32        "Calculate output"
33        gain*input= tau*diff(output) + output;
34       
35        INITIAL
36        diff(output)=0*"1/s";
37       
38end
Note: See TracBrowser for help on using the repository browser.