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

Log of /branches/sid/models/johnpye/fprops/sat.c

Parent Directory Parent Directory | Revision Log Revision Log


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

Revision 3024 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 23 04:16:35 2015 UTC (3 years, 9 months ago) by sid
File length: 12645 byte(s)
Diff to previous 2929
first attempt at two phase


Revision 2929 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 1 05:55:00 2015 UTC (3 years, 11 months ago) by sid
File length: 12648 byte(s)
Diff to previous 2680
Creating a new branch for implementing TTSE


Revision 2680 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 28 06:30:25 2013 UTC (6 years, 3 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
File length: 12648 byte(s)
Diff to previous 2665
Working on problem with solve_ph. Could be that one of the deriv routines is wrong in the saturation region?

Revision 2665 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 21 06:23:14 2013 UTC (6 years, 3 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
File length: 11718 byte(s)
Diff to previous 2664
Cubic root solver was giving problems. Replacing with the one Sean/Ankit had been using.

Revision 2664 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 18 06:02:15 2013 UTC (6 years, 4 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
File length: 11716 byte(s)
Diff to previous 2662
Trying to debug fprops_triple_point for Toluene with pengrob correlation. Something strange is happening with fratio.

Revision 2662 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 18 00:34:51 2013 UTC (6 years, 4 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
File length: 11206 byte(s)
Diff to previous 2661
Added some C tests for sat and solve_ph routines.
Added parameter 'source' to fprops_fluid, to allow data with a particular source to be specified (optionally). This allows forced testing explicitly of the RPP data even when Helmholtz data is also available.
Tweaked some convergence parameters in sat.c and solve_ph.c to get convergence across broader range of parameters for more fluids (more testing required).

Revision 2661 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 17 00:15:12 2013 UTC (6 years, 4 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
File length: 10931 byte(s)
Diff to previous 2654
Update GPL header, debugging issue with (p,h) for Water.

Revision 2654 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 16 02:04:07 2013 UTC (6 years, 4 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
File length: 10998 byte(s)
Diff to previous 2649
Merged (copied) fprops2 branch to trunk. This copy overwrites the trunk version of fprops,
and history is preserved via the fprops2 sequence. I hope that's OK...

Revision 2649 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 12 12:39:25 2012 UTC (6 years, 5 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
File length: 12711 byte(s)
Diff to previous 2301
Fixing GPL header, removing postal address (rpmlint incorrect-fsf-address)

Revision 2301 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 21 13:28:35 2010 UTC (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
File length: 12783 byte(s)
Diff to previous 2293
Regen toluene model working, next water.

Revision 2293 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 16 08:46:28 2010 UTC (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
File length: 12758 byte(s)
Diff to previous 2292
sat_T routine returns critical point properties if T is within 1e-8 K of critical point.

Revision 2292 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 16 08:39:06 2010 UTC (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
File length: 12636 byte(s)
Diff to previous 2290
Added C test code for testing saturation curve (./test.py carbondioxide).

Revision 2290 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 15 10:11:54 2010 UTC (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (8 years, 9 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (9 years, 3 months ago) by mahesh
Original Path: trunk/models/johnpye/fprops/sat.c
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 (9 years, 5 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (9 years, 5 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (9 years, 5 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (9 years, 5 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (9 years, 5 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (9 years, 5 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (9 years, 5 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (9 years, 5 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (9 years, 5 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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 (9 years, 5 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/sat.c
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