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

Log of /trunk/models/johnpye/fprops/fluids/carbondioxide.c

Parent Directory Parent Directory | Revision Log Revision Log


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

Revision 2764 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 26 06:54:19 2014 UTC (4 years, 7 months ago) by jpye
File length: 31245 byte(s)
Diff to previous 2763
added lamr, lamr+lam0 tests for CO2 -- passing.

Revision 2763 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 25 23:54:44 2014 UTC (4 years, 7 months ago) by jpye
File length: 30193 byte(s)
Diff to previous 2762
added lamr test

Revision 2762 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 25 08:44:18 2014 UTC (4 years, 7 months ago) by jpye
File length: 29354 byte(s)
Diff to previous 2761
lam0 fixed :-/

Revision 2761 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 25 08:28:58 2014 UTC (4 years, 7 months ago) by jpye
File length: 29120 byte(s)
Diff to previous 2760
added debug spreadsheet for lam0 for CO2.

Revision 2760 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 24 06:20:40 2014 UTC (4 years, 8 months ago) by jpye
File length: 29072 byte(s)
Diff to previous 2759
working more on thermal conductivity, trying to get agreement on lam0 from different sources.

Revision 2759 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 21 11:25:55 2014 UTC (4 years, 8 months ago) by jpye
File length: 28285 byte(s)
Diff to previous 2757
thcond test for nitrogen.

Revision 2757 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 20 06:36:28 2014 UTC (4 years, 8 months ago) by jpye
File length: 28250 byte(s)
Diff to previous 2756
more on thcond

Revision 2756 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 20 06:07:13 2014 UTC (4 years, 8 months ago) by jpye
File length: 28261 byte(s)
Diff to previous 2755
working on test code for thcond.

Revision 2755 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 20 05:51:57 2014 UTC (4 years, 8 months ago) by jpye
File length: 27251 byte(s)
Diff to previous 2753
starting work on thermal conductivity implementation (with CO2 as first candidate).

Revision 2753 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 19 01:34:08 2014 UTC (4 years, 8 months ago) by jpye
File length: 26676 byte(s)
Diff to previous 2748
viscosity working for both CO2 and nitrogen. some disagreement with original publication for CO2, perhaps due to different EOS? will leave it for now as errors are <1%.

Revision 2748 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Mar 9 03:03:26 2014 UTC (4 years, 8 months ago) by jpye
File length: 25575 byte(s)
Diff to previous 2746
more on viscosity calculation, including initialisation, and CO2 data.

Revision 2746 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 8 04:28:08 2014 UTC (4 years, 8 months ago) by jpye
File length: 25385 byte(s)
Diff to previous 2745
viscosity data for CO2 partly implemented

Revision 2745 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 8 03:49:37 2014 UTC (4 years, 8 months ago) by jpye
File length: 24964 byte(s)
Diff to previous 2728
starting on viscosity support in FPROPS

Revision 2728 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 6 08:39:44 2013 UTC (4 years, 11 months ago) by jpye
File length: 24844 byte(s)
Diff to previous 2661
cleaned up refstate stuff in carbondioxide (test is still passing).
initial notes on FPROPS_REF_FORM for defining reference state relative
to enthalpy of formation at standard conditions.

Revision 2661 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 17 00:15:12 2013 UTC (5 years, 10 months ago) by jpye
File length: 25017 byte(s)
Diff to previous 2660
Update GPL header, debugging issue with (p,h) for Water.

Revision 2660 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 16 05:57:03 2013 UTC (5 years, 10 months ago) by jpye
File length: 25084 byte(s)
Diff to previous 2654
Working on updating rankine_fprops and associated models to work with new fprops2 code.
Some issue discovered with (p,h) for water (added python/solve_ph1.py to check it).
Next cunit tests to drive some ASCEND models embedding FPROPS (note use of slvreq for this).

Revision 2654 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 16 02:04:07 2013 UTC (5 years, 10 months ago) by jpye
File length: 25112 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 (5 years, 11 months ago) by jpye
File length: 25100 byte(s)
Diff to previous 2300
Fixing GPL header, removing postal address (rpmlint incorrect-fsf-address)

Revision 2300 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 20 13:50:05 2010 UTC (8 years, 3 months ago) by jpye
File length: 25172 byte(s)
Diff to previous 2299
Fixing test routine.

Revision 2299 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 20 06:53:38 2010 UTC (8 years, 3 months ago) by jpye
File length: 25166 byte(s)
Diff to previous 2298
Automatic generation of the fluids list completed now (hopefully).

