Skip to content

Commit

Permalink
Include PMrel capability
Browse files Browse the repository at this point in the history
  • Loading branch information
liammegill committed Oct 24, 2024
1 parent bde7648 commit d37c6cf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion example/example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inv = ["CO2", "H2O", "NOx", "distance"]
nox = "NO"
# Output / response species
# possible values: "CO2", "H2O"
out = ["CO2", "H2O", "CH4", "cont"]
out = ["CO2", "H2O", "cont"]

# Emission inventories
[inventories]
Expand Down Expand Up @@ -80,6 +80,7 @@ CH4.rf.method = "Etminan_2016"
cont.response_grid = "cont"
cont.G_comp = 0.04 # conventional: 0.04; hydrogen: 0.12
cont.eff_fac = 1.0 #
cont.PMrel = 1.0 # relative PM emissions compared to kerosene (1.0)

# Temperature options
[temperature]
Expand Down
9 changes: 8 additions & 1 deletion openairclim/calc_cont.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,17 @@ def calc_cont_RF(config, cccov_tot_dict, inv_dict):
between the simulation start and end years.
"""

# calculate RF factor due to PM reduction, from AirClim 2.1
PMrel = config["responses"]["cont"]["PMrel"]
if PMrel >= 0.033:
PM_factor = 0.92 * np.arctan(1.902 * PMrel ** 0.74)
else:
PM_factor = 0.92 * np.arctan(1.902 * 0.033 ** 0.74)

# calculate contrail RF
cont_RF_at_inv = [] # RF at inventory years
for year, cccov_tot in cccov_tot_dict.items():
cont_RF = np.sum(14.9 * cccov_tot)
cont_RF = 14.9 * np.sum(cccov_tot) * PM_factor
cont_RF_at_inv.append(cont_RF)

# interpolate RF to all simulation years
Expand Down

0 comments on commit d37c6cf

Please sign in to comment.