Skip to content

Commit 14fcb4d

Browse files
authored
Merge pull request #74 from nichollsh/hn/rainoutflag
Add config option for rainout
2 parents 3f863d7 + 9a02545 commit 14fcb4d

14 files changed

Lines changed: 113 additions & 30 deletions

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors:
55
given-names: "Harrison"
66
orcid: "https://orcid.org/0000-0002-8368-4641"
77
title: "AGNI"
8-
version: 0.10.1
8+
version: 0.11.0
99
doi: 10.xx/xx.xx
10-
date-released: 2024-09-20
10+
date-released: 2024-11-19
1111
url: "https://github.com/nichollsh/AGNI"

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "AGNI"
22
uuid = "ede838c1-9ec3-4ebe-8ae8-da4091b3f21c"
33
authors = ["Harrison Nicholls <harrison.nicholls@physics.ox.ac.uk>"]
4-
version = "0.10.1"
4+
version = "0.11.0"
55

66
[deps]
77
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"

codemeta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
],
1313
"identifier": "",
1414
"codeRepository": "https://github.com/nichollsh/AGNI",
15-
"datePublished": "2024-11-14",
16-
"dateModified": "2024-11-14",
15+
"datePublished": "2024-11-19",
16+
"dateModified": "2024-11-19",
1717
"dateCreated": "2024-09-13",
1818
"description": "A radiative-convective model for lava planet atmospheres.",
1919
"keywords": "physics, radiative transfer, exoplanets, astronomy, convection, radiation, planets, atmospheres",
2020
"license": "GPL v3.0",
2121
"title": "AGNI",
22-
"version": "0.10.1"
22+
"version": "0.11.0"
2323
}

res/config/55cnce_chem.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ title = "Roughly 55 Cancri e @ fO2=IW"
4242
sensible_heat = false
4343
latent_heat = true
4444
convection = true
45+
rainout = false
4546
solution_type = 3
4647
solvers = ["newton"]
4748
dx_max = 400.0

res/config/condense.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ title = "Condensation test"
1919
tmp_magma = 1700.0
2020

2121
[files]
22-
input_sf = "res/spectral_files/nogit/Dayspring48/Dayspring.sf"
22+
input_sf = "res/spectral_files/Dayspring/48/Dayspring.sf"
2323
input_star = "res/stellar_spectra/sun.txt"
2424
output_dir = "out/"
2525

@@ -47,6 +47,7 @@ title = "Condensation test"
4747
sensible_heat = true
4848
latent_heat = true
4949
convection = true
50+
rainout = true
5051
solution_type = 3
5152
solvers = ["newton"]
5253
dx_max = 200.0

res/config/default.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ title = "Default" # Name for this configuration file
5151
sensible_heat = false # Include sensible heat transport at the surface?
5252
latent_heat = false # Include heat release from phase change
5353
convection = true # Include heat transport by convection
54+
rainout = false # Model rainout - phase change impacts gas mixing ratios, not just energy fluxes
5455
solution_type = 0 # Solution type (see wiki).
5556
solvers = [] # Ordered list of solvers to apply (see wiki).
5657
dx_max = 200.0 # Maximum step size [Kelvin], when using nonlinear solvers

res/config/hotdry.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ title = "Hot and dry"
4646
sensible_heat = true
4747
latent_heat = false
4848
convection = true
49+
rainout = false
4950
solution_type = 3
5051
solvers = ["newton"]
5152
dx_max = 400.0

res/config/k2141b.toml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# AGNI configuration file
2+
title = "K2-141 b (IW+4)"
3+
4+
[planet]
5+
tmp_surf = 3000.0
6+
instellation = 3949800
7+
albedo_b = 0.0
8+
s0_fact = 0.25
9+
zenith_angle = 54.74
10+
surface_material= "res/surface_albedos/lunar_marebasalt.dat"
11+
albedo_s = 0.3
12+
radius = 9.57e+6
13+
gravity = 22.125
14+
flux_int = 0.0
15+
turb_coeff = 0.001
16+
wind_speed = 2.0
17+
skin_k = 2.0
18+
skin_d = 0.01
19+
tmp_magma = 3000
20+
21+
[files]
22+
input_sf = "/network/group/aopp/planetary/RTP035_NICHOLLS_PROTEUS/fwl_data/spectral_files/Honeyside/256/Honeyside.sf"
23+
input_star = "/network/group/aopp/planetary/RTP035_NICHOLLS_PROTEUS/fwl_data/stellar_spectra/Named/hd85512.txt"
24+
output_dir = "out/"
25+
26+
[composition]
27+
p_top = 1e-5
28+
p_dict = {H2O = 1.248 , CO2 = 314.959 , N2 = 21.342 , H2 = 0.035 , CO = 70.207 , CH4 = 0.000 , S2 = 0.958 , SO2 = 32.921}
29+
include_all = false
30+
chemistry = 0
31+
condensates = []
32+
33+
[execution]
34+
clean_output = true
35+
verbosity = 1
36+
max_steps = 20000
37+
max_runtime = 400
38+
num_levels = 50
39+
continua = true
40+
rayleigh = true
41+
cloud = false
42+
aerosol = false
43+
overlap_method = "ee"
44+
thermo_funct = true
45+
gravity_funct = true
46+
sensible_heat = true
47+
latent_heat = true
48+
convection = true
49+
rainout = false
50+
solution_type = 3
51+
solvers = ["newton"]
52+
dx_max = 400.0
53+
initial_state = ["loglin", "1800"]
54+
linesearch = 1
55+
easy_start = false
56+
converge_atol = 1.0e-2
57+
converge_rtol = 1.0e-3
58+
59+
[plots]
60+
at_runtime = true
61+
temperature = true
62+
fluxes = true
63+
contribution = true
64+
emission = true
65+
albedo = true
66+
mixing_ratios = true
67+
animate = true
68+
height = true

res/config/lbl_validation.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ title = "Line-by-line validation tests"
4646
sensible_heat = false
4747
latent_heat = false
4848
convection = false
49+
rainout = false
4950
solution_type = 1
5051
solvers = []
5152
dx_max = 400.0

res/config/mnras_chem.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ title = "TRAPPIST-1 c (IW+5) at PROTEUS solidification"
4646
sensible_heat = true
4747
latent_heat = true
4848
convection = true
49+
rainout = false
4950
solution_type = 2
5051
solvers = ["newton"]
5152
dx_max = 400.0

0 commit comments

Comments
 (0)