Skip to content

Commit d73e37c

Browse files
authored
Merge pull request #78 from deitrr/master
Major updates to RT module (mostly for terrestrial planets)
2 parents 2f71ca1 + e8f3bc8 commit d73e37c

23 files changed

+1086
-135
lines changed

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,9 @@
2222
* further updates to python plotting tools to make them more flexible
2323
* added "custom_example.py" to mjolnir to demonstrate how to make multipanel plots with the python tools
2424
* grid output now contains differential operators grad, div, and vertical component of curl (the latter is not used by the model, but may be useful in post-processing)
25+
* added new features to double-grey RT: latitude variations, power law scaling of optical
26+
depth, and surface heating
27+
* added boundary layer module which calculates drag against the lower surface (rayleigh drag only for now)
28+
* changed name of 'diff_fac' input parameter to 'diff_ang' to be more consistent ('diff_ang' = 1/diffusivity factor)
29+
* fixed incompatibility with recent versions (> 1.10.1) of hdf5 libraries
30+
* updated behavior of NonHydro = false and DeepModel = false model options to be consistent with White+ 2005

ifile/deephj.thr

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,24 @@ tausw = 1.67
158158
Tlow = 50
159159

160160
# diffusivity factor
161-
diff_fac = 0.5
161+
diff_ang = 0.5
162+
163+
# add sin(lat)^2 dependence to tau lw (advanced)
164+
latf_lw = true
165+
# opt depth at poles (lw)
166+
taulw_pole = 1.5
167+
168+
# include surface heating
169+
surface = true
170+
# heat capacity of surface
171+
Csurf = 1e7
172+
173+
# power law index of unmixed absorbers (lw and sw)
174+
n_lw = 4
175+
n_sw = 2
176+
# strength of unmixed absorbers in lw
177+
f_lw = 0.1
178+
162179
#########################################################
163180

164181
## insolation (orbit + spin-state) parameters ###########
@@ -185,6 +202,17 @@ sync_rot = true
185202
#longp = 0
186203
#########################################################
187204

205+
#-- Boundary layer options (core_benchmark = NoBenchmark) --------------------#
206+
boundary_layer = false
207+
208+
# type of boundary layer drag
209+
bl_type = RayleighHS
210+
211+
# strength of drag
212+
#surf_drag = 1.157407e-5
213+
214+
# boundary layer sigma (drag exist at this % of surface pressure and above)
215+
#bl_sigma = 0.7
188216

189217
#-- Device options -----------------------------------------------------------#
190218
# GPU ID number

ifile/earth_acoustic_test.thr

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ config_version = 1
77

88
#-- Time stepping and output options -----------------------------------------#
99
# number of steps
10-
num_steps = 96
10+
num_steps = 97
1111

1212
# length of timesteps in seconds
1313
timestep = 1800
1414

1515
# output
1616
# output every n steps
17-
n_out = 2
17+
n_out = 1
1818

1919
# output directory (relative to current working directory)
2020
# defaults to 'results'
@@ -157,7 +157,24 @@ tausw = 1.67
157157
Tlow = 50
158158

159159
# diffusivity factor
160-
diff_fac = 0.5
160+
diff_ang = 0.5
161+
162+
# add sin(lat)^2 dependence to tau lw (advanced)
163+
latf_lw = true
164+
# opt depth at poles (lw)
165+
taulw_pole = 1.5
166+
167+
# include surface heating
168+
surface = true
169+
# heat capacity of surface
170+
Csurf = 1e7
171+
172+
# power law index of unmixed absorbers (lw and sw)
173+
n_lw = 4
174+
n_sw = 2
175+
# strength of unmixed absorbers in lw
176+
f_lw = 0.1
177+
161178
#########################################################
162179

163180
## insolation (orbit + spin-state) parameters ###########
@@ -184,6 +201,18 @@ sync_rot = true
184201
#longp = 0
185202
#########################################################
186203

204+
#-- Boundary layer options (core_benchmark = NoBenchmark) --------------------#
205+
boundary_layer = false
206+
207+
# type of boundary layer drag
208+
bl_type = RayleighHS
209+
210+
# strength of drag
211+
#surf_drag = 1.157407e-5
212+
213+
# boundary layer sigma (drag exist at this % of surface pressure and above)
214+
#bl_sigma = 0.7
215+
187216
#-- Device options -----------------------------------------------------------#
188217
# GPU ID number
189218
GPU_ID_N = 0

