/[ascend]/trunk/models/johnpye/fprops/nitrogen.c
ViewVC logotype

Annotation of /trunk/models/johnpye/fprops/nitrogen.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1886 - (hide annotations) (download) (as text)
Fri Sep 19 07:22:54 2008 UTC (15 years, 10 months ago) by jpye
File MIME type: text/x-csrc
File size: 15727 byte(s)
Adding separate file with basic test routine.
1 jpye 1879 /* ASCEND modelling environment
2     Copyright (C) 2008 Carnegie Mellon University
3    
4     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2, or (at your option)
7     any later version.
8    
9     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12     GNU General Public License for more details.
13    
14     You should have received a copy of the GNU General Public License
15     along with this program; if not, write to the Free Software
16     Foundation, Inc., 59 Temple Place - Suite 330,
17     Boston, MA 02111-1307, USA.
18     */
19    
20 jpye 1834 #include "ammonia.h"
21    
22     /* Property data for Nitrogen
23    
24     From Span, Lemmon, Jacobsen & Wagner
25     A Reference Quality Equation of State for Nitrogen
26     Int J Thermophysics, Vol 18, No 4, 1998.
27    
28     This is the nitrogren property correlation recommended
29     by NIST in its program REFPROP 7.0. */
30    
31 jpye 1861 #define NITROGEN_M 28.01348
32     #define NITROGEN_R (8.31451e3/NITROGEN_M)
33     #define NITROGEN_TSTAR 126.192
34 jpye 1850
35 jpye 1835 const IdealData ideal_data_nitrogen = {
36 jpye 1882 -12.76953 +(8.66460942220E-4)/NITROGEN_R
37     , -0.007841630
38 jpye 1861 , NITROGEN_TSTAR /* Tstar */
39     , NITROGEN_R /* cp0star */
40 jpye 1850 , 4 /* power terms */
41 jpye 1835 , (const IdealPowTerm[]){
42 jpye 1850 {3.5, 0.}
43     ,{3.066469e-6, 1.}
44     ,{4.701240e-9, 2.}
45     ,{-3.987984e-13, 3.}
46 jpye 1835 }
47 jpye 1850 , 1 /* exponential terms */
48 jpye 1835 , (const IdealExpTerm[]){
49 jpye 1850 {1.012941, 3364.011}
50 jpye 1835 }
51     };
52    
53 jpye 1841 /*
54     this correlation is given in molar terms. we convert to mass
55     basis by changing the scaling density rho_star, and the ideal gas constant.
56     */
57 jpye 1838 const HelmholtzData helmholtz_data_nitrogen = {
58 jpye 1861 /* R */ NITROGEN_R /* 1000 * kJ/kmolK / kg/kmol = J/kgK */
59     , /* M */ NITROGEN_M /* kg/kmol */
60     , /* rho_star */ 11.1839 * NITROGEN_M /* kmol/m3 * kg/kmol = kg/m�� (= rho_c for this model) */
61     , /* T_star */ NITROGEN_TSTAR /* K (= T_c for this model) */
62 jpye 1835 , &ideal_data_nitrogen
63 jpye 1841 , 32 /* np */
64 jpye 1838 , (const HelmholtzPowTerm[]){
65 jpye 1834 /* a_i, t_i, d_i, l_i */
66 jpye 1841 { 0.924803575275, 0.25, 1, 0}/* 1 */
67 jpye 1834 ,{-0.492448489428, 0.875, 1, 0}
68     ,{ 0.661883336938, 0.5, 2, 0}
69     ,{-0.192902649201E1, 0.875, 2, 0}
70     ,{-0.622469309629E-1, 0.375, 3, 0}
71     ,{ 0.349943957581, 0.75, 3, 0}
72     ,{ 0.564857472498, 0.5, 1, 1}
73     ,{-0.161720005987E1, 0.75, 1, 1}
74     ,{-0.481395031883, 2., 1, 1}
75 jpye 1841 ,{ 0.421150636384, 1.25, 3, 1}/* 10 */
76 jpye 1834 ,{-0.161962230825E-1, 3.5, 3, 1}
77     ,{ 0.172100994165, 1., 4, 1}
78     ,{ 0.735448924933E-2, 0.5, 6, 1}
79     ,{ 0.168077305479E-1, 3., 6, 1}
80     ,{-0.107626664179E-2, 0., 7, 1}
81     ,{-0.137318088513E-1, 2.75, 7, 1}
82     ,{ 0.635466899859E-3, 0.75, 8, 1}
83     ,{ 0.304432279419E-2, 2.5, 8, 1}
84     ,{-0.435762336045E-1, 4., 1, 2}
85 jpye 1841 ,{-0.723174889316E-1, 6. , 2, 2}/* 20 */
86 jpye 1834 ,{ 0.389644315272E-1, 6., 3, 2}
87     ,{-0.212201363910E-1, 3., 4, 2}
88     ,{ 0.408822981509E-2, 3., 5, 2}
89     ,{-0.551990017984E-4, 6., 8, 2}
90     ,{-0.462016716479E-1, 16., 4, 3}
91     ,{-0.300311716011E-2, 11., 5, 3}
92     ,{ 0.368825891208E-1, 15., 5, 3}
93     ,{-0.255856846220E-2, 12., 8, 3}
94     ,{ 0.896915264558E-2, 12., 3, 4}
95 jpye 1847 ,{-0.441513370350E-2, 7., 5, 4}/* 30 */
96 jpye 1834 ,{ 0.133722924858E-2, 4., 6, 4}
97     ,{ 0.264832491957E-3, 16., 9, 4}
98     }
99 jpye 1838 , 4 /* ne */
100     , (const HelmholtzExpTerm[]){
101     {0.196688194015e2, 0., 1, 20, 325, 1.16}
102     , {-0.209115600730e2, 1., 1, 20, 325, 1.16}
103     , {0.167788306989e-1, 2., 3, 15, 300, 1.13}
104     , {0.262767566274e4, 3., 2, 25, 275, 1.25}
105     }
106 jpye 1834 };
107    
108    
109     /*
110     Test suite. These tests attempt to validate the current code using
111     a few sample figures output by REFPROP 7.0.
112    
113     To run the test, compile and run as follows:
114    
115 jpye 1847 gcc ideal.c helmholtz.c nitrogen.c -DTEST -o nitrogen -lm && ./nitrogen
116 jpye 1834 */
117     #ifdef TEST
118    
119 jpye 1879 #include "ideal_impl.h"
120 jpye 1886
121     #include "test.h"
122     #include <math.h>
123     #include <stdio.h>
124 jpye 1834 #include <assert.h>
125    
126 jpye 1879 double phi0(double tau, double del){
127 jpye 1880 return log(del) - log(tau) - 12.76953 - 0.007841630*tau + 3.5*log(tau) - 1.934819e-4/tau - 1.247742e-5/(tau*tau) + 6.678326e-8/(tau*tau*tau) + 1.012941*log(1 - exp(-26.65788*tau));
128     }
129 jpye 1879
130 jpye 1880 double phi0tau(double tau, double del){
131 jpye 1879
132 jpye 1880 double term = -1/tau-0.00784163;
133 jpye 1881 //fprintf(stderr,"\t\t-1/tau-0.00784163 = %f\n",term);
134 jpye 1880 double res = term;
135    
136     term = 3.5/tau;
137 jpye 1881 //fprintf(stderr,"\t\t3.5/tau = %f\n",term);
138 jpye 1880 res +=term;
139    
140     term = +(1.9348189999999999e-4)/(tau*tau);
141 jpye 1881 //fprintf(stderr,"\t\t+(1.9348189999999999e-4)/(tau*tau) = %f\n",term);
142 jpye 1880 res +=term;
143    
144 jpye 1881 term = +(2.495484e-5)/(tau*tau*tau);
145     //fprintf(stderr,"\t\t+(2.495484*10^-5)/tau^3 = %f\n",term);
146 jpye 1880 res+=term;
147    
148 jpye 1881 term = -(2.0034978000000001e-7)/(tau*tau*tau*tau);
149     //fprintf(stderr,"\t\t-(2.0034978000000001*10^-7)/tau^4 = %f\n",term);
150 jpye 1880 res+=term;
151    
152     term = (27.00285962508*exp(-26.65788*tau))/(1-exp(-26.65788*tau));
153 jpye 1881 //fprintf(stderr,"\t\t(27.00285962508*exp(-26.65788*tau))/(1-exp(-26.65788*tau)) = %f\n",term);
154 jpye 1880 res += term;
155    
156     return res;
157 jpye 1879 }
158    
159 jpye 1886 const TestData td[]; const unsigned ntd;
160    
161 jpye 1839 int main(void){
162 jpye 1834
163 jpye 1863 double rho, T, p, u, h, a, s, cp0;
164 jpye 1839 const HelmholtzData *d;
165    
166     d = &helmholtz_data_nitrogen;
167     double maxerr = 0;
168    
169     unsigned i;
170     const unsigned n = ntd;
171    
172 jpye 1841 #if 0
173 jpye 1839 fprintf(stderr,"Testing sample values from the Span paper...\n");
174    
175 jpye 1841 rho = 10.993 * d->M; T = 270.;
176 jpye 1839 p = helmholtz_p(T, rho, d);
177     fprintf(stderr,"p = %f\n", p);
178 jpye 1841 assert(fabs(p - 27.0621e6) < 5e3);
179     fprintf(stderr,"OK 1\n");
180 jpye 1839
181     rho = 11.2 * d->M; T = 126.2;
182     p = helmholtz_p(T, rho, d);
183     fprintf(stderr,"p = %f\n", p);
184     assert(fabs(p - 3.39712e6) < 50e3);
185 jpye 1841 fprintf(stderr,"OK 2\n");
186     #endif
187 jpye 1839
188     fprintf(stderr,"Running through %d test points...\n",n);
189    
190 jpye 1870 fprintf(stderr,"CONSISTENCY TESTS (of test data): u, T, s, a...");
191     for(i=0; i<n; ++i){
192     u = td[i].u*1e3;
193     T = td[i].T+273.15;
194     s = td[i].s*1e3;
195 jpye 1868 a = td[i].a*1e3;
196 jpye 1870 //fprintf(stderr,"u - T s = %f, a = %f\n", u-T*s, a);
197     double resid = (u - T*s) - a;
198     assert(fabs(resid) < fabs(a)*1e-6);
199 jpye 1868 }
200 jpye 1870 fprintf(stderr,"done\n");
201 jpye 1868
202 jpye 1870 fprintf(stderr,"CONSISTENCY TESTS (of test data): p, rho, h, u...");
203     for(i=0; i<n; ++i){
204     h = td[i].h*1e3;
205 jpye 1841 p = td[i].p*1e6;
206     rho = td[i].rho;
207 jpye 1870 u = td[i].u*1e3;
208     //fprintf(stderr,"h - p/rho - T s = %f, a = %f\n", h - p/rho-T*s, a);
209     double resid = (u + p/rho) - h;
210     assert(fabs(resid) < fabs(h)*1e-6);
211 jpye 1839 }
212 jpye 1870 fprintf(stderr,"done\n");
213 jpye 1839
214 jpye 1882 #if 0
215 jpye 1880 /* can only use this check if c,m haven't been offset from original */
216 jpye 1879 fprintf(stderr,"CONSISTENCY TESTS (with handwritten phi0 expr)\n");
217     for(i=10;i<n;++i){
218     T = td[i].T+273.15;
219     rho = td[i].rho;
220    
221     double tau = d->T_star / T;
222     double del = rho / d->rho_star;
223    
224 jpye 1880 double p0, p0t;
225 jpye 1879 p0 = phi0(tau, del);
226    
227 jpye 1880 ASSERT_TOL(helm_ideal,tau,del, d->ideal, p0, p0*1e-3);
228    
229     p0t = phi0tau(tau,del);
230     ASSERT_TOL(helm_ideal_tau,tau,del, d->ideal, p0t, p0t*1e-3);
231    
232 jpye 1879 }
233     #endif
234    
235 jpye 1886 /* check evaluation against the test dataset */
236     return helm_run_test_cases(d, ntd, td);
237 jpye 1839 }
238    
239     const TestData td[] = {
240 jpye 1850 /*{T/C, , p/MPa , rho/(kg/m3) , u/(kJ/kg) , h/(kJ/kg) , s/(kJ/kgK) , cv/(kJ/kgK) , cp(kJ/kgK) , cp0/(kJ/kgK) a/(kJ/kg)}*/
241 jpye 1838 /*
242 jpye 1841 samples point from Span et al, as calculated by REFPROP 7.0
243     */
244 jpye 1850 #if 0
245 jpye 1841 {-3.15E+0, 2.706209546E+1, 3.0814828E+2, 1.448502895E+2, 2.326719559E+2}
246     , {-1.4695E+2, 3.397116495E+0, 3.13750976E+2, 1.832925675E+1, 2.9156686E+1}
247 jpye 1844 ,
248     #endif
249 jpye 1841 /*
250 jpye 1838 A small set of data points calculated using REFPROP 7.0, for validation
251     */
252 jpye 1850 {-2.00E+2, 1.E-1, 8.249414592E+2, -1.306857633E+2, -1.305645426E+2, 2.720604877E+0, 1.109565257E+0, 2.023829833E+0, 1.038887632E+0, -3.296980101E+2}
253     , {-1.959064992E+2, 1.E-1, 8.065903588E+2, -1.223708156E+2, -1.22246837E+2, 2.83124055E+0, 1.084716563E+0, 2.040959335E+0, 1.038892209E+0, -3.410657474E+2}
254     , {-1.959064992E+2, 1.E-1, 4.556481103E+0, 5.512608739E+1, 7.7072848E+1, 5.41164774E+0, 7.710362489E-1, 1.123116531E+0, 1.038892209E+0, -3.628885293E+2}
255     , {-1.50E+2, 1.E-1, 2.765107908E+0, 9.033141131E+1, 1.264963652E+2, 5.914940099E+0, 7.462163482E-1, 1.055667199E+0, 1.03894666E+0, -6.380934619E+2}
256     , {-1.00E+2, 1.E-1, 1.952885853E+0, 1.277566181E+2, 1.789628879E+2, 6.272601137E+0, 7.434283808E-1, 1.045406635E+0, 1.03901286E+0, -9.583442688E+2}
257     , {-5.0E+1, 1.E-1, 1.511923126E+0, 1.650053791E+2, 2.31146308E+2, 6.537380868E+0, 7.428543667E-1, 1.042430606E+0, 1.039104289E+0, -1.293811162E+3}
258     , {0.E+0, 1.E-1, 1.234027837E+0, 2.022010932E+2, 2.832365424E+2, 6.74801325E+0, 7.428806326E-1, 1.041392204E+0, 1.039368282E+0, -1.641018726E+3}
259     , {5.0E+1, 1.E-1, 1.042637745E+0, 2.393950056E+2, 3.353055943E+2, 6.923064311E+0, 7.436352617E-1, 1.041585124E+0, 1.040231109E+0, -1.997793226E+3}
260     , {1.00E+2, 1.E-1, 9.027313243E-1, 2.7664507E+2, 3.874200009E+2, 7.073009026E+0, 7.456586574E-1, 1.043277497E+0, 1.042312159E+0, -2.362648248E+3}
261     , {1.50E+2, 1.E-1, 7.959713424E-1, 3.140324207E+2, 4.396650845E+2, 7.204396773E+0, 7.49458015E-1, 1.046866197E+0, 1.046145853E+0, -2.734508074E+3}
262     , {2.00E+2, 1.E-1, 7.118143393E-1, 3.516554257E+2, 4.921414969E+2, 7.321608221E+0, 7.552713429E-1, 1.052537659E+0, 1.051981392E+0, -3.112563504E+3}
263     , {2.50E+2, 1.E-1, 6.437636895E-1, 3.896156385E+2, 5.44952141E+2, 7.427704455E+0, 7.630329612E-1, 1.060199497E+0, 1.059758319E+0, -3.496187947E+3}
264     , {3.00E+2, 1.E-1, 5.875965268E-1, 4.280048515E+2, 5.98189656E+2, 7.524887552E+0, 7.724566308E-1, 1.069550528E+0, 1.06919308E+0, -3.884884449E+3}
265     , {3.50E+2, 1.E-1, 5.404484175E-1, 4.66897069E+2, 6.519286035E+2, 7.614775644E+0, 7.831461911E-1, 1.080185712E+0, 1.079891005E+0, -4.278250373E+3}
266     , {4.00E+2, 1.E-1, 5.003075032E-1, 5.063454996E+2, 7.062225739E+2, 7.698579114E+0, 7.946852037E-1, 1.091683066E+0, 1.091436533E+0, -4.675953031E+3}
267     , {-2.00E+2, 1.E+0, 8.269722658E+2, -1.311062353E+2, -1.298970049E+2, 2.714834497E+0, 1.111903759E+0, 2.015980797E+0, 1.038887632E+0, -3.296963787E+2}
268     , {-1.694030878E+2, 1.E+0, 6.658282477E+2, -6.582866611E+1, -6.432677729E+1, 3.460052635E+0, 9.738696893E-1, 2.43143904E+0, 1.038922946E+0, -4.247984431E+2}
269     , {-1.694030878E+2, 1.E+0, 4.133110398E+1, 6.353915362E+1, 8.773400698E+1, 4.92574237E+0, 8.785897919E-1, 1.651759413E+0, 1.038922946E+0, -4.474914077E+2}
270     , {-1.50E+2, 1.E+0, 3.089966568E+1, 8.261922852E+1, 1.149820382E+2, 5.167381911E+0, 7.914292017E-1, 1.268580393E+0, 1.03894666E+0, -5.537438538E+2}
271     , {-1.00E+2, 1.E+0, 2.018992668E+1, 1.236354905E+2, 1.731651404E+2, 5.565357304E+0, 7.547063826E-1, 1.108351859E+0, 1.03901286E+0, -8.400061267E+2}
272     , {-5.0E+1, 1.E+0, 1.530392626E+1, 1.622053684E+2, 2.275480773E+2, 5.841465649E+0, 7.47812625E-1, 1.07327346E+0, 1.039104289E+0, -1.141317691E+3}
273     , {0.E+0, 1.E+0, 1.238752228E+1, 2.001017336E+2, 2.808281272E+2, 6.056951203E+0, 7.45695244E-1, 1.059759072E+0, 1.039368282E+0, -1.454354488E+3}
274     , {5.0E+1, 1.E+0, 1.042615666E+1, 2.377322774E+2, 3.336448972E+2, 6.23453053E+0, 7.454880323E-1, 1.053757882E+0, 1.040231109E+0, -1.776956263E+3}
275     , {1.00E+2, 1.E+0, 9.009743348E+0, 2.752812148E+2, 3.862721678E+2, 6.385956969E+0, 7.470005161E-1, 1.051916948E+0, 1.042312159E+0, -2.107638628E+3}
276     , {1.50E+2, 1.E+0, 7.936266563E+0, 3.128862409E+2, 4.38890073E+2, 6.518285235E+0, 7.504954318E-1, 1.0532985E+0, 1.046145853E+0, -2.445326156E+3}
277     , {2.00E+2, 1.E+0, 7.093503539E+0, 3.506749593E+2, 4.916490203E+2, 6.636129311E+0, 7.561114932E-1, 1.057499314E+0, 1.051981392E+0, -2.789209624E+3}
278     , {2.50E+2, 1.E+0, 6.413750916E+0, 3.88765591E+2, 5.44680595E+2, 6.742670284E+0, 7.637368818E-1, 1.064132645E+0, 1.059758319E+0, -3.138662368E+3}
279     , {3.00E+2, 1.E+0, 5.853600946E+0, 4.272601376E+2, 5.980951517E+2, 6.840177103E+0, 7.730616677E-1, 1.072736728E+0, 1.06919308E+0, -3.493187369E+3}
280     , {3.50E+2, 1.E+0, 5.383882193E+0, 4.662392116E+2, 6.519787885E+2, 6.930307557E+0, 7.836765419E-1, 1.082812769E+0, 1.079891005E+0, -3.852381942E+3}
281     , {4.00E+2, 1.E+0, 4.984238815E+0, 5.057604909E+2, 7.063929319E+2, 7.014296741E+0, 7.951572985E-1, 1.093881037E+0, 1.091436533E+0, -4.215913361E+3}
282     , {-2.00E+2, 1.E+1, 8.452673172E+2, -1.348156535E+2, -1.229850766E+2, 2.662217387E+0, 1.134215722E+0, 1.955220874E+0, 1.038887632E+0, -3.295568554E+2}
283     , {-1.50E+2, 1.E+1, 6.146317008E+2, -3.70249487E+1, -2.075504269E+1, 3.721059545E+0, 9.337581355E-1, 2.270056086E+0, 1.03894666E+0, -4.952734317E+2}
284     , {-1.00E+2, 1.0E+1, 2.740868419E+2, 7.185239674E+1, 1.083371836E+2, 4.599930836E+0, 8.546941465E-1, 2.189924967E+0, 1.03901286E+0, -7.246256275E+2}
285     , {-5.0E+1, 1.0E+1, 1.656973184E+2, 1.330827215E+2, 1.934337283E+2, 5.035617646E+0, 7.905131572E-1, 1.424466596E+0, 1.039104289E+0, -9.906153563E+2}
286     , {0.E+0, 1.0E+1, 1.252477529E+2, 1.794301367E+2, 2.592718885E+2, 5.302448665E+0, 7.701053502E-1, 1.241224784E+0, 1.039368282E+0, -1.268933716E+3}
287     , {5.0E+1, 1.E+1, 1.024973378E+2, 2.216986464E+2, 3.19262156E+2, 5.504302349E+0, 7.619790883E-1, 1.167616763E+0, 1.040231109E+0, -1.557016658E+3}
288     , {1.00E+2, 1.E+1, 8.742785901E+1, 2.622473109E+2, 3.766273279E+2, 5.66942089E+0, 7.59252946E-1, 1.130895007E+0, 1.042312159E+0, -1.853297094E+3}
289     , {1.50E+2, 1.0E+1, 7.653447744E+1, 3.019757762E+2, 4.326358439E+2, 5.8103035E+0, 7.601658341E-1, 1.111555336E+0, 1.046145853E+0, -2.15665415E+3}
290     , {2.00E+2, 1.0E+1, 6.821629197E+1, 3.413566944E+2, 4.879492416E+2, 5.933867436E+0, 7.640672667E-1, 1.102307946E+0, 1.051981392E+0, -2.466252683E+3}
291     , {2.50E+2, 1.0E+1, 6.16196599E+1, 3.806901303E+2, 5.429759984E+2, 6.044424746E+0, 7.704812929E-1, 1.099665148E+0, 1.059758319E+0, -2.781450676E+3}
292     , {3.00E+2, 1.0E+1, 5.624066686E+1, 4.201840709E+2, 5.979913509E+2, 6.144858594E+0, 7.789093121E-1, 1.101578426E+0, 1.06919308E+0, -3.101741632E+3}
293     , {3.50E+2, 1.0E+1, 5.175958526E+1, 4.59985516E+2, 6.531864458E+2, 6.237185757E+0, 7.88835609E-1, 1.106659944E+0, 1.079891005E+0, -3.426716789E+3}
294     , {4.00E+2, 1.0E+1, 4.796230162E+1, 5.001960475E+2, 7.086931308E+2, 6.32286331E+0, 7.997719319E-1, 1.113896879E+0, 1.091436533E+0, -3.756039389E+3}
295     , {-1.50E+2, 1.00E+2, 8.420363237E+2, -7.952232043E+1, 3.92374019E+1, 3.242503691E+0, 1.061794503E+0, 1.651045202E+0, 1.03894666E+0, -4.7883665E+2}
296     , {-1.00E+2, 1.00E+2, 7.480840694E+2, -1.477293041E+1, 1.189018852E+2, 3.7864991E+0, 9.612166888E-1, 1.540186543E+0, 1.03901286E+0, -6.704052495E+2}
297     , {-5.0E+1, 1.00E+2, 6.686218021E+2, 4.412242706E+1, 1.936838079E+2, 4.166379675E+0, 9.045605306E-1, 1.454706847E+0, 1.039104289E+0, -8.856051973E+2}
298     , {0.E+0, 1.00E+2, 6.020019153E+2, 9.855920741E+1, 2.646716357E+2, 4.453651157E+0, 8.694630248E-1, 1.387312334E+0, 1.039368282E+0, -1.117955606E+3}
299     , {5.0E+1, 1.00E+2, 5.463770513E+2, 1.49612758E+2, 3.326365504E+2, 4.682270323E+0, 8.466982693E-1, 1.333296991E+0, 1.040231109E+0, -1.363462897E+3}
300     , {1.00E+2, 1.00E+2, 4.998628485E+2, 1.981348717E+2, 3.981897474E+2, 4.870958715E+0, 8.321215371E-1, 1.290606288E+0, 1.042312159E+0, -1.619463373E+3}
301     , {1.50E+2, 1.00E+2, 4.607196175E+2, 2.448127085E+2, 4.618644601E+2, 5.031138876E+0, 8.236965038E-1, 1.257948834E+0, 1.046145853E+0, -1.884113707E+3}
302     , {2.00E+2, 1.00E+2, 4.274764375E+2, 2.901989649E+2, 5.241299871E+2, 5.170247187E+0, 8.201904384E-1, 1.234009444E+0, 1.051981392E+0, -2.156103492E+3}
303     , {2.50E+2, 1.00E+2, 3.989550654E+2, 3.347325069E+2, 5.853873016E+2, 5.293334174E+0, 8.206409326E-1, 1.217384623E+0, 1.059758319E+0, -2.434475266E+3}
304     , {3.00E+2, 1.00E+2, 3.742353905E+2, 3.787557173E+2, 6.459672171E+2, 5.40393536E+0, 8.241897795E-1, 1.206689759E+0, 1.06919308E+0, -2.718509834E+3}
305     , {3.50E+2, 1.00E+2, 3.526046985E+2, 4.225300983E+2, 7.061338065E+2, 5.504585302E+0, 8.300621222E-1, 1.200652388E+0, 1.079891005E+0, -3.007652233E+3}
306     , {4.00E+2, 1.00E+2, 3.335102049E+2, 4.662506686E+2, 7.660915686E+2, 5.597138445E+0, 8.375827178E-1, 1.19816815E+0, 1.091436533E+0, -3.301463075E+3}
307 jpye 1838 };
308 jpye 1834
309 jpye 1839 const unsigned ntd = sizeof(td)/sizeof(TestData);
310 jpye 1834
311     #endif
312 jpye 1838

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