Last change
on this file since 984 was
944,
checked in by Argimiro Resende Secchi, 9 years ago

Adding BlockOriented library by Jonathan Ospino Pinedo

File size:
1.2 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 is distributed under the terms of the ALSOC LICENSE as 

9  * available at http://www.enq.ufrgs.br/alsoc. 

10  * 

11  * Author: Jonathan Ospino P. 

12  * $Id: Integration.mso 2012$ 

13  **# 

14  

15  using "types"; 

16  

17  Model Integrator 

18  

19  ATTRIBUTES 

20  Pallete=true; 

21  Icon="icon/Integration"; 

22  Info="== Integrator== 

23  

24  It integrates the value of the input signal with respect to the time. 

25  The resulting value is assigned to the output variable."; 

26  

27  PARAMETERS 

28  

29  Initial_Condition as Real(Brief="Initial value of the integral",Default=0); 

30  

31  VARIABLES 

32  

33  in In as Real(PosX=0,PosY=0.5,Protected=true); 

34  w as Real(Brief="Integral of the input signal",Hidden=true); 

35  out Out as Real(PosX=1,PosY=0.5,Protected=true); 

36  

37  

38  EQUATIONS 

39  

40  Out=w; 

41  diff(w)*'s'=In; 

42  

43  

44  INITIAL 

45  

46  w=Initial_Condition; 

47  

48  end 

Note: See
TracBrowser
for help on using the repository browser.