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 | |
---|
20 | using "streams"; |
---|
21 | |
---|
22 | Model heat_flow |
---|
23 | |
---|
24 | ATTRIBUTES |
---|
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 | |
---|
40 | PARAMETERS |
---|
41 | |
---|
42 | MinHeatFlow as power (Brief="Minimum of Heat Flow",Default=-1000); |
---|
43 | MaxHeatFlow as power (Brief="Maximum of Heat Flow",Default=1000); |
---|
44 | |
---|
45 | VARIABLES |
---|
46 | |
---|
47 | out HeatFlow as power (Brief="Heat Flow", PosX=0, PosY=0.60,Protected=true); |
---|
48 | in HeatFlowFraction as fraction (Brief="Flow Signal", PosX=0.50, PosY=0,Protected=true); |
---|
49 | |
---|
50 | EQUATIONS |
---|
51 | "Heat Flow" |
---|
52 | HeatFlow = MinHeatFlow + HeatFlowFraction*(MaxHeatFlow-MinHeatFlow); |
---|
53 | |
---|
54 | end |
---|
55 | |
---|
56 | |
---|
57 | |
---|