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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

Revision 1994 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 4 03:52:36 2009 UTC (11 years, 6 months ago) by jpye
File length: 26360 byte(s)
Diff to previous 1993
Still some error near critical point for calculation of speed of sound.
However this error is not reconcilable with both IAPWS95 and REFPROP8, because those
two sources give different values. The value returned by FPROPS is midway between
the two.

Revision 1993 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 3 23:52:53 2009 UTC (11 years, 6 months ago) by jpye
File length: 26356 byte(s)
Diff to previous 1990
Normalising code for critical terms; still a bug with calculation of helmholtz_w in critical region.

Revision 1990 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 3 11:12:40 2009 UTC (11 years, 6 months ago) by jpye
File length: 27445 byte(s)
Diff to previous 1989
Added critical terms to helm_resid_deldel and helm_resid_deltau.
Tests are still not passing though, need to check for errors.

Revision 1989 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 3 07:29:29 2009 UTC (11 years, 6 months ago) by jpye
File length: 24958 byte(s)
Diff to previous 1988
Added helmholtz_w and helmholtz_cp.
Added test for helmholtz_w with water.
This exposes the fact that helm_resid_deldel and helm_resid_deltau need critical terms added.

Revision 1988 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 3 05:38:33 2009 UTC (11 years, 6 months ago) by jpye
File length: 23322 byte(s)
Diff to previous 1987
Added critical terms to helm_resid_tautau.
Tests for water for cv pass.

Revision 1987 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 3 05:25:49 2009 UTC (11 years, 6 months ago) by jpye
File length: 21887 byte(s)
Diff to previous 1986
Added evaluation of helm_resid_tau, gives correct values for entropy with water.

Revision 1986 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 3 05:19:15 2009 UTC (11 years, 6 months ago) by jpye
File length: 21149 byte(s)
Diff to previous 1985
Fixed helm_resid and helm_resid_del with critical terms.

Revision 1985 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 3 01:15:17 2009 UTC (11 years, 6 months ago) by jpye
File length: 20373 byte(s)
Diff to previous 1921
Added critical term calculation in helm_resid.
Added gaussian and critical term values for water from IAPWS95.
Added some test data from IAPWS95 to water.c tests.

Revision 1921 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 3 07:06:12 2008 UTC (11 years, 10 months ago) by jpye
File length: 20001 byte(s)
Diff to previous 1920
Fixed (du/drho)_T

Revision 1920 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 3 07:02:27 2008 UTC (11 years, 10 months ago) by jpye
File length: 19985 byte(s)
Diff to previous 1919
Fixed bug with du/dT and dh/dT.

Revision 1919 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 3 05:52:22 2008 UTC (11 years, 10 months ago) by jpye
File length: 19169 byte(s)
Diff to previous 1918
Implemented (dh/drho)_T

Revision 1918 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 3 05:13:08 2008 UTC (11 years, 10 months ago) by jpye
File length: 18909 byte(s)
Diff to previous 1917
Fixed problem with dh/dT_rho.

Revision 1917 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 3 04:36:44 2008 UTC (11 years, 10 months ago) by jpye
File length: 18905 byte(s)
Diff to previous 1915
Fixed most of the problem with dh/dT_rho, still not right.

Revision 1915 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 2 08:49:17 2008 UTC (11 years, 10 months ago) by jpye
File length: 18691 byte(s)
Diff to previous 1909
Adding calculation of derivatives of h.

Revision 1909 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 28 07:41:24 2008 UTC (11 years, 10 months ago) by jpye
File length: 15728 byte(s)
Diff to previous 1908
The helmholtz_p function now provides its own derivatives to ASCEND.
Restored full test suite for Hydrogen.

Revision 1908 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 27 11:52:27 2008 UTC (11 years, 10 months ago) by jpye
File length: 15616 byte(s)
Diff to previous 1907
helm_resid_deldel working now, dpdrho_T fixed. Need to wire in with ASCEND now.

Revision 1907 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 27 09:45:06 2008 UTC (11 years, 10 months ago) by jpye
File length: 15576 byte(s)
Diff to previous 1906
Working on dpdrho_T, still looks like problems with Gaussian terms.

Revision 1906 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 27 08:56:29 2008 UTC (11 years, 10 months ago) by jpye
File length: 15432 byte(s)
Diff to previous 1905
Fixed initialisation error in helm_resid_deltau.

Revision 1905 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 27 04:54:12 2008 UTC (11 years, 10 months ago) by jpye
File length: 14899 byte(s)
Diff to previous 1904
Calculated (dp/dT)_rho, seems to look OK when testing with hydrogen.

