source: issm/oecreview/Archive/23390-24306/ISSM-24103-24104.diff@ 24307

Last change on this file since 24307 was 24307, checked in by Mathieu Morlighem, 5 years ago

NEW: adding Archive/23390-24306

File size: 1.9 KB
  • ../trunk-jpl/src/c/shared/Elements/NyeCO2.cpp

     
    44 *      where rigidigty (in s^(1/n)Pa) is the flow law paramter in the flow law sigma=B*e(1/n) (Nye, p2000).
    55 */
    66
    7 #include "../io/io.h" #include <math.h> #include "../Numerics/types.h"
     7#include "../io/io.h"
     8#include <math.h>
     9#include "../Numerics/types.h"
    810
    911IssmDouble NyeCO2(IssmDouble temperature){
    1012
    1113        /*Coefficients*/
    12         const IssmPDouble Rg      = 8.3144598;     /* J mol^-1 K^-1 */ const
    13           IssmPDouble A_const = pow(10.,10.8); /*s^-1 MPa       */ const IssmPDouble
    14           Q       = 63000.;        /*J mol^-1       */ const IssmPDouble n       =
    15           7.;            /*Glen's exponent*/
     14        const IssmPDouble Rg      = 8.3144598;     /* J mol^-1 K^-1 */
     15        const IssmPDouble A_const = pow(10.,10.8); /*s^-1 MPa       */
     16        const IssmPDouble Q       = 63000.;        /*J mol^-1       */
     17        const IssmPDouble n       = 7.;            /*Glen's exponent*/
    1618
    1719        /*Arrhenius Law*/
    1820        IssmDouble A = A_const *exp(-Q/(temperature*Rg));  /*s^-1 MPa   */
     
    1921        IssmDouble B = 1e6*pow(A,-1/n);                    /*s^(1/n) Pa */
    2022
    2123        /*Beyond-melting-point cases*/
    22         if((temperature>200.)&&(temperature<220.)) printf("CO2 ICE - POSSIBLE
    23                                 MELTING. Some temperature values are between 200K and 220K.\n");
    24         else if(temperature>=220.) _printf0_("CO2 ICE - GUARANTEED MELTING. Some
    25                                 temperature values are beyond 220K.\n");
     24        if((temperature>200.)&&(temperature<220.)) _printf0_("CO2 ICE - POSSIBLE MELTING. Some temperature values are between 200K and 220K.\n");
     25        else if(temperature>=220.) _printf0_("CO2 ICE - GUARANTEED MELTING. Some temperature values are beyond 220K.\n");
    2626
    2727        /*Return output*/
    2828        return B;
Note: See TracBrowser for help on using the repository browser.