ifile/earth_gwave_test.thr

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,24 @@ tausw = 1.67
157157
Tlow = 50
158158

159159
# diffusivity factor
160-
diff_fac = 0.5
160+
diff_ang = 0.5
161+
162+
# add sin(lat)^2 dependence to tau lw (advanced)
163+
latf_lw = true
164+
# opt depth at poles (lw)
165+
taulw_pole = 1.5
166+
167+
# include surface heating
168+
surface = true
169+
# heat capacity of surface
170+
Csurf = 1e7
171+
172+
# power law index of unmixed absorbers (lw and sw)
173+
n_lw = 4
174+
n_sw = 2
175+
# strength of unmixed absorbers in lw
176+
f_lw = 0.1
177+
161178
#########################################################
162179

163180
## insolation (orbit + spin-state) parameters ###########
@@ -184,6 +201,18 @@ sync_rot = true
184201
#longp = 0
185202
#########################################################
186203

204+
#-- Boundary layer options (core_benchmark = NoBenchmark) --------------------#
205+
boundary_layer = false
206+
207+
# type of boundary layer drag
208+
bl_type = RayleighHS
209+
210+
# strength of drag
211+
#surf_drag = 1.157407e-5
212+
213+
# boundary layer sigma (drag exist at this % of surface pressure and above)
214+
#bl_sigma = 0.7
215+
187216
#-- Device options -----------------------------------------------------------#
188217
# GPU ID number
189218
GPU_ID_N = 0

ifile/earth_hstest.thr

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Rv_sponge = 1e-5
134134

135135

136136
#-- Radiative transfer options (core_benchmark = NoBenchmark) --------------------------#
137-
radiative_transfer = true
137+
radiative_transfer = false
138138
## RT parameters #######################################
139139
# stellar temperature (k)
140140
Tstar = 5800
@@ -158,7 +158,24 @@ tausw = 1.67
158158
Tlow = 50
159159

160160
# diffusivity factor
161-
diff_fac = 0.5
161+
diff_ang = 0.5
162+
163+
# add sin(lat)^2 dependence to tau lw (advanced)
164+
latf_lw = true
165+
# opt depth at poles (lw)
166+
taulw_pole = 1.5
167+
168+
# include surface heating
169+
surface = true
170+
# heat capacity of surface
171+
Csurf = 1e7
172+
173+
# power law index of unmixed absorbers (lw and sw)
174+
n_lw = 4
175+
n_sw = 2
176+
# strength of unmixed absorbers in lw
177+
f_lw = 0.1
178+
162179
#########################################################
163180

164181
## insolation (orbit + spin-state) parameters ###########
@@ -185,6 +202,19 @@ sync_rot = true
185202
#longp = 0
186203
#########################################################
187204

205+
#-- Boundary layer options (core_benchmark = NoBenchmark) --------------------#
206+
boundary_layer = false
207+
208+
# type of boundary layer drag
209+
bl_type = RayleighHS
210+
211+
# strength of drag
212+
#surf_drag = 1.157407e-5
213+
214+
# boundary layer sigma (drag exist at this % of surface pressure and above)
215+
#bl_sigma = 0.7
216+
217+
188218
#-- Device options -----------------------------------------------------------#
189219
# GPU ID number
190220
GPU_ID_N = 0

ifile/earth_sync.thr

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,24 @@ tausw = 1.67
157157
Tlow = 50
158158

159159
# diffusivity factor
160-
diff_fac = 0.5
160+
diff_ang = 0.5
161+
162+
# add sin(lat)^2 dependence to tau lw (advanced)
163+
latf_lw = true
164+
# opt depth at poles (lw)
165+
taulw_pole = 1.5
166+
167+
# include surface heating
168+
surface = true
169+
# heat capacity of surface
170+
Csurf = 1e7
171+
172+
# power law index of unmixed absorbers (lw and sw)
173+
n_lw = 4
174+
n_sw = 2
175+
# strength of unmixed absorbers in lw
176+
f_lw = 0.1
177+
161178
#########################################################
162179

