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

Log of /trunk/models/johnpye/fprops/sat.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 2290 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 15 10:11:54 2010 UTC (13 years, 10 months ago) by jpye
File length: 12695 byte(s)
Diff to previous 2289
Trying to catch errors associated with pressure below triple point for CO2.

Revision 2289 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 15 06:34:28 2010 UTC (13 years, 10 months ago) by jpye
File length: 12247 byte(s)
Diff to previous 2288
Resolved bug with evaluation at temperatures very very very slightly below triple point.

Revision 2288 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 15 06:16:13 2010 UTC (13 years, 10 months ago) by jpye
File length: 11780 byte(s)
Diff to previous 2287
Fixed some more FPE issues with pt->l going off the end of the array!
satcvgc working everywhere now except exactly at sat_p for p=p_t.

Revision 2287 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 15 01:19:21 2010 UTC (13 years, 10 months ago) by jpye
File length: 11540 byte(s)
Diff to previous 2286
Trying to track down an error that's started occurring with CO2 saturation curves.

Revision 2286 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 14 15:05:12 2010 UTC (13 years, 10 months ago) by jpye
File length: 11542 byte(s)
Diff to previous 2283
Working on plots for combined cycle. Something is broken with CO2 model.

Revision 2283 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 14 09:30:57 2010 UTC (13 years, 10 months ago) by jpye
File length: 11540 byte(s)
Diff to previous 2274
Add extra condition in sat.c to allow Akasaka algorithm to converge for toluene.

Revision 2274 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 11 11:23:30 2010 UTC (13 years, 10 months ago) by jpye
File length: 10857 byte(s)
Diff to previous 2272
adding ph mode to stream_state_test.

Revision 2272 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 8 23:15:10 2010 UTC (13 years, 10 months ago) by jpye
File length: 10823 byte(s)
Diff to previous 2271
Add fprops_Tvsh_ph to asc_helmholtz for calculation in terms of (p,h). The
routine does not seem to work particularly well though.

Revision 2271 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 8 12:17:00 2010 UTC (13 years, 10 months ago) by jpye
File length: 10823 byte(s)
Diff to previous 2270
Removed p_t, p_c from HelmholtzData, added routines that calculate those values directly.
'satcvgc.py' now runs without errors for 100% of data points.

Revision 2270 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 8 09:07:43 2010 UTC (13 years, 10 months ago) by jpye
File length: 9643 byte(s)
Diff to previous 2269
Seem to have fixed the solve_ph problems, but new problems in fprops_sat_p have arisen.

Revision 2269 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 8 05:40:41 2010 UTC (13 years, 10 months ago) by jpye
File length: 8960 byte(s)
Diff to previous 2267
Avoid stepping outside saturation region in fprops_sat_hf.

Revision 2267 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 6 00:54:48 2010 UTC (13 years, 10 months ago) by jpye
File length: 8740 byte(s)
Diff to previous 2264
Adding better starting guess for T,rho when solving (p,h) in compressed subcritical liquid region.

Revision 2264 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 5 09:25:55 2010 UTC (13 years, 10 months ago) by jpye
File length: 7235 byte(s)
Diff to previous 2262
A basic fprops_sat_p function working now.
Need to add p_t, T_t data to all materials.

Revision 2262 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 5 08:34:43 2010 UTC (13 years, 10 months ago) by jpye
File length: 6306 byte(s)
Diff to previous 2230
Deleted sat2.c and sat2.h, that code is not being used anywhere in ASCEND/FPROPS now. REFPROP algorithm replaced by Akasaka approach.
Moving sat3.c code into sat.h.

Revision 2230 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 27 01:56:55 2010 UTC (13 years, 10 months ago) by jpye
File length: 15846 byte(s)
Diff to previous 2225
Fixed error with use of 'abs' instead of 'fabs' in sat2.c.
This fixes convergence of CO2 and H2O everywhere except close to critical point.

Revision 2225 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 26 03:40:18 2010 UTC (13 years, 10 months ago) by jpye
File length: 15503 byte(s)
Diff to previous 2222
Added python bindings for new function. 
We can see that it's not converging for about 10% of cases.

Revision 2222 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 25 14:45:45 2010 UTC (13 years, 10 months ago) by jpye
File length: 15491 byte(s)
Diff to previous 2150
numerical algorithms for saturation curve. algorithms are based on those used by REFPROP, but the code is a new implementation. hoping that this is all legally correct; please let me know if there are any issues -- JP.

Revision 2150 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 16 06:08:57 2010 UTC (14 years, 3 months ago) by mahesh
File length: 15503 byte(s)
Diff to previous 2124
Bump trunk to 0.9.8.
Some work on detection of SUNDIALS on Linux (will need to be reviewed on Windows).
Update DistTar for smoother building of tarball, less stray deps.

Revision 2124 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 15 08:34:56 2009 UTC (14 years, 6 months ago) by jpye
File length: 15481 byte(s)
Diff to previous 2123
Various efforts at implementing Maxwell phase criterion, nothing working yet.

Revision 2123 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 14 08:14:44 2009 UTC (14 years, 6 months ago) by jpye
File length: 13270 byte(s)
Diff to previous 2122
Switched to derivative-free method, more luck with convergence but wrong result still.

Revision 2122 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 14 07:47:41 2009 UTC (14 years, 6 months ago) by jpye
File length: 11368 byte(s)
Diff to previous 2121
Attempt at implementing solver for saturation state using GSL fdfsolver.

Revision 2121 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 13 23:58:51 2009 UTC (14 years, 6 months ago) by jpye
File length: 6228 byte(s)
Diff to previous 2120
Fixed bug in Chouaieb vapour density calc.

Revision 2120 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 10 23:08:15 2009 UTC (14 years, 6 months ago) by jpye
File length: 6223 byte(s)
Diff to previous 2119
Fix build of SharedObject.
Put Chouaieb and Rackett models in separate functions.

Revision 2119 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 9 08:40:36 2009 UTC (14 years, 6 months ago) by jpye
File length: 5107 byte(s)
Diff to previous 2117
Add helmholtz_g (Gibbs energy, needs testing).
Working on adding Chouaieb estimate of vapour density, ongoing.

Revision 2117 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 9 04:30:18 2009 UTC (14 years, 6 months ago) by jpye
File length: 3389 byte(s)
Diff to previous 2116
Improving Python build of FPROPS.
Added spinodal.py for visualisation of spinodal points.
Added placeholder critical and triple point data for the other fluids (needs to be filled in).
Allow peering inside helmholtz data form Python (eg to access critical point data).

Revision 2116 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 9 01:34:31 2009 UTC (14 years, 6 months ago) by jpye
File length: 3276 byte(s)
Diff to previous 2115
Trying out some numerics for saturation curve.

Revision 2115 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 8 23:55:10 2009 UTC (14 years, 6 months ago) by jpye
File length: 2198 byte(s)
Diff to previous 2114
Add code to evaluate phase criterion (not solving yet).

Revision 2114 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue Dec 8 08:08:00 2009 UTC (14 years, 6 months ago) by jpye
File length: 1297 byte(s)
Starting some more work on saturation curves.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

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