/[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 1829 - (show annotations) (download) (as text)
Fri Aug 22 05:00:53 2008 UTC (12 years, 2 months ago) by jpye
File MIME type: text/x-chdr
File size: 997 byte(s)
Added entropy relation and tests. All entropy tests pass to within 0.03%.
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 int 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, const HelmholtzData *data);
27 double helmholtz_u(double T, double rho, const HelmholtzData *data);
28 double helmholtz_h(double T, double rho, const HelmholtzData *data);
29 double helmholtz_s(double T, double rho, const HelmholtzData *data);
30
31 const HelmholtzData helmholtz_data_ammonia;

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