/[ascend]/trunk/models/johnpye/fprops/helmholtz.h
ViewVC logotype

Contents of /trunk/models/johnpye/fprops/helmholtz.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1825 - (show annotations) (download) (as text)
Thu Aug 21 05:03:19 2008 UTC (12 years, 2 months ago) by jpye
File MIME type: text/x-chdr
File size: 869 byte(s)
Added functions for enthalpy and internal energy.
Test suites still needed!
1
2 /**
3 Data structure for rows of the coefficient and exponent table (allows
4 the data to be represented more concisely when declaring a fluid from
5 C code.
6 */
7 typedef struct HelmholtzATD_struct{
8 double a; /* coefficient */
9 double t; /* exponent of tau */
10 double d; /* exponent of delta */
11 } HelmholtzATD;
12
13 /**
14 Data structure for fluid-specific data for the Helmholtz free energy EOS.
15 */
16 typedef struct HelmholtzData_struct{
17 double R; /* specific gas constant */
18 double rho_star; /* normalisation density */
19 double T_star; /* normalisation temperature */
20
21 double a0[6]; /* coefficients for the ideal component of the fund eqn */
22
23 HelmholtzATD atd[21];
24 } HelmholtzData;
25
26 double helmholtz_p(double T, double rho, HelmholtzData *data);
27 double helmholtz_u(double T, double rho, HelmholtzData *data);
28 double helmholtz_h(double T, double rho, HelmholtzData *data);
29

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