Revision 1904 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 27 03:32:21 2008 UTC (11 years, 10 months ago) by jpye
File length: 13804 byte(s)
Diff to previous 1900
Removed redundant HelmholtzExpTerm, and corrected nitrogen.c to use
HelmholtzGausTerm instead.

Revision 1900 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 25 07:34:56 2008 UTC (11 years, 10 months ago) by jpye
File length: 15929 byte(s)
Diff to previous 1899
fixed helm_resid_tau for calculation of gaussian terms.

Revision 1899 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 25 07:31:56 2008 UTC (11 years, 10 months ago) by jpye
File length: 15946 byte(s)
Diff to previous 1898
Fixed hydrogen for helmholtz_p (there was a typo in the power term coeffs!)

Revision 1898 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 25 07:01:05 2008 UTC (11 years, 10 months ago) by jpye
File length: 15966 byte(s)
Diff to previous 1897
Debugging hydrogen, checked helm_resid_del values against spread, seem OK...

Revision 1897 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 25 03:46:29 2008 UTC (11 years, 10 months ago) by jpye
File length: 16102 byte(s)
Diff to previous 1891
Fixed small bug in helm_resid_tau, but still not correct.

Revision 1891 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 23 06:46:28 2008 UTC (11 years, 10 months ago) by jpye
File length: 16341 byte(s)
Diff to previous 1890
Fixed bug in helm_resid_tau for gaussian terms.

Revision 1890 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 22 11:05:46 2008 UTC (11 years, 10 months ago) by jpye
File length: 15227 byte(s)
Diff to previous 1889
Note about wrong functions (needing rewrite).

Revision 1889 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 22 10:19:52 2008 UTC (11 years, 10 months ago) by jpye
File length: 15163 byte(s)
Diff to previous 1887
Fixed little error with nitrogen after last changes.

Revision 1887 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 22 10:05:27 2008 UTC (11 years, 10 months ago) by jpye
File length: 14980 byte(s)
Diff to previous 1885
Working on debugging gaussian terms.

Revision 1885 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 19 04:46:18 2008 UTC (11 years, 10 months ago) by jpye
File length: 13696 byte(s)
Diff to previous 1872
Starting work on data structures for 'critical terms' as used in water and hydrogen correlations.

Revision 1872 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 17 08:18:41 2008 UTC (11 years, 10 months ago) by jpye
File length: 13709 byte(s)
Diff to previous 1871
Worked out that errors in helmholtz_a are linear in T... what to do?

Revision 1871 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 17 07:36:27 2008 UTC (11 years, 10 months ago) by jpye
File length: 13686 byte(s)
Diff to previous 1870
More accurate value of the linear constant gives better agreement of h, u for nitrogen.

Revision 1870 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 17 06:45:10 2008 UTC (11 years, 10 months ago) by jpye
File length: 13684 byte(s)
Diff to previous 1868
Fixed error in helmholtz_a.

Revision 1868 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 17 06:37:45 2008 UTC (11 years, 10 months ago) by jpye
File length: 13675 byte(s)
Diff to previous 1867
More debugging

Revision 1867 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 15 14:30:49 2008 UTC (11 years, 11 months ago) by jpye
File length: 13616 byte(s)
Diff to previous 1865
helm_resid seems to agree with spreadsheet now,
still perhaps probs with helm_ideal.

Revision 1865 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 15 08:40:14 2008 UTC (11 years, 11 months ago) by jpye
File length: 13268 byte(s)
Diff to previous 1864
Still working on fixing helmholtz_a.

Revision 1864 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 15 03:36:16 2008 UTC (11 years, 11 months ago) by jpye
File length: 14270 byte(s)
Diff to previous 1863
working on debugging helmholtz_a.

Revision 1863 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 15 03:12:29 2008 UTC (11 years, 11 months ago) by jpye
File length: 14215 byte(s)
Diff to previous 1861
Added tests for Helmholtz energy, still failing.

Revision 1861 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 14 08:37:50 2008 UTC (11 years, 11 months ago) by jpye
File length: 13547 byte(s)
Diff to previous 1857
Fix offsets for u, h.
Still need to fix entropy routines.

Revision 1857 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 11 14:46:51 2008 UTC (11 years, 11 months ago) by jpye
File length: 13553 byte(s)
Diff to previous 1855
p, u, h working for nitrogen, still problems with s.

Revision 1855 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 11 13:50:55 2008 UTC (11 years, 11 months ago) by jpye
File length: 13559 byte(s)
Diff to previous 1851
Fixed evaluation of cp0 for both ammonia and nitrogen now.

Revision 1851 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 10 09:17:43 2008 UTC (11 years, 11 months ago) by jpye
File length: 13565 byte(s)
Diff to previous 1850
Fixed up some warnings for non-test mode.

