/[ascend]/trunk/models/steam/satsteamstream.a4c
ViewVC logotype

Contents of /trunk/models/steam/satsteamstream.a4c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1274 - (show annotations) (download) (as text)
Sun Feb 4 04:59:57 2007 UTC (13 years, 5 months ago) by johnpye
File MIME type: text/x-ascend
File size: 778 byte(s)
Fixed the 700->1000 problem, but testpeturbida still not working
1 REQUIRE "steam/iapwssat.a4c";
2
3 MODEL satsteamstream REFINES iapwssat;
4 mdot IS_A mass_rate;
5 rho IS_A mass_density;
6 rho * v = 1;
7 METHODS
8 METHOD default_self;
9 rho := 200 {kg/m^3};
10 rho.nominal := 10 {kg/m^3};
11 mdot := 0.1 {kg/s};
12 RUN iapwssat::default_self;
13 END default_self;
14 METHOD specify;
15 RUN iapwssat::specify;
16 FIX mdot;
17 END specify;
18 METHOD values;
19 RUN iapwssat::values;
20 T := 373.15 {K};
21 mdot := 0.1 {kg/s};
22 END values;
23 METHOD bound_self;
24 RUN iapwssat::bound_self;
25 (* mdot.lower_bound := 0 {kg/s}; *)
26 END bound_self;
27 METHOD on_load;
28 RUN bound_self;
29 RUN reset;
30 RUN values;
31 END on_load;
32 METHOD self_test;
33 ASSERT mdot == 0.1 {kg/s};
34 ASSERT abs(p - 101.418{kPa}) < 0.0005{kPa};
35 ASSERT abs(h - 1547.4616{kJ/kg}) < 0.0005{kJ/kg};
36 END self_test;
37 END satsteamstream;

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