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

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

updated column model

File size: 1.6 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
24ATTRIBUTES
25        Pallete = true;
26        Icon    = "icon/heat_flow";
27        Brief   = "Model of a very simple valve for setting the energy flow with a controller.";
28        Info    =
29"== ASSUMPTIONS ==
30* nothing happens in this valve
31
32== SET ==
33* MinHeatFlow: the Minimum Heat Flow Allowable in the valve;
34* MaxHeatFlow: the Maximum Heat Flow Allowable in the valve;
35
36== SPECIFY ==
37* the HeatFlowFraction (the model requires an inlet signal, also you can use a controller for setting the HeatFlowFraction)
38";
39
40PARAMETERS
41
42        MinHeatFlow     as power        (Brief="Minimum of Heat Flow",Default=-1000);
43        MaxHeatFlow     as power        (Brief="Maximum of Heat Flow",Default=1000);
44       
45VARIABLES
46
47out HeatFlow                    as power        (Brief="Heat Flow", PosX=0, PosY=0.60,Protected=true);
48in      HeatFlowFraction        as fraction (Brief="Flow Signal", PosX=0.50, PosY=0,Protected=true);
49       
50EQUATIONS
51"Heat Flow"
52        HeatFlow = MinHeatFlow + HeatFlowFraction*(MaxHeatFlow-MinHeatFlow);
53
54end
55
56
57
Note: See TracBrowser for help on using the repository browser.