Skip to content

Commit

Permalink
use themp not theta
Browse files Browse the repository at this point in the history
  • Loading branch information
yoctoyotta1024 committed Jan 9, 2024
1 parent 0ae358c commit 0084f35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions examples/rainshaft1d/rainshaft1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

### --- settings for 1-D Thermodynamics --- ###
PRESS0 = 101315 # [Pa]
THETA0 = 297.9 # [K]
TEMP0 = 297.9 # [K]
qvap0 = 0.013816 # [Kg/Kg]
Zbase = 750 # [m]
thetalapses = [0, 0.01] # [K m^-1]
Expand Down Expand Up @@ -126,7 +126,7 @@
rgrid.print_domain_info(constsfile, gridfile)

### ----- write thermodynamics binaries ----- ###
thermodyngen = thermogen.ConstHydrostaticLapseRates(PRESS0, THETA0, qvap0,
thermodyngen = thermogen.ConstHydrostaticLapseRates(PRESS0, TEMP0, qvap0,
Zbase, thetalapses,
qvlapses, qcond,
WVEL, None, None)
Expand Down
6 changes: 3 additions & 3 deletions pySD/thermobinary_src/thermogen.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
File Description:
'''


import numpy as np
from scipy import integrate
from .. import cxx2py
from .create_thermodynamics import thermoinputsdict
from ..gbxboundariesbinary_src import read_gbxboundaries as rgrid
Expand Down Expand Up @@ -428,10 +428,10 @@ class ConstHydrostaticLapseRates:
and in hydrostatic equillibrium and following adiabats
with constant lapse rates above/below zbase. '''

def __init__(self, PRESS0, THETA0, qvap0, Zbase,
def __init__(self, PRESS0, TEMP0, qvap0, Zbase,
thetalapses, qvlapses, qcond, WVEL, UVEL, VVEL):
self.PRESS0 = PRESS0 # surface pressure [Pa]
self.THETA0 = THETA0 # surface temperature [T]
self.TEMP0 = TEMP0 # surface temperature [T]
self.qvap0 = qvap0 # surface water vapour content [Kg/Kg]
self.Zbase = Zbase # cloud base height [m]
self.thetalapses = thetalapses # theta lapse rates [below, above] Zbase
Expand Down

0 comments on commit 0084f35

Please sign in to comment.