/[ascend]/trunk/models/johnpye/heater.a4c
ViewVC logotype

Diff of /trunk/models/johnpye/heater.a4c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 107 by johnpye, Wed Dec 7 16:38:00 2005 UTC revision 108 by johnpye, Tue Dec 13 05:53:20 2005 UTC
# Line 7  MODEL heater REFINES steam_equipment; Line 7  MODEL heater REFINES steam_equipment;
7      Qdot IS_A energy_rate;      Qdot IS_A energy_rate;
8    
9      (* first law of thermo *)      (* first law of thermo *)
10      in.mdot * in.h + Qdot = out.mdot * out.h;      ((out.mdot*out.h) - (in.mdot*in.h)) = Qdot;
11    
12      (* no mass holdup *)      (* no mass holdup *)
13      out.mdot, in.mdot ARE_THE_SAME;      out.mdot, in.mdot ARE_THE_SAME;
# Line 20  METHOD default_self; Line 20  METHOD default_self;
20  END default_self;  END default_self;
21    
22  METHOD specify;  METHOD specify;
23      RUN in.specify;      in.p.fixed := TRUE;
24        in.h.fixed := TRUE;
25      Qdot.fixed := TRUE;      Qdot.fixed := TRUE;
26  END specify;  END specify;
27    
28  METHOD values;  METHOD values;
29      in.T := 400 {K};      (* fixed values *)
30      in.p := 1 {bar};      in.p := 1 {bar};
31      Qdot := 2.4 {kW};      in.h := 2500 {kJ/kg};
32        Qdot := 1 {kW};
33        (* initial guesses *)
34        out.h := 2600 {kJ/kg};
35        out.p := 1 {bar};
36  END values;  END values;
37    
38  END heater;  END heater;

Legend:
Removed from v.107  
changed lines
  Added in v.108

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22