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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1042 - (show annotations) (download) (as text)
Fri Jan 5 04:53:38 2007 UTC (15 years, 7 months ago) by johnpye
File MIME type: text/x-ascend
File size: 519 byte(s)
Added saturated steam routines (taked from IAPWS 'supsat.pdf')
Added test case TestSteam for evaluating iapwssatprops.a4c documented test cases.
1 REQUIRE "iapwssatprops.a4c";
2
3 MODEL iapwssat REFINES iapwssatprops;
4 x IS_A fraction;
5 h IS_A specific_enthalpy;
6 u IS_A specific_energy;
7 v IS_A specific_volume;
8
9 h_expr: h = (h_g - h_f)*x + h_f;
10 u_expr: u = (u_g - u_f)*x + u_f;
11 v_expr: v = (rho_g + (rho_f - rho_g)*x ) / ( rho_f * rho_g );
12 METHODS
13 METHOD specify;
14 RUN iapwssatprops::specify;
15 FIX x;
16 END specify;
17 METHOD values;
18 RUN iapwssatprops::values;
19 x := 0.5;
20 END values;
21 METHOD on_load;
22 RUN reset; RUN values;
23 RUN bound_self;
24 END on_load;
25 END iapwssat;

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