[3] | 1 | MODULE phycst |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE phycst *** |
---|
| 4 | !! Definition of of both ocean and ice parameters used in the code |
---|
| 5 | !!===================================================================== |
---|
[888] | 6 | !! History : ! 90-10 (C. Levy - G. Madec) Original code |
---|
| 7 | !! ! 91-11 (G. Madec) |
---|
| 8 | !! ! 91-12 (M. Imbard) |
---|
| 9 | !! 8.5 ! 02-08 (G. Madec, C. Ethe) F90, add ice constants |
---|
| 10 | !! 9.0 ! 06-08 (G. Madec) style |
---|
| 11 | !!---------------------------------------------------------------------- |
---|
| 12 | |
---|
| 13 | !!---------------------------------------------------------------------- |
---|
| 14 | !! phy_cst : define and print physical constant and domain parameters |
---|
| 15 | !!---------------------------------------------------------------------- |
---|
[3] | 16 | USE par_oce ! ocean parameters |
---|
| 17 | USE in_out_manager ! I/O manager |
---|
| 18 | |
---|
| 19 | IMPLICIT NONE |
---|
| 20 | PRIVATE |
---|
| 21 | |
---|
[888] | 22 | PUBLIC phy_cst ! routine called by inipar.F90 |
---|
[3] | 23 | |
---|
[888] | 24 | REAL(wp), PUBLIC :: rpi = 3.141592653589793_wp !: pi |
---|
| 25 | REAL(wp), PUBLIC :: rad = 3.141592653589793_wp / 180._wp !: conversion from degre into radian |
---|
| 26 | REAL(wp), PUBLIC :: rsmall = 0.5 * EPSILON( 1. ) !: smallest real computer value |
---|
[3] | 27 | |
---|
[15] | 28 | REAL(wp), PUBLIC :: & !: |
---|
[3] | 29 | rday = 24.*60.*60. , & !: day (s) |
---|
| 30 | rsiyea , & !: sideral year (s) |
---|
| 31 | rsiday , & !: sideral day (s) |
---|
| 32 | raamo = 12._wp , & !: number of months in one year |
---|
| 33 | rjjhh = 24._wp , & !: number of hours in one day |
---|
| 34 | rhhmm = 60._wp , & !: number of minutes in one hour |
---|
| 35 | rmmss = 60._wp , & !: number of seconds in one minute |
---|
| 36 | !!! omega = 7.292115083046061e-5_wp , & !: change the last digit! |
---|
| 37 | omega , & !: earth rotation parameter |
---|
| 38 | ra = 6371229._wp , & !: earth radius (meter) |
---|
[15] | 39 | grav = 9.80665_wp !: gravity (m/s2) |
---|
[3] | 40 | |
---|
[15] | 41 | REAL(wp), PUBLIC :: & !: |
---|
[3] | 42 | rtt = 273.16_wp , & !: triple point of temperature (Kelvin) |
---|
| 43 | rt0 = 273.15_wp , & !: freezing point of water (Kelvin) |
---|
[833] | 44 | #if defined key_lim3 |
---|
| 45 | rt0_snow = 273.16_wp , & !: melting point of snow (Kelvin) |
---|
| 46 | rt0_ice = 273.16_wp , & !: melting point of ice (Kelvin) |
---|
| 47 | #else |
---|
[3] | 48 | rt0_snow = 273.15_wp , & !: melting point of snow (Kelvin) |
---|
| 49 | rt0_ice = 273.05_wp , & !: melting point of ice (Kelvin) |
---|
[833] | 50 | #endif |
---|
[1739] | 51 | rau0 = 1035._wp , & !: volumic mass of reference (kg/m3) |
---|
[888] | 52 | rauw = 1000._wp , & !: volumic mass of pure water (kg/m3) |
---|
[3] | 53 | rcp = 4.e+3_wp, & !: ocean specific heat |
---|
[2141] | 54 | ro0cpr , & !: = 1. / ( rau0 * rcp ) |
---|
| 55 | rpref = 101000._wp !: reference pressure for sea surface |
---|
[3] | 56 | |
---|
[15] | 57 | REAL(wp), PUBLIC :: & !: |
---|
[833] | 58 | #if defined key_lim3 |
---|
| 59 | rcdsn = 0.31_wp , & !: thermal conductivity of snow |
---|
| 60 | rcdic = 2.034396_wp , & !: thermal conductivity of fresh ice |
---|
| 61 | cpic = 2067.0 , & |
---|
| 62 | ! add the following lines |
---|
| 63 | lsub = 2.834e+6 , & !: pure ice latent heat of sublimation (J.kg-1) |
---|
| 64 | lfus = 0.334e+6 , & !: latent heat of fusion of fresh ice (J.kg-1) |
---|
[888] | 65 | rhoic = 917._wp , & !: volumic mass of sea ice (kg/m3) |
---|
[833] | 66 | tmut = 0.054 , & !: decrease of seawater meltpoint with salinity |
---|
| 67 | #else |
---|
[3] | 68 | rcdsn = 0.22_wp , & !: conductivity of the snow |
---|
| 69 | rcdic = 2.034396_wp , & !: conductivity of the ice |
---|
| 70 | rcpsn = 6.9069e+5_wp, & !: density times specific heat for snow |
---|
| 71 | rcpic = 1.8837e+6_wp, & !: volumetric latent heat fusion of sea ice |
---|
| 72 | xlsn = 110.121e+6_wp , & !: volumetric latent heat fusion of snow |
---|
| 73 | xlic = 300.33e+6_wp , & !: volumetric latent heat fusion of ice |
---|
| 74 | xsn = 2.8e+6 , & !: latent heat of sublimation of snow |
---|
[888] | 75 | rhoic = 900._wp , & !: volumic mass of sea ice (kg/m3) |
---|
[833] | 76 | #endif |
---|
[888] | 77 | rhosn = 330._wp , & !: volumic mass of snow (kg/m3) |
---|
[3] | 78 | emic = 0.97_wp , & !: emissivity of snow or ice |
---|
| 79 | sice = 6.0_wp , & !: salinity of ice (psu) |
---|
| 80 | soce = 34.7_wp , & !: salinity of sea (psu) |
---|
| 81 | cevap = 2.5e+6_wp , & !: latent heat of evaporation (water) |
---|
| 82 | srgamma = 0.9_wp , & !: correction factor for solar radiation (Oberhuber, 1974) |
---|
| 83 | vkarmn = 0.4_wp , & !: von Karman constant |
---|
| 84 | stefan = 5.67e-8_wp !: Stefan-Boltzmann constant |
---|
[719] | 85 | !!---------------------------------------------------------------------- |
---|
| 86 | !! OPA 9.0 , LOCEAN-IPSL (2005) |
---|
[1152] | 87 | !! $Id$ |
---|
[719] | 88 | !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt |
---|
| 89 | !!---------------------------------------------------------------------- |
---|
[3] | 90 | |
---|
| 91 | CONTAINS |
---|
| 92 | |
---|
| 93 | SUBROUTINE phy_cst |
---|
| 94 | !!---------------------------------------------------------------------- |
---|
| 95 | !! *** ROUTINE phy_cst *** |
---|
| 96 | !! |
---|
| 97 | !! ** Purpose : Print model parameters and set and print the constants |
---|
| 98 | !!---------------------------------------------------------------------- |
---|
[888] | 99 | CHARACTER (len=64) :: cform = "(A12, 3(A13, I7) )" |
---|
[3] | 100 | !!---------------------------------------------------------------------- |
---|
| 101 | |
---|
| 102 | IF(lwp) WRITE(numout,*) |
---|
| 103 | IF(lwp) WRITE(numout,*) ' phy_cst : initialization of ocean parameters and constants' |
---|
| 104 | IF(lwp) WRITE(numout,*) ' ~~~~~~~' |
---|
| 105 | |
---|
| 106 | ! Ocean Parameters |
---|
| 107 | ! ---------------- |
---|
| 108 | IF(lwp) THEN |
---|
[888] | 109 | WRITE(numout,*) ' Domain info' |
---|
[88] | 110 | WRITE(numout,*) ' dimension of model' |
---|
[888] | 111 | WRITE(numout,*) ' Local domain Global domain Data domain ' |
---|
| 112 | WRITE(numout,cform) ' ',' jpi : ', jpi, ' jpiglo : ', jpiglo, ' jpidta : ', jpidta |
---|
| 113 | WRITE(numout,cform) ' ',' jpj : ', jpj, ' jpjglo : ', jpjglo, ' jpjdta : ', jpjdta |
---|
| 114 | WRITE(numout,cform) ' ',' jpk : ', jpk, ' jpk : ', jpk , ' jpkdta : ', jpkdta |
---|
| 115 | WRITE(numout,*) ' ',' jpij : ', jpij |
---|
[88] | 116 | WRITE(numout,*) ' mpp local domain info (mpp)' |
---|
| 117 | WRITE(numout,*) ' jpni : ', jpni, ' jpreci : ', jpreci |
---|
| 118 | WRITE(numout,*) ' jpnj : ', jpnj, ' jprecj : ', jprecj |
---|
| 119 | WRITE(numout,*) ' jpnij : ', jpnij |
---|
| 120 | WRITE(numout,*) ' lateral domain boundary condition type : jperio = ', jperio |
---|
[3] | 121 | ENDIF |
---|
| 122 | |
---|
| 123 | ! Define constants |
---|
| 124 | ! ---------------- |
---|
| 125 | IF(lwp) WRITE(numout,*) |
---|
[888] | 126 | IF(lwp) WRITE(numout,*) ' Constants' |
---|
[3] | 127 | |
---|
| 128 | IF(lwp) WRITE(numout,*) |
---|
[88] | 129 | IF(lwp) WRITE(numout,*) ' mathematical constant rpi = ', rpi |
---|
[3] | 130 | |
---|
| 131 | rsiyea = 365.25 * rday * 2. * rpi / 6.283076 |
---|
| 132 | rsiday = rday / ( 1. + rday / rsiyea ) |
---|
| 133 | omega = 2. * rpi / rsiday |
---|
| 134 | IF(lwp) WRITE(numout,*) |
---|
[88] | 135 | IF(lwp) WRITE(numout,*) ' day rday = ', rday, ' s' |
---|
| 136 | IF(lwp) WRITE(numout,*) ' sideral year rsiyea = ', rsiyea, ' s' |
---|
| 137 | IF(lwp) WRITE(numout,*) ' sideral day rsiday = ', rsiday, ' s' |
---|
| 138 | IF(lwp) WRITE(numout,*) ' omega omega = ', omega, ' s-1' |
---|
[3] | 139 | |
---|
| 140 | IF(lwp) WRITE(numout,*) |
---|
[88] | 141 | IF(lwp) WRITE(numout,*) ' nb of months per year raamo = ', raamo, ' months' |
---|
| 142 | IF(lwp) WRITE(numout,*) ' nb of hours per day rjjhh = ', rjjhh, ' hours' |
---|
| 143 | IF(lwp) WRITE(numout,*) ' nb of minutes per hour rhhmm = ', rhhmm, ' mn' |
---|
| 144 | IF(lwp) WRITE(numout,*) ' nb of seconds per minute rmmss = ', rmmss, ' s' |
---|
[3] | 145 | |
---|
| 146 | IF(lwp) WRITE(numout,*) |
---|
[88] | 147 | IF(lwp) WRITE(numout,*) ' earth radius ra = ', ra, ' m' |
---|
| 148 | IF(lwp) WRITE(numout,*) ' gravity grav = ', grav , ' m/s^2' |
---|
[3] | 149 | |
---|
| 150 | IF(lwp) WRITE(numout,*) |
---|
[88] | 151 | IF(lwp) WRITE(numout,*) ' triple point of temperature rtt = ', rtt , ' K' |
---|
| 152 | IF(lwp) WRITE(numout,*) ' freezing point of water rt0 = ', rt0 , ' K' |
---|
| 153 | IF(lwp) WRITE(numout,*) ' melting point of snow rt0_snow = ', rt0_snow, ' K' |
---|
| 154 | IF(lwp) WRITE(numout,*) ' melting point of ice rt0_ice = ', rt0_ice , ' K' |
---|
[3] | 155 | |
---|
[88] | 156 | ro0cpr = 1. / ( rau0 * rcp ) |
---|
[3] | 157 | IF(lwp) WRITE(numout,*) |
---|
[88] | 158 | IF(lwp) WRITE(numout,*) ' volumic mass of pure water rauw = ', rauw, ' kg/m^3' |
---|
| 159 | IF(lwp) WRITE(numout,*) ' volumic mass of reference rau0 = ', rau0, ' kg/m^3' |
---|
| 160 | IF(lwp) WRITE(numout,*) ' ocean specific heat rcp = ', rcp |
---|
| 161 | IF(lwp) WRITE(numout,*) ' 1. / ( rau0 * rcp ) = ro0cpr = ', ro0cpr |
---|
[3] | 162 | |
---|
| 163 | IF(lwp) THEN |
---|
| 164 | WRITE(numout,*) |
---|
[88] | 165 | WRITE(numout,*) ' thermal conductivity of the snow = ', rcdsn , ' J/s/m/K' |
---|
| 166 | WRITE(numout,*) ' thermal conductivity of the ice = ', rcdic , ' J/s/m/K' |
---|
[833] | 167 | #if defined key_lim3 |
---|
| 168 | WRITE(numout,*) ' fresh ice specific heat = ', cpic , ' J/kg/K' |
---|
| 169 | WRITE(numout,*) ' latent heat of fusion of fresh ice / snow = ', lfus , ' J/kg' |
---|
| 170 | WRITE(numout,*) ' latent heat of subl. of fresh ice / snow = ', lsub , ' J/kg' |
---|
| 171 | #else |
---|
[88] | 172 | WRITE(numout,*) ' density times specific heat for snow = ', rcpsn , ' J/m^3/K' |
---|
| 173 | WRITE(numout,*) ' density times specific heat for ice = ', rcpic , ' J/m^3/K' |
---|
| 174 | WRITE(numout,*) ' volumetric latent heat fusion of sea ice = ', xlic , ' J/m' |
---|
| 175 | WRITE(numout,*) ' volumetric latent heat fusion of snow = ', xlsn , ' J/m' |
---|
| 176 | WRITE(numout,*) ' latent heat of sublimation of snow = ', xsn , ' J/kg' |
---|
[833] | 177 | #endif |
---|
[88] | 178 | WRITE(numout,*) ' density of sea ice = ', rhoic , ' kg/m^3' |
---|
| 179 | WRITE(numout,*) ' density of snow = ', rhosn , ' kg/m^3' |
---|
| 180 | WRITE(numout,*) ' emissivity of snow or ice = ', emic |
---|
| 181 | WRITE(numout,*) ' salinity of ice = ', sice , ' psu' |
---|
| 182 | WRITE(numout,*) ' salinity of sea = ', soce , ' psu' |
---|
| 183 | WRITE(numout,*) ' latent heat of evaporation (water) = ', cevap , ' J/m^3' |
---|
| 184 | WRITE(numout,*) ' correction factor for solar radiation = ', srgamma |
---|
| 185 | WRITE(numout,*) ' von Karman constant = ', vkarmn |
---|
| 186 | WRITE(numout,*) ' Stefan-Boltzmann constant = ', stefan , ' J/s/m^2/K^4' |
---|
[3] | 187 | |
---|
| 188 | WRITE(numout,*) |
---|
[88] | 189 | WRITE(numout,*) ' conversion: degre ==> radian rad = ', rad |
---|
[3] | 190 | |
---|
| 191 | WRITE(numout,*) |
---|
[88] | 192 | WRITE(numout,*) ' smallest real computer value rsmall = ', rsmall |
---|
[3] | 193 | ENDIF |
---|
| 194 | |
---|
| 195 | END SUBROUTINE phy_cst |
---|
| 196 | |
---|
| 197 | !!====================================================================== |
---|
| 198 | END MODULE phycst |
---|