File:Planet rotation rate effect to daily temperatures simple energy balance model 1.png
![File:Planet rotation rate effect to daily temperatures simple energy balance model 1.png](https://upload.wikimedia.org/wikipedia/commons/thumb/a/a1/Planet_rotation_rate_effect_to_daily_temperatures_simple_energy_balance_model_1.png/800px-Planet_rotation_rate_effect_to_daily_temperatures_simple_energy_balance_model_1.png?20231104101717)
Original file (952 × 625 pixels, file size: 66 KB, MIME type: image/png)
Captions
Captions
Summary
[edit]DescriptionPlanet rotation rate effect to daily temperatures simple energy balance model 1.png |
English: Planet rotation rate effect to daily temperatures simple energy balance mode.
Model very simplistic. Surface energy balance: no greenhouse effects, nonen clouds ... some etmpsphere extinction only. |
Date | |
Source | Own work |
Author | Merikanto |
- -*- coding: utf-8 -*
-
- planet rotation effect to daily temperature change
- simple energy balance model
-
- python 3 source code
-
- 04.11.2023 v 0000.0001
import math
import numpy as np
import scipy
import matplotlib.pyplot as plt
import PIL
def rotating_planet_energy_balance_temperature(latitude, S1,Ts,albedo, cap, depth, rotperiod, simulen):
#Ts=Teq1
tim=0
tees=[]
cosphases=[]
temps=[]
for tee in range(0,rotperiod*simulen, dt):
phase=(tim%rotperiod)/rotperiod
phase2=-math.pi+phase*math.pi*2
cosphase=math.cos(phase2)
if(phase2<-math.pi/2):cosphase=0
if(phase2>math.pi/2):cosphase=0
solrad=cosphase*S2*no_absorb_scatter
asr=(1-albedo)*solrad
olr=tau*sb*math.pow(Ts,4)
dT=(asr-olr)/(cap*depth)
Ts=Ts+dT
temps.append(Ts)
cosphases.append(cosphase)
tees.append(tim)
tim=tim+dt
tees1=np.array(tees)
temps1=np.array(temps)
datalen=len(tees)
planetdaysimulen=int(rotperiod/dt)
#tees2=tees1[datalen-planetdaysimulen:]
#print(rotperiod, dt)
tees2=np.linspace(0, rotperiod,int(rotperiod/dt))
#print("LT",len(tees2))
temps2=temps1[datalen-planetdaysimulen:]
return(tees2, temps2)
fii=0
hourangle=0
S1=1361.5
lat=0
S2=S1*math.cos(math.radians(lat))
Kelvin=273.15
albedo=0.3
- albedo=0.3 ## earth
sb=5.670374419e-8
no_absorb_scatter=0.925
tau=0.612
simulen=36
- seconds
dt=60*1
- Ts=310
depth=5
cap=4186
albedo=0.3
- depth=10
- albedo=0.3
- cap=800 700, 1200, 1500?
latitude=0
- teq of planet
Teq1=math.pow(((S1*(1-albedo)) / (2*sb)), 1/4)
hours1=24
roths0=[]
mintemps0=[]
maxtemps0=[]
deltemps0=[]
meantemps0=[]
beginh=12
diffh=12
- maxh=24*60
- maxh=1000
maxh=24*30
for hours1 in range(beginh,maxh, diffh):
rotperiod=3600*hours1*1
tees2, temps2=rotating_planet_energy_balance_temperature(latitude, S1,Teq1,albedo, cap, depth, rotperiod, simulen)
mintemp1=round((np.min(temps2)-Kelvin),1)
maxtemp1=round((np.max(temps2)-Kelvin),1)
deltemp1=round((maxtemp1-mintemp1),1)
meantemp1=round((np.mean(temps2)-Kelvin),1)
roths0.append(hours1)
mintemps0.append(mintemp1)
maxtemps0.append(maxtemp1)
deltemps0.append(deltemp1)
meantemps0.append(meantemp1)
roths0=np.array(roths0)
mintemps0=np.array(mintemps0)
maxtemps0=np.array(maxtemps0)
deltemps0=np.array(deltemps0)
meantemps0=np.array(meantemps0)
plt.suptitle("Planet rotation period vs equator daily temperatures", fontsize=18)
plt.title("S="+ str(S1)+" tilt=0 albedo="+str(albedo)+ " active depth="+str(depth)+" m", fontsize=16 )
plt.ylabel("Temperature degC",fontsize=15)
plt.xlabel("Rotation period days",fontsize=15)
plt.xticks(fontsize=12)
plt.yticks(fontsize=12)
plt.plot(roths0/24, mintemps0, lw=2,color="blue", label="T min")
plt.plot(roths0/24, maxtemps0, lw=2,color="red", label="T max")
plt.plot(roths0/24, meantemps0, lw=2, color="green", label="T mean")
plt.plot(roths0/24, deltemps0, lw=2,color="brown", linestyle=":", label="T max-min")
plt.axhline(y=100, linestyle=":", color="#ff3f3f", label="water boils")
plt.axhline(y=0, linestyle=":", color="#7f7fff", label="water freezes")
plt.legend()
plt.show()
Licensing
[edit]![]() ![]() |
This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. |
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 10:17, 4 November 2023 | ![]() | 952 × 625 (66 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 |