Ice Sheet System Model  4.18
Code documentation
Functions
NyeH2O.cpp File Reference
#include "../io/io.h"
#include <math.h>
#include "../Numerics/types.h"

Go to the source code of this file.

Functions

IssmDouble NyeH2O (IssmDouble temperature)
 

Function Documentation

◆ NyeH2O()

IssmDouble NyeH2O ( IssmDouble  temperature)

Definition at line 11 of file NyeH2O.cpp.

11  {
12 
13  /*Coefficients*/
14  const IssmPDouble Rg = 8.3144598; /* J mol^-1 K^-1 */
15  const IssmPDouble A_const = 9.e4; /*s^-1 MPa */
16  const IssmPDouble Q = 60000.; /*J mol^-1 */
17  const IssmPDouble n = 3.; /*Glen's exponent*/
18 
19  /*Arrhenius Law*/
20  IssmDouble A = A_const *exp(-Q/(temperature*Rg)); /*s^-1 MPa */
21  IssmDouble B = 1e6*pow(A,-1/n); /*s^(1/n) Pa */
22 
23  /*Beyond-melting-point case*/
24  if(temperature>=273.15) _printf0_("H2O ICE - GUARANTEED MELTING. Some temperature values are beyond 273.15K.\n");
25 
26  /*Return output*/
27  return B;
28 }
IssmDouble
double IssmDouble
Definition: types.h:37
_printf0_
#define _printf0_(StreamArgs)
Definition: Print.h:29
IssmPDouble
IssmDouble IssmPDouble
Definition: types.h:38