Revision 2298 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 20 05:50:25 2010 UTC (8 years, 3 months ago) by jpye
File length: 25163 byte(s)
Copied from: trunk/models/johnpye/fprops/carbondioxide.c revision 2297
Diff to previous 2297
moving fluids to subdirectory.

Revision 2297 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 20 05:47:43 2010 UTC (8 years, 3 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 25163 byte(s)
Diff to previous 2292
Working on streamlined system for adding/retrieving fluids.

Revision 2292 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 16 08:39:06 2010 UTC (8 years, 3 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 25168 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, 3 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 23775 byte(s)
Diff to previous 2288
Trying to catch errors associated with pressure below triple point for CO2.

Revision 2288 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 15 06:16:13 2010 UTC (8 years, 3 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 23345 byte(s)
Diff to previous 2271
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 2271 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 8 12:17:00 2010 UTC (8 years, 3 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 23281 byte(s)
Diff to previous 2262
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 2262 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 5 08:34:43 2010 UTC (8 years, 3 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 23362 byte(s)
Diff to previous 2246
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 2246 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 2 05:47:27 2010 UTC (8 years, 3 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 23649 byte(s)
Diff to previous 2230
Added *calculated* values of p_c to data, fixes problems with satcvgc.py for most cases.

Revision 2230 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 27 01:56:55 2010 UTC (8 years, 3 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 23626 byte(s)
Diff to previous 2228
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 2228 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 26 13:20:51 2010 UTC (8 years, 3 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 23619 byte(s)
Diff to previous 2225
Add 'name' and 'T_t' (triple-point temperature) to HelmholtzData struct.
Add satcvgc.py for quick check of convergence of fprops_sat_T routine over 'all' fluids.

Revision 2225 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 26 03:40:18 2010 UTC (8 years, 3 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 23530 byte(s)
Diff to previous 2224
Added python bindings for new function. 
We can see that it's not converging for about 10% of cases.

Revision 2224 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 26 01:14:48 2010 UTC (8 years, 3 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 23567 byte(s)
Diff to previous 2222
Saturation curve is converging now, for CO2 and water, but haven't yet tested its 'safe' range.
There will certainly still be problems near the critical point.

Revision 2222 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 25 14:45:45 2010 UTC (8 years, 3 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 23458 byte(s)
Diff to previous 2123
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 2123 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 14 08:14:44 2009 UTC (8 years, 11 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 23575 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 (8 years, 11 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 23469 byte(s)
Diff to previous 2119
Attempt at implementing solver for saturation state using GSL fdfsolver.

Revision 2119 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 9 08:40:36 2009 UTC (8 years, 11 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 23473 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 (8 years, 11 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 23403 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 (8 years, 11 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 23401 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 (8 years, 11 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 23282 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]
Modified Tue Dec 8 08:08:00 2009 UTC (8 years, 11 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 23238 byte(s)
Diff to previous 2113
Starting some more work on saturation curves.

Revision 2113 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 8 03:37:27 2009 UTC (8 years, 11 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 23018 byte(s)
Diff to previous 2112
Update copyright info. Add citation for CO2.

Revision 2112 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 8 03:13:39 2009 UTC (8 years, 11 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 22732 byte(s)
Diff to previous 2111
Fixing for new test.h fn sig.

Revision 2111 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 8 03:05:36 2009 UTC (8 years, 11 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 22392 byte(s)
Diff to previous 2110
CO2 correlation looks to be working now.
Work on support for SUNDIALS on Windows.

Revision 2110 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 7 04:13:05 2009 UTC (8 years, 11 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 16779 byte(s)
Diff to previous 2109
Still working on CO2 bugs.

Revision 2109 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 7 01:53:33 2009 UTC (8 years, 11 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 15938 byte(s)
Diff to previous 2108
Fixed problem with CO2 pressure calc. Still need to fix c,m for enthalpy & entropy.

Revision 2108 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 6 08:35:27 2009 UTC (8 years, 11 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 15159 byte(s)
Diff to previous 2107
Fixed error in CO2 cp0 expr.

Revision 2107 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 4 06:25:16 2009 UTC (8 years, 11 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 14825 byte(s)
Diff to previous 2106
More work on the carbon dioxide coefficients.

Revision 2106 - (view) (download) (as text) (annotate) - [select for diffs]
Added Thu Dec 3 08:29:21 2009 UTC (8 years, 11 months ago) by jpye
Original Path: trunk/models/johnpye/fprops/carbondioxide.c
File length: 4712 byte(s)
Starting on CO2 properties from paper by Span and Wagner.

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