Condensable Atmosphere

From krc
(Difference between revisions)
Jump to: navigation, search
(Created page with " define KRC_Cond_Gas(){ if($ARGC == 0){ printf (" Uses the adequate Clausius Clapeyron Coefficients to predict the frost point \n") printf (" Feeds KRC with SatPrA, ...")
 
Line 1: Line 1:
 +
==Condensable Atmosphere==
  
define KRC_Cond_Gas(){
+
The coe�fficients for the saturation temperature relation for the condensing gas are now input parameters.
 +
KRC uses the Clausius-Clapeyron relation:
  
if($ARGC == 0){
 
    printf (" Uses the adequate Clausius Clapeyron Coefficients to predict the frost point \n")
 
    printf (" Feeds KRC with SatPrA, SatPrB, FANON, AMW \n")
 
    printf (" $1: Body \n")
 
    printf (" Currently Supported: \"Mars\" or \"Pluto\" or \"Titan\" \n")
 
}
 
  
Body  = $1
+
::ln P = a - b/T
+
if(Body == "Mars"){             
+
  SatPrB = 3182.48
+
  SatPrA = 27.9546
+
  AMW    = 43.54                                                                      #Sylvain's own calculation
+
    FANON  = 0.040                                                                        #Paul R. Mahaffy, Science 2013 (SAM)
+
KPREF  = 1
+
}
+
  
if(Body == "Pluto"){
 
  SatPrB = 9.2338
 
  SatPrA = -724.9720
 
  AMW  = 27.
 
  FANON = 0.1
 
KPREF = 0
 
}
 
  
if(Body == "Titan"){
+
where P is pressure in Pascal and T is temperature in Kelvin.  
  SatPrB = 9.2338
+
  SatPrA = -724.9720
+
AMW  = 28.8
+
  FANON = 0.016
+
KPREF = 0
+
}
+
  
if(Body != "Mars" && Body != "Titan" && Body != "Pluto") {
+
This should be useful for Mars, Titan, Pluto etc.
  printf("Only Mars, Pluto, and Titan currently support Condensable Gas defaults\n")
+
 
return(-999.)
+
 
} else {
+
SatPrA correspond to the Clausius-Clapeyron coe�fficient 'a'.
out        = {}
+
 
out.SatPrA = SatPrA
+
out.SatPrB = SatPrB
+
SatPrB corresponds to the Clausius-Clapeyron coe�ffcient 'b'.
out.AMW   = AMW
+
 
out.FANON  = FANON
+
Values for CO2 are a = 27.9546 and b = 3182.48 .
out.KPREF = KPREF
+
 
return(out)
+
The proper molecular weight should be input AMW. The Mass-fraction of mean atmosphere that is non-condensing should also be speci�fied with FANON.
}
+
 
}
+
===Mars===
 +
 
 +
SatPrB = 3182.48
 +
SatPrA = 27.9546
 +
AMW    = 43.54            #SP's own calculation
 +
FANON  = 0.040            #Paul R. Mahaffy, Science 2013 (SAM)
 +
KPREF  = 1
 +
 
 +
 
 +
===Pluto===
 +
 
 +
  SatPrB = 9.2338
 +
  SatPrA = -724.9720
 +
  AMW   = 27.
 +
  FANON = 0.1
 +
  KPREF = 0
 +
 
 +
 
 +
===Titan===
 +
  SatPrB = 9.2338
 +
SatPrA = -724.9720
 +
  AMW  = 28.8
 +
FANON = 0.016
 +
KPREF = 0
 +
 
 +
 
 +
KRC function: KRC_Cond_Gas()

Revision as of 09:51, 15 January 2019

Contents

Condensable Atmosphere

The coe�fficients for the saturation temperature relation for the condensing gas are now input parameters. KRC uses the Clausius-Clapeyron relation:


ln P = a - b/T


where P is pressure in Pascal and T is temperature in Kelvin.

This should be useful for Mars, Titan, Pluto etc.


SatPrA correspond to the Clausius-Clapeyron coe�fficient 'a'.


SatPrB corresponds to the Clausius-Clapeyron coe�ffcient 'b'.

Values for CO2 are a = 27.9546 and b = 3182.48 .

The proper molecular weight should be input AMW. The Mass-fraction of mean atmosphere that is non-condensing should also be speci�fied with FANON.

Mars

SatPrB = 3182.48
SatPrA = 27.9546
AMW    = 43.54             #SP's own calculation
FANON  = 0.040            #Paul R. Mahaffy, Science 2013 (SAM)
KPREF  = 1


Pluto

 SatPrB = 9.2338
 SatPrA = -724.9720
 AMW   = 27.
 FANON = 0.1
 KPREF = 0


Titan

SatPrB = 9.2338
SatPrA = -724.9720
AMW   = 28.8
FANON = 0.016
KPREF = 0


KRC function: KRC_Cond_Gas()

Personal tools