From 7dfcc480ba1e19bd3232349fc733caef94034292 Mon Sep 17 00:00:00 2001 From: stainer_t Date: Mon, 8 Sep 2025 13:48:49 +0200 Subject: Initial commit from Polytechnique Montreal --- Utilib/src/HEAVYSTEAM.f90 | 390 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 390 insertions(+) create mode 100644 Utilib/src/HEAVYSTEAM.f90 (limited to 'Utilib/src/HEAVYSTEAM.f90') diff --git a/Utilib/src/HEAVYSTEAM.f90 b/Utilib/src/HEAVYSTEAM.f90 new file mode 100644 index 0000000..62c97d5 --- /dev/null +++ b/Utilib/src/HEAVYSTEAM.f90 @@ -0,0 +1,390 @@ +! +!----------------------------------------------------------------------- +! +!Purpose: +! Heavy water properties +! +!Copyright: +! Copyright (C) 2018 Ecole Polytechnique de Montreal +! This library is free software; you can redistribute it and/or +! modIFy it under the terms of the GNU Lesser General Public +! License as published by the Free Software Foundation; either +! version 2.1 of the License, or (at your option) any later version. +! +!Author(s): G. Marleau and A. Hebert +! +!----------------------------------------------------------------------- +! +subroutine THMHSP(p, t) +! return the saturation pressure (Pa) as a function of the temperature (K) +! Ref: Ji. Zhang, January 20, 98 + real :: p, t + double precision :: tcd,zd,pd + character hsmg*131 + ! + tcd=dble(t-273.16) + pd=0.0D0 + IF(tcd .LT. 90.5D0 .OR. tcd.GT.370.74D0) THEN + WRITE(hsmg,*) 'THMHSP: T =',tcd,'C exceeds the valid temperature range', & + & ' for automatic pressure evaluation (90.5