Revision 1850 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 2 06:56:47 2008 UTC (11 years, 11 months ago) by jpye
File length: 13559 byte(s)
Diff to previous 1847
Added ideal cp0 values to test data and added
calculation function for this. Works for nitrogen 
but not for ammonia.

Revision 1847 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 1 05:42:21 2008 UTC (11 years, 11 months ago) by jpye
File length: 13367 byte(s)
Diff to previous 1845
Split out ideal curves from helmholtz.c.

Revision 1845 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 30 15:02:45 2008 UTC (11 years, 11 months ago) by jpye
File length: 14881 byte(s)
Diff to previous 1844
Working on helmholtz_h with nitrogen.

Revision 1844 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Aug 30 07:33:11 2008 UTC (11 years, 11 months ago) by jpye
File length: 12213 byte(s)
Diff to previous 1841
Cleaned up helmholtz_resid_del, seems to be fixed now.

Revision 1841 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 29 07:27:59 2008 UTC (11 years, 11 months ago) by jpye
File length: 13107 byte(s)
Diff to previous 1840
Fixed calculation of nitrogen helmholtz_p.

Revision 1840 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 29 03:52:04 2008 UTC (11 years, 11 months ago) by jpye
File length: 12520 byte(s)
Diff to previous 1839
Fixed test data for ammonia p,h,s: agreement to 0.09% for all values.

Revision 1839 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 28 09:20:11 2008 UTC (11 years, 11 months ago) by jpye
File length: 12492 byte(s)
Diff to previous 1838
Getting closer with nitrogen test data.

Revision 1838 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 28 08:32:29 2008 UTC (11 years, 11 months ago) by jpye
File length: 12227 byte(s)
Diff to previous 1836
Added 'exponential' terms for nitrogen correlation (still testing).

Revision 1836 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 25 08:32:38 2008 UTC (11 years, 11 months ago) by jpye
File length: 11207 byte(s)
Diff to previous 1835
Fixed helm_resid and helm_resid_tau.

Revision 1835 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 25 08:18:23 2008 UTC (11 years, 11 months ago) by jpye
File length: 11409 byte(s)
Diff to previous 1832
Checked in generalised version of ideal gas component.
Working on adding the 'exponential' term for the Nitrogen correlation.

Revision 1832 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 22 07:23:58 2008 UTC (11 years, 11 months ago) by jpye
File length: 12302 byte(s)
Diff to previous 1831
Refactor helm_resid_tau.

Revision 1831 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 22 05:54:53 2008 UTC (11 years, 11 months ago) by jpye
File length: 20546 byte(s)
Diff to previous 1830
Fix copyright date.

Revision 1830 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 22 05:54:04 2008 UTC (11 years, 11 months ago) by jpye
File length: 20546 byte(s)
Diff to previous 1829
All tests pass to max error 2.0% (errors for low temperature liquids)

Revision 1829 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 22 05:00:53 2008 UTC (11 years, 11 months ago) by jpye
File length: 19726 byte(s)
Diff to previous 1828
Added entropy relation and tests. All entropy tests pass to within 0.03%.

Revision 1828 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 22 00:48:31 2008 UTC (11 years, 11 months ago) by jpye
File length: 15641 byte(s)
Diff to previous 1827
Fixed some problems with helmholtz_h.

Revision 1827 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 21 09:36:00 2008 UTC (11 years, 11 months ago) by jpye
File length: 14970 byte(s)
Diff to previous 1826
Test cases for helmholtz_p now passing, need to fix helmholtz_u.

Revision 1826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 21 08:32:33 2008 UTC (11 years, 11 months ago) by jpye
File length: 12639 byte(s)
Diff to previous 1825
Fixed: tests for pressure relation are working now.

Revision 1825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 21 05:03:19 2008 UTC (11 years, 11 months ago) by jpye
File length: 6161 byte(s)
Diff to previous 1824
Added functions for enthalpy and internal energy.
Test suites still needed!

Revision 1824 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 21 02:28:32 2008 UTC (11 years, 11 months ago) by jpye
File length: 6162 byte(s)
Diff to previous 1822
Added helmholtz_u and helmholtz_h, still require testing.

Revision 1822 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 20 09:06:39 2008 UTC (11 years, 11 months ago) by jpye
File length: 3578 byte(s)
Diff to previous 1810
More on helmholtz functions.

Revision 1810 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue Jul 29 07:45:48 2008 UTC (12 years ago) by jpye
File length: 2802 byte(s)
Added new code for calculating properties according to modified BWR correlation, also some initial
work on Helmholtz free energy correlation.

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