163180
## insolation (orbit + spin-state) parameters ###########
@@ -184,6 +201,17 @@ sync_rot = true
184201
#longp = 0
185202
#########################################################
186203

204+
#-- Boundary layer options (core_benchmark = NoBenchmark) --------------------#
205+
boundary_layer = false
206+
207+
# type of boundary layer drag
208+
bl_type = RayleighHS
209+
210+
# strength of drag
211+
#surf_drag = 1.157407e-5
212+
213+
# boundary layer sigma (drag exist at this % of surface pressure and above)
214+
#bl_sigma = 0.7
187215

188216
#-- Device options -----------------------------------------------------------#
189217
# GPU ID number

ifile/shallowhj.thr

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,24 @@ tausw = 1.67
157157
Tlow = 50
158158

159159
# diffusivity factor
160-
diff_fac = 0.5
160+
diff_ang = 0.5
161+
162+
# add sin(lat)^2 dependence to tau lw (advanced)
163+
latf_lw = true
164+
# opt depth at poles (lw)
165+
taulw_pole = 1.5
166+
167+
# include surface heating
168+
surface = true
169+
# heat capacity of surface
170+
Csurf = 1e7
171+
172+
# power law index of unmixed absorbers (lw and sw)
173+
n_lw = 4
174+
n_sw = 2
175+
# strength of unmixed absorbers in lw
176+
f_lw = 0.1
177+
161178
#########################################################
162179

163180
## insolation (orbit + spin-state) parameters ###########
@@ -184,6 +201,17 @@ sync_rot = true
184201
#longp = 0
185202
#########################################################
186203

204+
#-- Boundary layer options (core_benchmark = NoBenchmark) --------------------#
205+
boundary_layer = false
206+
207+
# type of boundary layer drag
208+
bl_type = RayleighHS
209+
210+
# strength of drag
211+
#surf_drag = 1.157407e-5
212+
213+
# boundary layer sigma (drag exist at this % of surface pressure and above)
214+
#bl_sigma = 0.7
187215

188216
#-- Device options -----------------------------------------------------------#
189217
# GPU ID number

ifile/wasp43b_ex.thr

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ core_benchmark = NoBenchmark
107107
# This is useful for testing/debugging physics modules
108108
gcm_off = false
109109

110+
# use convective adjustment scheme
111+
conv_adj = 1
110112

111113
#-- Sponge layer (Rayleigh drag) ---------------------------------------------#
112114
# use sponge layer (Rayleigh drag) at top of atmosphere?
@@ -144,7 +146,7 @@ radius_star = 0.667
144146
albedo = 0.18
145147

146148
# grey opt. depth of thermal wavelengths (at ref pressure)
147-
taulw = 1064
149+
taulw = 2128
148150

149151
# grey opt. depth of incoming stellar flux (at ref pressure)
150152
tausw = 532
@@ -153,7 +155,24 @@ tausw = 532
153155
Tlow = 970
154156

155157
# diffusivity factor
156-
diff_fac = 0.5
158+
diff_ang = 0.5
159+
160+
# add sin(lat)^2 dependence to tau lw (advanced)
161+
latf_lw = false
162+
# opt depth at poles (lw)
163+
taulw_pole = 1.5
164+
165+
# include surface heating
166+
surface = false
167+
# heat capacity of surface
168+
Csurf = 1e7
169+
170+
# power law index of unmixed absorbers (lw and sw)
171+
n_lw = 2
172+
n_sw = 1
173+
# strength of unmixed absorbers in lw
174+
f_lw = 0.5
175+
157176
#########################################################
158177

159178
## insolation (orbit + spin-state) parameters ###########
@@ -180,6 +199,17 @@ sync_rot = true
180199
#longp = 0
181200
#########################################################
182201

202+
#-- Boundary layer options (core_benchmark = NoBenchmark) --------------------#
203+
boundary_layer = false
204+
205+
# type of boundary layer drag
206+
bl_type = RayleighHS
207+
208+
# strength of drag
209+
#surf_drag = 1.157407e-5
210+
211+
# boundary layer sigma (drag exist at this % of surface pressure and above)
212+
#bl_sigma = 0.7
183213

184214
#-- Device options -----------------------------------------------------------#
185215
# GPU ID number

0 commit comments

Comments
 (0)