source: branches/gui/eml/controllers/heat_flow.mso @ 743

Last change on this file since 743 was 743, checked in by gerson bicca, 14 years ago

sample reactive column with control

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* Author: Gerson B. Bicca
17*$Id:$                                                                 
18*-------------------------------------------------------------------*#
19
20using "streams";
21       
22Model heat_flow
23        ATTRIBUTES
24        Pallete         = true;
25        Icon            = "icon/heat_flow";
26        Brief           = "Model of a very simple valve for setting the energy flow with a controller.";
27
28
29PARAMETERS
30
31        MinHeatFlow             as power                (Brief="Minimum of Heat Flow",Default=-1000);
32        MaxHeatFlow     as power                (Brief="Maximum of Heat Flow",Default=1000);
33       
34VARIABLES
35
36out HeatFlow                                    as power                (Brief="Heat Flow", PosX=0, PosY=0.60);
37in      HeatFlowFraction                as fraction     (Brief="Flow Signal", PosX=0.50, PosY=0);
38       
39        EQUATIONS
40"Heat Flow"
41        HeatFlow = MinHeatFlow + HeatFlowFraction*(MaxHeatFlow-MinHeatFlow);
42
43end
44
45
46
Note: See TracBrowser for help on using the repository browser.