Skip to content

Commit 33e5313

Browse files
authored
Merge pull request #200 from thermotools/fix_cp
Fix cp correlation identifiers.
2 parents 9be20cc + 73e4c56 commit 33e5313

9 files changed

Lines changed: 17 additions & 14 deletions

File tree

addon/cppExamples/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# before running cmake, in order to force compilation for arm64.
1010

1111
project(cppExamples)
12-
cmake_minimum_required(VERSION 3.2)
12+
cmake_minimum_required(VERSION 3.20)
1313

1414
string(ASCII 27 Esc)
1515
set(ColourRed "${Esc}[31m")

docs/vCurrent/Component-name-mapping.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permalink: /vcurrent/Component-name-mapping.html
88

99
<!---
1010
This is an auto-generated file, written by the module at addon/pyUtils/compdatadb.py
11-
Generated at : 2024-02-19T15:48:32.012730
11+
Generated at : 2025-09-12T11:47:50.087083
1212
This is the same module that is used to generate the Fortran
1313
component database files.
1414
--->
@@ -105,7 +105,7 @@ You may have to scroll right to view the whole table.
105105
| Trichlorofluoromethane | 75-69-4 | R11 | | | |
106106
| Trifluoroamine oxide | 13847-65-9 | F3NO | | | |
107107
| Trifluoromethane | 75-46-7 | R23 | | | |
108-
| Water | 7732-18 | H2O | &#10004; | &#10004; | &#10004; |
108+
| Water | 7732-18-5 | H2O | &#10004; | &#10004; | &#10004; |
109109
| Xenon | 7440-63-3 | XE | &#10004; | | |
110110
| m-Xylene | 108-38-3 | MXYL | | | |
111111
| n-Butane | 106-97-8 | NC4 | &#10004; | &#10004; | &#10004; |

fluids/Hydrogen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"ideal_heat_capacity-1": {
4848
"ref": "MEOS/Default",
4949
"bib_reference": "Leachman (2009), DOI: 10.1063/1.3160306",
50-
"correlation": 13,
50+
"correlation": 12,
5151
"cp": [
5252
2.5,
5353
1.616,

fluids/HydrogenPeroxide.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"ideal_heat_capacity-1": {
4747
"ref": "Default",
4848
"bib_reference": "https://webbook.nist.gov",
49-
"correlation": 12,
49+
"correlation": 11,
5050
"cp": [
5151
34.25667,
5252
55.18445,

fluids/Krypton.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"ideal_heat_capacity-1": {
4747
"ref": "Default",
4848
"bib_reference": "NIST-Chase1998",
49-
"correlation": 12,
49+
"correlation": 11,
5050
"cp": [
5151
20.78603,
5252
4.850638e-10,

fluids/OrthoHydrogen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"ideal_heat_capacity-1": {
4949
"ref": "MEOS/Default",
5050
"bib_reference": "Leachman (2009), DOI: 10.1063/1.3160306",
51-
"correlation": 13,
51+
"correlation": 12,
5252
"cp": [
5353
2.5,
5454
2.54151,

fluids/ParaHydrogen.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"ideal_heat_capacity-1": {
4949
"ref": "MEOS/Default",
5050
"bib_reference": "Leachman (2009), DOI: 10.1063/1.3160306",
51-
"correlation": 13,
51+
"correlation": 12,
5252
"cp": [
5353
2.5,
5454
4.30256,

src/compdatadb.f90

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
!> Automatically generated to file compdatadb.f90
22
!! using utility python code pyUtils
3-
!! Time stamp: 2024-10-28T15:26:42.069790
3+
!! Time stamp: 2025-09-12T11:47:50.071313
44

55
module compdatadb
66
use compdata, only: gendatadb, cpdata, alphadatadb, cidatadb, CPAdata
@@ -2473,7 +2473,7 @@ module compdatadb
24732473
cpdata(cid = "H2", &
24742474
ref = "MEOS/Default", &
24752475
bib_ref = "Leachman (2009), DOI: 10.1063/1.3160306", &
2476-
cptype = 13, &
2476+
cptype = 12, &
24772477
cp = (/2.50000000e+00,1.61600000e+00,5.31000000e+02,-4.11700000e-01,7.51000000e+02, &
24782478
-7.92000000e-01,1.98900000e+03,7.58000000e-01,2.48400000e+03,1.21700000e+00, &
24792479
6.85900000e+03,0.0d0,0.0d0,0.0d0,0.0d0, &
@@ -2580,7 +2580,7 @@ module compdatadb
25802580
cpdata(cid = "H2O2", &
25812581
ref = "Default", &
25822582
bib_ref = "https://webbook.nist.gov", &
2583-
cptype = 12, &
2583+
cptype = 11, &
25842584
cp = (/3.42566700e+01,5.51844500e+01,-3.51544300e+01,9.08744000e+00,-4.22157000e-01, &
25852585
0.00000000e+00,0.00000000e+00,0.00000000e+00,0.00000000e+00,0.00000000e+00, &
25862586
0.0d0,0.0d0,0.0d0,0.0d0,0.0d0, &
@@ -2961,7 +2961,7 @@ module compdatadb
29612961
cpdata(cid = "KR", &
29622962
ref = "Default", &
29632963
bib_ref = "NIST-Chase1998", &
2964-
cptype = 12, &
2964+
cptype = 11, &
29652965
cp = (/2.07860300e+01,4.85063800e-10,-1.58291600e-10,1.52510200e-11,3.19634700e-11, &
29662966
0.00000000e+00,0.00000000e+00,0.00000000e+00,0.00000000e+00,0.00000000e+00, &
29672967
0.0d0,0.0d0,0.0d0,0.0d0,0.0d0, &
@@ -3842,7 +3842,7 @@ module compdatadb
38423842
cpdata(cid = "O-H2", &
38433843
ref = "MEOS/Default", &
38443844
bib_ref = "Leachman (2009), DOI: 10.1063/1.3160306", &
3845-
cptype = 13, &
3845+
cptype = 12, &
38463846
cp = (/2.50000000e+00,2.54151000e+00,8.56000000e+02,-2.36610000e+00,1.44400000e+03, &
38473847
1.00365000e+00,2.19400000e+03,1.22447000e+00,6.96800000e+03,0.0d0, &
38483848
0.0d0,0.0d0,0.0d0,0.0d0,0.0d0, &
@@ -4052,7 +4052,7 @@ module compdatadb
40524052
cpdata(cid = "P-H2", &
40534053
ref = "MEOS/Default", &
40544054
bib_ref = "Leachman (2009), DOI: 10.1063/1.3160306", &
4055-
cptype = 13, &
4055+
cptype = 12, &
40564056
cp = (/2.50000000e+00,4.30256000e+00,4.99000000e+02,1.30289000e+01,8.26500000e+02, &
40574057
-4.77365000e+01,9.70800000e+02,5.00013000e+01,1.16620000e+03,-1.86261000e+01, &
40584058
1.34140000e+03,9.93973000e-01,5.39500000e+03,5.36078000e-01,1.01850000e+04, &

src/ideal.f90

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,9 @@ function CPideal(comp, i, T) result (Cp_id)
299299
enddo
300300
Cp_id = Cp_id*rgas
301301

302+
case default
303+
call stoperror("Invalid Cp correlation")
304+
302305
end select method_Cp
303306
end function CPideal
304307

0 commit comments

Comments
 (0)