summaryrefslogtreecommitdiff
path: root/Donjon/src/THMSCD.f
blob: 83a818724d43355b9bba2cc4f30f01de85316792 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
*DECK THMSCD
      REAL FUNCTION THMSCD(TEMP,FTP,IMPX)
*
*-----------------------------------------------------------------------
*
*Purpose:
* Compute the product of the heat capacity of fuel (in J/Kg/K) times
* its density (in Kg/m^3). Version for molten salts.
*
*Copyright:
* Copyright (C) 2024 Ecole Polytechnique de Montreal.
*
*Author(s): 
* C. Garrido
*
*Parameters: input
* TEMP    fuel temperature in Kelvin.
* FTP     tpdata object with correlations to obtain properties of 
*         molten salt.
* 
*Parameters: output
* THMSCD  product of the heat capacity of fuel times its density
*         (in J/K/m^3).
*
*-----------------------------------------------------------------------
*
      USE t_saltdata
      IMPLICIT NONE
*----
*  SUBROUTINE ARGUMENTS
*----
      TYPE(tpdata) FTP
      REAL TEMP
      INTEGER IMPX
*----
*  LOCAL VARIABLES
*  CP:    heat capacity in J/Kg/K
*  RHO: fuel density Kg/m^3
*----
      REAL CP,RHO,R2,R3,R4
*
      CALL THMSPT(FTP,TEMP,RHO,R2,R3,R4,CP,IMPX)
      THMSCD=RHO*CP
      RETURN
      END