0
我试图整合黑体光谱(函数BBS)以获得太阳的热光度亮度(主要为Lbol),其应该约为3.85 * 10 ** 26瓦。但我只得到其中的1/3。整合黑体光谱以获得太阳的热辐射光度
import numpy as np
from scipy.integrate import quad
global h, c, k # ISU
h = 6.62607e-34
c = 2.998e8
k = 1.38065e-23
global mu_min, mu_max
mu_min, mu_max = 3e10, 3e18
# hertz, corresponds to 1 ångström to 1e8 ångström
# while the sun's spectrum peak at 5000 ångström
global Rsun
Rsun = 6.955e8 # meter
def BBS(mu, tempe):
i = 2.*h/(c**2.) * (mu**3.)/(np.exp(h/k*mu/tempe)-1.)
return i
def Teff2Lbol(Teff):
I = quad(BBS, mu_min, mu_max, args=(Teff,))[0]
return I
def main():
T = 5800 # Kelvin
Lbol = Teff2Lbol(T) * (4*np.pi*Rsun**2.)
如果你像'h = 6.62607e-34'这样的东西可能更干净 – binaryfunt 2014-11-03 22:48:27
@BrianFunt就像你说的那样。 – CJJ 2014-11-03 23:50:14
这是我在堆栈溢出中见过的最好的标题 – slezica 2014-11-03 23:51:07