File:Trappist 1e simulated temperature ebm 1 1 1 1.png
![File:Trappist 1e simulated temperature ebm 1 1 1 1.png](https://upload.wikimedia.org/wikipedia/commons/thumb/4/41/Trappist_1e_simulated_temperature_ebm_1_1_1_1.png/800px-Trappist_1e_simulated_temperature_ebm_1_1_1_1.png?20231018132417)
Original file (1,233 × 708 pixels, file size: 277 KB, MIME type: image/png)
Captions
Captions
Summary
editDescriptionTrappist 1e simulated temperature ebm 1 1 1 1.png |
English: Trappist 1e simulated temperature with simple energy balance model |
Date | |
Source | Own work |
Author | Merikanto |
Source of Trappist data is English Wikipedia.
https://en.wikipedia.org/wiki/TRAPPIST-1
Code is based on Bell's EBM, that is
https://github.com/taylorbell57/Bell_EBM
Python3 source code
- coding: utf-8
- EBM for trappist-1e
- based on Bell's energy balance model
- 18.10.2023 v 0000.0001b
-
- you must pip install . from directory or so on Bell EBM from github
- https://github.com/taylorbell57/Bell_EBM
- you must have Python 3
- copy directory to your computer, go the directoty, then "pip install ."
-
import numpy as np
import scipy.ndimage
import matplotlib.pyplot as plt
import matplotlib as mpl
import astropy.constants as const
import Bell_EBM as ebm
- params of planet
albedo=0.32
- albedo=0.70
- Trappist-1e
rad=0.920
mass=0.692
a=0.02925
- Trappist-1c
- rad=1.097
- mass=1.308
- a=0.0158
- S=2.214
- Teq 339.7 K 66.6 C
- Trappist-1f
- rad=1.045
- mass=1.039
- a=0.03949
- S=0.242
- Teq=217.7, -55.5
e=0.0
argp=0
obliquity=0
star_teff=2550.
star_rad=0.114
star_mass=0.089
- star_teff=2511.
- star_rad=0.121
- star_mass=0.08
simulen=10
simustepj=1000
cp_N2 = 1.039e3 # J/(kg K)
cp_H2O = 4.2e6 # J/(kg K)
cp_rock = .800e6 # J/(kg K)
- We'll pretend the whole atmosphere absorbs and radiates
P0 = const.atm.value
- quite flat, maybe graanhouse model!
- planet = ebm.Planet('water', rad=const.R_earth.value*rad, mass=const.M_earth.value*mass,a=a*const.au.value, e=e, argp=argp, albedo=albedo)
planet = ebm.Planet('rock', rad=const.R_earth.value*rad, mass=const.M_earth.value*mass,a=a*const.au.value, e=e, argp=argp, albedo=albedo)
- planet = ebm.Planet('gas', rad=const.R_earth.value*rad, mass=const.M_earth.value*mass,a=a*const.au.value, e=e, argp=argp,cp=cp_N2, mlDepth=P0, albedo=albedo)
- star = ebm.Star()
star = ebm.Star(teff=star_teff, rad=star_rad, mass=star_mass)
system = ebm.System(star, planet)
- system.planet.Prot = system.planet.Porb*(2./3.)
system.planet.Prot = system.planet.Porb*(1./1.)
Teq = np.median(system.get_teq(np.linspace(0.,system.planet.Porb,simustepj, endpoint=False)))
T0 = Teq*np.ones_like(system.planet.map.values)
t0 = 0
t1 = t0+system.planet.Porb*simulen
dt = system.planet.Porb/simustepj
times, maps = system.run_model(T0, t0, t1, dt, verbose=False)
T0 = maps[-1]
t0 = times[-1]
t1 = t0+system.planet.Porb
dt = system.planet.Porb/simustepj
times, maps = system.run_model(T0, t0, t1, dt, verbose=False, intermediates=True)
phases = system.get_phase(times)
phasePeri = system.get_phase_periastron()
indexPeri = np.argmin(np.abs(phases-phasePeri))
subStellLon = system.planet.orbit.get_ssp(system.planet.orbit.t_peri)[0]
- mapp1=maps[indexPeri]-273.15
- mapps1=maps[indexPeri]
- take last orbit to average
mapps1=maps[-simustepj:]
- print(np.shape(mapps1))
mappa1=np.mean(mapps1, axis=0)
mapp1=mappa1-273.15
tmean1=round(np.mean(mapp1),2)
tmin1=round(np.min(mapp1),2)
tmax1=round(np.max(mapp1),2)
print(" Temperature degC mean(grid) min max " , tmean1, tmin1, tmax1)
- quit(-1)
def fmt(x):
s = f"{x:.2f}"
return rf"{s} "
plt.title("TRAPPIST-1e EBM simulation: temperature deg C", fontsize=16)
plt.xticks(fontsize=14)
plt.yticks(fontsize=14)
mapp3 = scipy.ndimage.zoom(mapp1, 4)
levels1=[-300,-200,-180,-150,-120,-110,-100,-90,-80,-70,-60,-50,-40,-20,-10,-5,0,5,10,15,20,25,30,35,40,45,50,60,70,80,90,100,110,120,130,140,150,200,250,300,400,500,600,700,800,1000,2000,3000,4000]
contourcolours1=["#00003f"]
vmin1=-80
vmax1=40
cmap1="coolwarm"
cmap1="jet"
cmap1="bwr"
cmap1="RdBu_r"
cmap1="seismic"
cmap1="RdYlBu_r"
cmap1="Spectral_r"
cmap1="hsv_r"
cmap1="turbo"
- cmap1="rainbow"
- cmap1="gist_rainbow_r"
plt.imshow(mapp3,interpolation= "bicubic", cmap=cmap1, origin="lower", vmin=vmin1, vmax=vmax1, extent=[-180, 180, -90, 90])
CS=plt.contour(mapp3,alpha=0.5, extent=[-180, 180, -90, 90], levels=levels1 ,origin='lower', colors=contourcolours1)
plt.clabel(CS, fontsize=14)
plt.show()
Licensing
edit![w:en:Creative Commons](https://upload.wikimedia.org/wikipedia/commons/thumb/7/79/CC_some_rights_reserved.svg/90px-CC_some_rights_reserved.svg.png)
![attribution](https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Cc-by_new_white.svg/24px-Cc-by_new_white.svg.png)
![share alike](https://upload.wikimedia.org/wikipedia/commons/thumb/d/df/Cc-sa_white.svg/24px-Cc-sa_white.svg.png)
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 13:24, 18 October 2023 | ![]() | 1,233 × 708 (277 KB) | Merikanto (talk | contribs) | Update of code ant layout: finer curves |
17:52, 17 October 2023 | ![]() | 1,047 × 612 (181 KB) | Merikanto (talk | contribs) | Uploaded own work with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Software used | |
---|---|
Horizontal resolution | 39.37 dpc |
Vertical resolution | 39.37 dpc |