From 539327a0edcf6fe1c8d2b4d8ea023b75cefc1b14 Mon Sep 17 00:00:00 2001 From: march3 Date: Thu, 23 Mar 2023 11:06:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=AA=E9=98=B3=E7=B3=BB=E4=B8=89=E4=BD=93?= =?UTF-8?q?=E6=A8=A1=E6=8B=9F=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bodies/body.py | 4 +- bodies/fixed_stars/alcyone.py | 69 ++++++++++++----- bodies/fixed_stars/aldebaran.py | 64 +++++++++------- bodies/fixed_stars/antares.py | 68 +++++++++-------- bodies/fixed_stars/arcturus.py | 61 ++++++++------- bodies/fixed_stars/bellatrix.py | 65 ++++++++-------- bodies/fixed_stars/betelgeuse.py | 61 +++++++++------ bodies/fixed_stars/carinae_v382.py | 49 ++++++++---- bodies/fixed_stars/eta_carinae.py | 55 ++++++++------ bodies/fixed_stars/fixed_star.py | 15 +++- bodies/fixed_stars/pollux.py | 67 ++++++++++------- bodies/fixed_stars/pollux_b.py | 65 ---------------- bodies/fixed_stars/procyon.py | 87 +++++++++++++++------- bodies/fixed_stars/rigel.py | 56 ++++++++------ bodies/fixed_stars/sirius.py | 91 ++++++++++++++--------- bodies/fixed_stars/stephenson_2_18.py | 65 ++++++++-------- bodies/fixed_stars/uy_scuti.py | 51 +++++++------ bodies/fixed_stars/vy_canis_majoris.py | 67 ++++++++--------- bodies/fixed_stars/wr21a.py | 55 -------------- bodies/fixed_stars/y_canum_venaticorum.py | 50 ++++++++----- 20 files changed, 627 insertions(+), 538 deletions(-) delete mode 100644 bodies/fixed_stars/pollux_b.py delete mode 100644 bodies/fixed_stars/wr21a.py diff --git a/bodies/body.py b/bodies/body.py index 07f31fa..9e7d72e 100644 --- a/bodies/body.py +++ b/bodies/body.py @@ -304,8 +304,8 @@ class Body(metaclass=ABCMeta): return self.raduis * 2 def __repr__(self): - return '<%s> m=%.3e(kg), r|d=%.3e|%.3e(km), v=%.3e(km³), d=%.3e(kg/m³), p=[%.3e,%.3e,%.3e](km), v=%s(km/s)' % \ - (self.name, self.mass, self.raduis, self.diameter, self.volume, self.density, + return '<%s(%s)> m=%.3e(kg), r|d=%.3e|%.3e(km), v=%.3e(km³), d=%.3e(kg/m³), p=[%.3e,%.3e,%.3e](km), v=%s(km/s)' % \ + (self.name,self.__class__.__name__, self.mass, self.raduis, self.diameter, self.volume, self.density, self.position[0], self.position[1], self.position[2], self.velocity) def ignore_gravity(self, body): diff --git a/bodies/fixed_stars/alcyone.py b/bodies/fixed_stars/alcyone.py index 7c34010..19b3dcb 100644 --- a/bodies/fixed_stars/alcyone.py +++ b/bodies/fixed_stars/alcyone.py @@ -13,22 +13,57 @@ from common.consts import MO class Alcyone(FixedStar): """ 昴宿六 (Alcyone) - 质量:7个太阳质量 - 密度:不详 - 颜色值:#EFF6FF - 直径:6.12倍太阳直径 + --------------- 维基百科 --------------- + 昴宿六 + 观测资料 + 观测资料 + 历元 J2000 + 星座 金牛座 + 星官 昴宿 昴 + 赤经 03h 47m 29.077s + 赤纬 24° 06′ 18.49″ + 视星等(V) 2.87 + 特性 + 光谱分类 B7IIIe + U−B 色指数 −0.34 + B−V 色指数 −0.09 + 天体测定 + 径向速度 (Rv) 5.40 km/s + 自行 (μ) 赤经:19.34 ± 0.39 mas/yr + 赤纬:-43.67 ± 0.33 mas/yr + 视差 (π) 8.09 ± 0.42 mas + 距离 440 ly + 绝对星等 (MV) -2.8 + 详细资料 + 质量 6 M☉ + 半径 9 R☉ + 亮度 2,100 L☉ + 温度 13,000 K + 自转速度 (v sin i) 149 km/s - 中文名: 昴宿六 - 外文名: Alcyone - 表面温度: 13000K; - 总光度: 太阳的2,400倍 - 半径: 太阳的10倍 - 质量: 太阳的7倍 - 视星等: 2.87 - 自转周期: 3天 - 光谱型: B7III - 绝对星等: -2.76 + 昴宿六(η Tau/金牛座η)西方星名为Alcyone,是一个在金牛座的聚星系统。 + 距离太阳大约440光年,为昴宿星团中最明亮的一颗恒星,该星团很年轻,年龄大约1亿年。 + 还有数颗暗淡的恒星很靠近昴宿六,很可能都是星团的成员。 + 神话 + 西方星名Alcyone是由希腊神话来的,即阿尔克俄涅,她是阿特拉斯和普勒俄涅的七个女儿之一。 + + 恒星系统 + 双星和聚星星表列出了它的3个伴星: + B是金牛座24,视星等6.28的A0主序星,距离117"; + C是金牛座V647,是盾牌座δ型变星; + D是视星等9.15的F3主序星。 + 金牛座V647的变光幅度在+8.25到+8.30,周期1.13小时。 + + 华盛顿双星目录列出了4个更暗的伴星,全都在11等以下,另外也表示伴星D本身也是个联星,2个几乎一样的成员分离0.30"。 + + 主星,昴宿六A,包含了3个成员,最亮的是蓝白色的B型巨星,和其他昴星团的亮星相似。 + 视星等+2.87(绝对星等-2.8),将近9太阳半径。 + 大约13,000K的表面温度使他有2100倍太阳光度。 + 光谱类型B7IIIe代表在光谱里有发射线。像众多的Be星,昴宿六A自转速度是很高的149km/s,造成了环绕恒星赤道气体盘。 + + 最近的伴星质量非常低,并且距离小于1毫角秒,轨道周期可能略大于4天。 + 另外一个恒星大约有蓝巨星质量的一半,分离0.031角秒,大约是太阳到木星的距离,轨道周期大约830天。 ------------------------ == 太阳参数 == 自转周期: 24.47 地球日,自转角速度约为 0.6130 度/小时 = 360/(24.47*24) @@ -36,7 +71,7 @@ class Alcyone(FixedStar): 平均密度: 1.408×10³ kg/m³ """ - def __init__(self, name="昴宿六", mass=7 * MO, + def __init__(self, name="昴宿六", mass=6 * MO, init_position=[0, 0, 0], init_velocity=[0, 0, 0], color=(0xBB, 0xAA, 0xFF), @@ -47,7 +82,7 @@ class Alcyone(FixedStar): "mass": mass, "init_position": init_position, "init_velocity": init_velocity, - "density": 9.856, + "density": 9.85333138941539, "color": color, "texture": texture, "size_scale": size_scale, @@ -62,4 +97,4 @@ if __name__ == '__main__': fixed_star = Alcyone() print(fixed_star) fixed_star.compare_with_sun() - fixed_star.density_by_radius(num_sun_raduis=10) + fixed_star.density_by_radius(num_sun_raduis=9.5) diff --git a/bodies/fixed_stars/aldebaran.py b/bodies/fixed_stars/aldebaran.py index f801f74..922ac7a 100644 --- a/bodies/fixed_stars/aldebaran.py +++ b/bodies/fixed_stars/aldebaran.py @@ -13,24 +13,39 @@ from common.consts import MO class Aldebaran(FixedStar): """ 毕宿五 (Aldebaran) - 质量:太阳质量 - 颜色值:#FF9100 - 直径:44.13倍太阳直径 - -中文名毕宿五 -外文名Aldebaran -别 名金牛座α -分 类红巨星 -质 量约 1.16 M⊙ -表面温度约 3900 K -视星等0.85 等 -绝对星等约 -0.641 等 -自转周期~520 d -赤 经4时35分55.24秒 -赤 纬+16°30′33.49″ -距地距离约 65.3 光年 -半 径44.13±0.84 R☉ -光谱类型K5+III变星类型慢不规则变星径向速度54.26±0.03 km/s视 差49.97±0.75 mas表面重力1.45±0.3光 度439±17 L☉金属量-0.33±0.1 dex自转速度3.5±1.5 km/sU−B 色指数1.92B−V 色指数1.44年 龄6.4 Gyr + --------------- 维基百科 --------------- + 观测资料 + 历元 J2000.0 + 星座 金牛座 + 星官 毕(毕宿) + 赤经 04h 35m 55.23907s[1] + 赤纬 +16° 30′ 33.4885″[1] + 视星等(V) 0.75–0.95[2] + 特性 + 演化阶段 红巨星分支[3] + 光谱分类 K5+ III[4] + 视星等 (J) −2.095[5] + U−B 色指数 +1.92[6] + B−V 色指数 +1.44[6] + 变星类型 LB[2] + 天体测定 + 径向速度 (Rv) +54.26±0.03[7] km/s + 自行 (μ) 赤经:63.45±0.84[1] mas/yr + 赤纬:−188.94±0.65[1] mas/yr + 视差 (π) 49.97 ± 0.75[8] mas + 距离 65.3 ± 1 ly + (20 ± 0.3 pc) + 绝对星等 (MV) −0.641±0.034[8] + 详细资料 + 质量 1.16±0.07[9] M☉ + 半径 44.13±0.84[10] R☉ + 表面重力 (log g) 1.45±0.3[11] + 亮度 439±17[12] L☉ + 温度 3,900±50[11] K + 金属量 [Fe/H] −0.33±0.1[11] dex + 自转 520 days[13] + 自转速度 (v sin i) 3.5±1.5[11] km/s + 年龄 6.4Gyr[9] Gyr ------------------------ == 太阳参数 == @@ -39,7 +54,7 @@ class Aldebaran(FixedStar): 平均密度: 1.408×10³ kg/m³ """ - def __init__(self, name="毕宿五", mass=11.3 * MO, + def __init__(self, name="毕宿五", mass=1.16 * MO, init_position=[0, 0, 0], init_velocity=[0, 0, 0], color=(250, 195, 47), @@ -50,7 +65,7 @@ class Aldebaran(FixedStar): "mass": mass, "init_position": init_position, "init_velocity": init_velocity, - "density": 0.29, + "density": 0.019004605622458228, "color": color, "texture": texture, "size_scale": size_scale, @@ -62,12 +77,7 @@ class Aldebaran(FixedStar): if __name__ == '__main__': - from bodies import Sun - import math fixed_star = Aldebaran() - sun = Sun() print(fixed_star) - print("质量倍数", fixed_star.mass / sun.mass) - print("半径倍数", fixed_star.raduis / sun.raduis) - r = 38 - print("密度換算", fixed_star.mass / 1e9 / (4 / 3 * math.pi * pow(r * sun.raduis, 3))) + fixed_star.compare_with_sun() + fixed_star.density_by_radius(num_sun_raduis=44.13) diff --git a/bodies/fixed_stars/antares.py b/bodies/fixed_stars/antares.py index 56c968e..a483176 100644 --- a/bodies/fixed_stars/antares.py +++ b/bodies/fixed_stars/antares.py @@ -12,31 +12,41 @@ from common.consts import MO class Antares(FixedStar): """ - 心宿二,英文名为Antares - 质 量A:12 ± 0.2 M⊙ B:7.2 M⊙ - 半 径A:680–800 R☉;B:5.2 R☉ - A:红超巨星 B:蓝矮星 - 质量:为12太阳质量 - 大小:为680–800太阳半径 - 颜色:为0xFF, 0x44, 0x00 - 密度:为0.0037 g/cm³。 + 心宿二 (Antares) + --------------- 维基百科 --------------- + 观测资料 + 历元 J2000 + 星座 天蝎座 + 星官 心 (心宿) + 赤经 16h 29m 24s[1] + 赤纬 −26° 25′ 55″[1] + 视星等(V) +0.96[2] + 特性 + 光谱分类 M1.5Iab-b + B2.5V[3] + U−B 色指数 +1.34[2] + B−V 色指数 +1.83[2] + 变星类型 LC[4] + 天体测定 + 径向速度 (Rv) −3.4[5] km/s + 自行 (μ) 赤经:−12.11[1] mas/yr + 赤纬:−23.30[1] mas/yr + 视差 (π) 5.89 ± 1.00[1] mas + 距离 大约550 ly + (大约170 pc) + 绝对星等 (MV) −5.28 + 详细资料 + A + 质量 15.5[6] M☉ + 半径 680[6] R☉ + 表面重力 (log g) 0.1[6] + 亮度 62,300[7] L☉ + 温度 3400 ± 200[7] K + 自转速度 (v sin i) 20[8] km/s + B + 质量 6-8 M☉ + 半径 4 R☉ + 温度 18,500[7] K - 中文名: 心宿二 - 外文名: Antares - 别名: Alpha Scorpii - 分类: A:红超巨星 B:蓝矮星 - 质量: A:12 ± 0.2 M⊙ B:7.2 M⊙ - 表面温度: A:3570 K B:18500 K - 视星等: A:0.6 ~ 1.6 B:5.5 - 绝对星等: -5.28 等 [9] - 赤经: 16时29分24.46秒 - 赤纬: -26°25′55.21″ - 距地距离: 550 ly(170 pc)U-B - 色指数: A:M1.5Iab-Ib B:B2.5VB-V - 色指数: +1.83 - 光度: A:75,900 L☉ (44,700 – 128,900 L☉);B:2754 L☉ [9] - 变星类型: Lc - 半径: A:680–800 R☉;B:5.2 R☉ ------------------------ == 太阳参数 == @@ -45,7 +55,7 @@ class Antares(FixedStar): 平均密度: 1.408×10³ kg/m³ """ - def __init__(self, name="心宿二", mass=12 * MO, + def __init__(self, name="心宿二A", mass=15.5 * MO, init_position=[0, 0, 0], init_velocity=[0, 0, 0], color=(249,198,83), @@ -56,7 +66,7 @@ class Antares(FixedStar): "mass": mass, "init_position": init_position, "init_velocity": init_velocity, - "density": 0.000037, + "density": 6.940769387339728e-05, "color": color, "texture": texture, "size_scale": size_scale, @@ -69,9 +79,7 @@ class Antares(FixedStar): if __name__ == '__main__': - from bodies import Sun fixed_star = Antares() - sun = Sun() print(fixed_star) - print("质量倍数", fixed_star.mass / sun.mass) - print("半径倍数", fixed_star.raduis / sun.raduis) \ No newline at end of file + fixed_star.compare_with_sun() + fixed_star.density_by_radius(num_sun_raduis=680) \ No newline at end of file diff --git a/bodies/fixed_stars/arcturus.py b/bodies/fixed_stars/arcturus.py index a201693..7c694d8 100644 --- a/bodies/fixed_stars/arcturus.py +++ b/bodies/fixed_stars/arcturus.py @@ -13,27 +13,34 @@ from common.consts import MO class Arcturus(FixedStar): """ 大角星 (Arcturus) - 质量:太阳质量 - 密度:1.16×10⁻⁴ g/cm³ - 颜色值:#FF9100 - 直径:25.4倍太阳直径 - - - 中文名大角星 - 外文名Arcturus - 别 名牧夫座α,牧夫座16 [2] 、α Boötis、天栋 - 分 类恒星(橙巨星) - 质 量约 1.08 M⊙ [4] - 表面温度约 4286 K [4] - 视星等-0.05 等 [3] - 绝对星等-0.38 等 - 赤 经14时15分39.7秒 - 赤 纬+19°10′56″ - 距地距离36.7 光年 - 半 径25.4±0.2 R☉ [4] - 光 度170 L☉ [5] - 光谱类型K0III [2] - + --------------- 维基百科 --------------- + 观测资料 + 历元 J2000 + 星座 牧夫座 + 星官 苍龙亢宿大角 + 赤经 14h 15 m 39.7s + 赤纬 +19° 10' 56" + 视星等(V) −0.04 + 特性 + 光谱分类 K1.5 IIIpe + U−B 色指数 1.22 + B−V 色指数 1.24 + 变星类型 Suspected + 天体测定 + 径向速度 (Rv) −5.2 km/s + 自行 (μ) 赤经:−1093.45 mas/yr + 赤纬:−1999.40 mas/yr + 视差 (π) 88.78 ± 0.68 mas + 距离 36.7 ± 0.3 ly + (11.26 ± 0.09 pc) + 绝对星等 (MV) −0.38 + 详细资料 + 质量 1.10 ± 0.06[1] M☉ + 半径 25.7 ± 0.3[2] R☉ + 亮度 180-210[3] L☉ + 温度 4,300[4] K + 金属量 20–50% Sun + 年龄 > 4.6 × 109 年 ------------------------ == 太阳参数 == 自转周期: 24.47 地球日,自转角速度约为 0.6130 度/小时 = 360/(24.47*24) @@ -41,10 +48,10 @@ class Arcturus(FixedStar): 平均密度: 1.408×10³ kg/m³ """ - def __init__(self, name="大角星", mass=1.08 * MO, + def __init__(self, name="大角星", mass=1.1 * MO, init_position=[0, 0, 0], init_velocity=[0, 0, 0], - color=(254,218,185), + color=(254, 218, 185), texture="fixed_star.png", size_scale=1.0, distance_scale=1.0, rotation_speed=0.4, ignore_mass=False): params = { @@ -52,7 +59,7 @@ class Arcturus(FixedStar): "mass": mass, "init_position": init_position, "init_velocity": init_velocity, - "density": 0.0925, + "density": 0.09124224657404181, "color": color, "texture": texture, "size_scale": size_scale, @@ -64,9 +71,7 @@ class Arcturus(FixedStar): if __name__ == '__main__': - from bodies import Sun fixed_star = Arcturus() - sun = Sun() print(fixed_star) - print("质量倍数", fixed_star.mass / sun.mass) - print("半径倍数", fixed_star.raduis / sun.raduis) \ No newline at end of file + fixed_star.compare_with_sun() + fixed_star.density_by_radius(num_sun_raduis=25.7) diff --git a/bodies/fixed_stars/bellatrix.py b/bodies/fixed_stars/bellatrix.py index 0ec59ce..0ce5e4f 100644 --- a/bodies/fixed_stars/bellatrix.py +++ b/bodies/fixed_stars/bellatrix.py @@ -12,33 +12,37 @@ from common.consts import MO class Bellatrix(FixedStar): """ - TODO: 参宿五 (Bellatrix) - 质量:8.6太阳质量 - 密度:1.16×10⁻⁴ g/cm³ - 颜色值:#FF9100 - 直径:5.75倍太阳直径 - - 中文名参宿五 - 外文名Bellatrix别 名猎户座γ - 分 类恒星 - 质 量8.6 M⊙ - 表面温度22000 K - 视星等1.64 等 - 绝对星等-2.78 等 - 赤 经5时25分07.9秒 - 赤 纬+6°20′58.93″ - 距地距离约 250 光年 - 光谱类型B2 III - 径向速度18.2 km/s - 视 差12.92±0.52 mas - 半 径5.75 R☉ - 表面重力3.6 cgs - 光 度9,211 L☉ - 金属量–0.07 dex - 自转速度46±8 km/s - U−B 色指数-0.86 - B−V 色指数-0.21 - 年 龄25.2 Myr + 参宿五 (Bellatrix) + --------------- 维基百科 --------------- + 观测资料 + 历元 J2000 + 星座 猎户座 + 星官 参(参宿,白虎) + 赤经 05h 25m 07.86325s[1] + 赤纬 +06° 20′ 58.9318″[1] + 视星等(V) 1.64[2] (1.59 - 1.64[3]) + 特性 + 光谱分类 B2 III[4] + U−B 色指数 –0.86[2] + B−V 色指数 –0.21[2] + 变星类型 ?[3] + 天体测定 + 径向速度 (Rv) +18.2[5] km/s + 自行 (μ) 赤经:–8.11[1] mas/yr + 赤纬:–12.88[1] mas/yr + 视差 (π) 12.92 ± 0.52[1] mas + 距离 250 ± 10 ly + (77 ± 3 pc) + 绝对星等 (MV) −2.78[6] + 详细资料 + 质量 8.6[7] M☉ + 半径 5.75[8] R☉ + 表面重力 (log g) 3.60[9] + 亮度 9,211[8] L☉ + 温度 22000[9] K + 金属量 [Fe/H] –0.07[8] dex + 自转速度 (v sin i) 46±8[9] km/s + 年龄 25.2[7] Myr ------------------------ == 太阳参数 == 自转周期: 24.47 地球日,自转角速度约为 0.6130 度/小时 = 360/(24.47*24) @@ -69,10 +73,7 @@ class Bellatrix(FixedStar): if __name__ == '__main__': - from bodies import Sun - fixed_star = Bellatrix() - sun = Sun() print(fixed_star) - print("质量倍数", fixed_star.mass / sun.mass) - print("半径倍数", fixed_star.raduis / sun.raduis) + fixed_star.compare_with_sun() + fixed_star.density_by_radius(num_sun_raduis=5.75) diff --git a/bodies/fixed_stars/betelgeuse.py b/bodies/fixed_stars/betelgeuse.py index 19f87e9..d1c6860 100644 --- a/bodies/fixed_stars/betelgeuse.py +++ b/bodies/fixed_stars/betelgeuse.py @@ -12,24 +12,39 @@ from common.consts import MO class Betelgeuse(FixedStar): """ - TODO: 参宿四 (Betelgeuse) - 质量:11.6太阳质量 - 密度:1.16×10⁻⁴ g/cm³ - 颜色值:#FF9100 - 直径:887倍太阳直径 - - 中文名参宿四外文名Betelgeuse - 别 名α Orionis - 分 类红超巨星 - 质 量11.6,11.6 + 5.0 或 11.6 - 3.9 M⊙ - 直 径887 ± 203 或955 ± 217 D⊙ - 表面温度3590 K视星等+0.50(0.0 ~ +1.3)绝对星等-5.85 - 赤 经5时55分10.30秒 - 赤 纬+7°24′25.43″ - 距地距离640 光年 - 光谱型M1-M2Ia-abU-B 色指数+2.06B-V 色指数+1.85 - 光 度90000 ~ 1.5 × 10^5 L⊙变星类型SRc - + 参宿四 (Betelgeuse) + --------------- 维基百科 --------------- + 观测资料 + 历元 J2000.0 + 星座 猎户座 + 星官 参宿 + 赤经 05h 55m 10.3053s[1] + 赤纬 +07° 24′ 25.426″[1] + 视星等(V) 0.42[1](0.3 to 1.2) + 特性 + 光谱分类 M2Iab(红超巨星)[1] + U−B 色指数 2.06[2] + B−V 色指数 1.85(橙红)[2] + 变星类型 SR c (半规则)[1] + 天体测定 + 径向速度 (Rv) +21.91[1] km/s + 自行 (μ) 赤经:24.95 ± 0.08[3] mas/yr + 赤纬:9.56 ± 0.15[3] mas/yr + 视差 (π) 5.07 ± 1.10[3] mas + 距离 643 ± 146 [3] ly + (197 ± 45 [3] pc) + 绝对星等 (MV) −6.05[4] + 详细资料 + 质量 ~18–19[5] M☉ + 半径 ~1180[6] R☉ + 表面重力 (log g) -0.5[7] + 亮度 ~140,000[8] L☉ + 温度 3,500[7][9] K + 金属量 0.05 Fe/H[10] + 自转 5 km/s[9] + 年龄 ~1.0×107 [5] 年 + 其他命名 + 参宿四,α Ori,58 Ori,HR 2061, BD +7° 1055, HD 39801, FK5 224, HIP 27989, SAO 113271, GC 7451, CCDM J05552+0724AP, AAVSO 0549+07 ------------------------ == 太阳参数 == 自转周期: 24.47 地球日,自转角速度约为 0.6130 度/小时 = 360/(24.47*24) @@ -37,7 +52,7 @@ class Betelgeuse(FixedStar): 平均密度: 1.408×10³ kg/m³ """ - def __init__(self, name="参宿四", mass=11.6 * MO, + def __init__(self, name="参宿四", mass=19 * MO, init_position=[0, 0, 0], init_velocity=[0, 0, 0], color=(254,162,1), @@ -48,7 +63,7 @@ class Betelgeuse(FixedStar): "mass": mass, "init_position": init_position, "init_velocity": init_velocity, - "density": 0.0000234, + "density": 1.6282093105916417e-05, "color": color, "texture": texture, "size_scale": size_scale, @@ -60,9 +75,7 @@ class Betelgeuse(FixedStar): if __name__ == '__main__': - from bodies import Sun fixed_star = Betelgeuse() - sun = Sun() print(fixed_star) - print("质量倍数", fixed_star.mass / sun.mass) - print("半径倍数", fixed_star.raduis / sun.raduis) \ No newline at end of file + fixed_star.compare_with_sun() + fixed_star.density_by_radius(num_sun_raduis=1180) \ No newline at end of file diff --git a/bodies/fixed_stars/carinae_v382.py b/bodies/fixed_stars/carinae_v382.py index eca5226..e853f9f 100644 --- a/bodies/fixed_stars/carinae_v382.py +++ b/bodies/fixed_stars/carinae_v382.py @@ -12,17 +12,38 @@ from common.consts import MO class CarinaeV382(FixedStar): """ - TODO: 船底座V382(CarinaeV382) - 质量:为20太阳质量 质 量20 M⊙ [2] - 大小:为350太阳半径 半 径700 ± 250 R☉ - 颜色:为0xFF, 0xBF, 0x00 - 密度:为0.008 g/cm³ - - 中文名船底座V382外文名V382 Carinae别 - 名船底座x、海石增四分 类黄特超巨星 - 质 量20 M⊙ [2] - 表面温度5200 K [2] 视星等3.93 等绝对星等-9 等 [1] 赤 经11时08分35.39秒 [3] 赤 纬-58°58′30.14″ [3] 距地距离约 8900 光年 [1] - 半 径700 ± 250 R☉ [4] 光 度316,000 L☉ [1] + 船底座V382(CarinaeV382) + --------------- 维基百科 --------------- + 船底座V382 + V382 Carinae.jpg + 船底座V382位于照片中央 + 观测资料 + 历元 J2000.0 + 星座 船底座 + 星官 近南极星区 海石 + 赤经 11h08m35.4s + 赤纬 −58°58′30″ + 视星等(V) +3.93 + 特性 + 光谱分类 G0I-a0 var + U−B 色指数 +0.94 + B−V 色指数 +1.23 + 变星类型 造父变星 + 天体测定 + 径向速度 (Rv) +7 km/s + 自行 (μ) 赤经:−5.03 mas/yr + 赤纬:2.09 mas/yr + 视差 (π) 0.55 ± 0.54 mas + 距离 > 5900 ly + (> 1800 pc) + 绝对星等 (MV) −7.36 + 详细资料 + 质量 39 M☉ + 半径 747 R☉ + 亮度 71500(可见光)L⊙/480000(辐射热)L⊙ L☉ + 温度 5550或4420 (以B-V) K + 其他命名 + x Carinae, HR 4337, HD 96918, CP−58°3189, FK5 1289, HIP 54463, SAO 238813, GC 15329 ------------------------ == 太阳参数 == 自转周期: 24.47 地球日,自转角速度约为 0.6130 度/小时 = 360/(24.47*24) @@ -30,7 +51,7 @@ class CarinaeV382(FixedStar): 平均密度: 1.408×10³ kg/m³ """ - def __init__(self, name="船底座V382", mass=20 * MO, + def __init__(self, name="船底座V382", mass=39 * MO, init_position=[0, 0, 0], init_velocity=[0, 0, 0], color=(255, 244, 89), @@ -41,7 +62,7 @@ class CarinaeV382(FixedStar): "mass": mass, "init_position": init_position, "init_velocity": init_velocity, - "density": 0.000656, + "density": 0.0001317362984479511, "color": color, "texture": texture, "size_scale": size_scale, @@ -56,4 +77,4 @@ if __name__ == '__main__': fixed_star = CarinaeV382() print(fixed_star) fixed_star.compare_with_sun() - fixed_star.density_by_radius(num_sun_raduis=350) + fixed_star.density_by_radius(num_sun_raduis=747) diff --git a/bodies/fixed_stars/eta_carinae.py b/bodies/fixed_stars/eta_carinae.py index 88ac73a..c1676fc 100644 --- a/bodies/fixed_stars/eta_carinae.py +++ b/bodies/fixed_stars/eta_carinae.py @@ -12,19 +12,32 @@ from common.consts import MO class EtaCarinae(FixedStar): """ - TODO: 海山二/船底座(Eta Carinae) - 质量:100 太阳质量 - 大小:277 太阳半径 - 颜色:0xFF, 0xD7, 0x00 - 密度:0.002 g/cm³ - - 中文名海山二/船底座 η 星外文名Eta Carinae别 名Eta Car / η Carinae / η Car - 分 类A:高光度蓝变星 B:主序星发现者爱德蒙·哈雷发现时间1677年 - 质 量100 M⊙(B:50-80M) - 直 径386809200 km(B:33 393 600Km) - 表面温度A:9400 ~ 35200 K B:37200 K视星等约 4.3 等(-0.8至7.9) - 绝对星等-8.6 等赤 经10时45分03.59秒赤 纬-59°41′04.26″距地距离7500 ly(2300 pc)半长轴15.4 AU离心率0.9公转周期2,022.7 ± 1.3 days(5.54 yr)轨道倾角130 ~ 145°光谱型A:LBV B:OU-B 色指数-0.45B-V 色指数+0.61光 度A:5 × 10^6 L☉ B:10^6 L☉ - + 海山二/船底座 (Eta Carinae) + --------------- 维基百科 --------------- + 观测资料 + 历元 J2000 + 星座 船底座 + 星官 海山 (近南极星区) + 赤经 10h 45m 03.6s[1] + 赤纬 -59° 41′ 04″ + 视星等(V) 6.21 (-0.8–7.9)[1] + 特性 + 光谱分类 B3-5Ia0/O7I(WC8) + U−B 色指数 -0.45 + B−V 色指数 0.61 + 变星类型 高光度蓝变星 双星 或复合星 + 天体测定 + 径向速度 (Rv) −25.0[1] km/s + 自行 (μ) 赤经:−7.6[1] mas/yr + 赤纬:1.0[1] mas/yr + 详细资料 + 质量 105-125/30[2] M☉ + 半径 278/12 R☉ + 亮度 5,150,000/292,000bolometric) L☉ + 温度 16500/38800 K + 金属量 ? + 自转 ? + 年龄 ~ <3 × 106 年 ------------------------ == 太阳参数 == 自转周期: 24.47 地球日,自转角速度约为 0.6130 度/小时 = 360/(24.47*24) @@ -32,7 +45,7 @@ class EtaCarinae(FixedStar): 平均密度: 1.408×10³ kg/m³ """ - def __init__(self, name="海山二", mass=100 * MO, + def __init__(self, name="海山二", mass=125 * MO, init_position=[0, 0, 0], init_velocity=[0, 0, 0], color=(111,140,255), @@ -43,7 +56,7 @@ class EtaCarinae(FixedStar): "mass": mass, "init_position": init_position, "init_velocity": init_velocity, - "density": 0.0065, + "density": 0.008191779995598798, "color": color, "texture": texture, "size_scale": size_scale, @@ -55,14 +68,8 @@ class EtaCarinae(FixedStar): if __name__ == '__main__': - from bodies import Sun - import math - fixed_star = EtaCarinae() - sun = Sun() print(fixed_star) - print("质量倍数", fixed_star.mass / sun.mass) - print("半径倍数", fixed_star.raduis / sun.raduis) - # print((386809200/sun.diameter)) - r = 277.8 - print("密度換算", fixed_star.mass / 1e9 / (4 / 3 * math.pi * pow(r * sun.raduis, 3))) + fixed_star.compare_with_sun() + fixed_star.density_by_radius(num_sun_raduis=278) + diff --git a/bodies/fixed_stars/fixed_star.py b/bodies/fixed_stars/fixed_star.py index c3657b0..c5edda1 100644 --- a/bodies/fixed_stars/fixed_star.py +++ b/bodies/fixed_stars/fixed_star.py @@ -80,8 +80,17 @@ class FixedStar(Body): def compare_with_sun(self): from bodies import Sun sun = Sun() - print("质量倍数", self.mass / sun.mass) - print("半径倍数", self.raduis / sun.raduis) + print("---------------------------------") + print("质量: %.2f M☉ (%.4g kg)" % (self.mass / sun.mass, self.mass)) + print("半径: %.2f R☉ (%.4g km)" % (self.raduis / sun.raduis, self.raduis)) + print("直径: %.2f R☉ (%.4g km)" % (self.diameter / sun.diameter, self.diameter)) + num_sun_volume = self.volume / sun.volume # 相当于多少个太阳体积 + if num_sun_volume <= 10000: + print("体积: %.2f M☉ (%.4g km³)" % (num_sun_volume, self.volume)) + elif num_sun_volume <= 100000000: + print("体积: %.2f万 M☉ (%.4g km³)" % (num_sun_volume / 10000, self.volume)) + else: + print("体积: %.2f亿 M☉ (%.4g km³)" % (num_sun_volume / 100000000, self.volume)) def density_by_radius(self, raduis=None, num_sun_raduis=None): """ @@ -96,7 +105,7 @@ class FixedStar(Body): sun = Sun() if num_sun_raduis is not None: raduis = num_sun_raduis * sun.raduis - print("密度換算", self.mass / 1e9 / (4 / 3 * math.pi * pow(raduis, 3))) + print("---------------------------------\n密度換算: ", self.mass / 1e9 / (4 / 3 * math.pi * pow(raduis, 3))) if __name__ == '__main__': diff --git a/bodies/fixed_stars/pollux.py b/bodies/fixed_stars/pollux.py index e8847c9..88157fd 100644 --- a/bodies/fixed_stars/pollux.py +++ b/bodies/fixed_stars/pollux.py @@ -12,32 +12,45 @@ from common.consts import MO class Pollux(FixedStar): """ - TODO: 北河三 (Pollux) - 质量:1.5太阳质量 - 密度:1.8 g/cm³ - 颜色值:#F5E8D5 - 直径:1.84倍太阳直径 + 北河三 (Pollux) + --------------- 维基百科 --------------- + 观测资料 + 历元 J2000.0 + 星座 双子座 + 星官 北河 (井宿) + 赤经 07h 45m 18.94987s[1] + 赤纬 +28° 01′ 34.3160″[1] + 视星等(V) 1.14[2] + 特性 + 演化阶段 巨星 + 光谱分类 K0III[3] + U−B 色指数 +0.86[2] + B−V 色指数 +1.00[2] + 变星类型 Suspected[4] + 天体测定 + 径向速度 (Rv) +3.23[5] km/s + 自行 (μ) 赤经:–626.55[1] mas/yr + 赤纬:–45.80[1] mas/yr + 视差 (π) 96.54 ± 0.27[1] mas + 距离 33.78 ± 0.09 ly + (10.36 ± 0.03 pc) + 绝对星等 (MV) +1.08±0.02[6] + 详细资料 + 质量 1.91±0.09[7] M☉ + 半径 8.8±0.1[8] R☉ + 表面重力 (log g) 2.685±0.09[8] + 亮度 43[9] L☉ + 温度 4666±95[8] K + 金属量 [Fe/H] –0.07 to +0.19[8] dex + 自转 558 days[10] + 自转速度 (v sin i) 2.8[11] km/s + 年龄 724[12] Myr + 其他命名 + Beta Geminorum, 78 Geminorum, BD+28°1463, GCTP 1826.00, Gliese 286, HD 62509, HIP 37826, HR 2990, LFT 548, LHS 1945, LTT 12065, SAO 79666.[13] - 中文名北河三外文名Pollux别 名双子座β星分 类恒星,橙巨星 - 质 量1.86 M⊙ - 表面温度4770 K - 视星等1.14 等 - 绝对星等1.08 等自 - 转周期558天 - 赤 经7时45分18.94秒 - 赤 纬+28°01′34.31″ - 距地距离33.78 光年B-V - 色指数1U-B - 色指数0.86 - 光 度39L⊙ - 位 置双子座 -一、北河三比太阳大多少,77.4个太阳 -北河三,亮度为太阳的43倍,是目前发现的全天第17亮星(夜晚最亮的是大犬座的天狼星,典型的蓝矮星)。因为北河三非常亮,所以经常有人把它与太阳相比较,至于北河三比太阳大多少?据小编查询,北河三质量是太阳的1.86倍,半径是太阳的8.8倍,体积是太阳的77.4倍。 -二、北河三有多大,红巨星中较小 -太阳是恒星,北河三为红巨星,所以北河三比太阳大很多。不过在红巨星中,北河三又成了较小的存在,多数亮巨星超巨星都比他大。比如星心宿二是颗红超巨星,直径达到太阳的700倍;参宿七是颗蓝超巨星,直径约为太阳77倍。类似的恒星还很多,北河三并不算大。 ------------------------ == 太阳参数 == @@ -46,7 +59,7 @@ class Pollux(FixedStar): 平均密度: 1.408×10³ kg/m³ """ - def __init__(self, name="北河三", mass=1.5 * MO, + def __init__(self, name="北河三", mass=2 * MO, init_position=[0, 0, 0], init_velocity=[0, 0, 0], color=(0xF5, 0xE8, 0xD5), @@ -57,7 +70,7 @@ class Pollux(FixedStar): "mass": mass, "init_position": init_position, "init_velocity": init_velocity, - "density": 0.5e3, + "density": 4.132231404958686, "color": color, "texture": texture, "size_scale": size_scale, @@ -69,9 +82,7 @@ class Pollux(FixedStar): if __name__ == '__main__': - from bodies import Sun fixed_star = Pollux() - sun = Sun() print(fixed_star) - print("质量倍数", fixed_star.mass / sun.mass) - print("半径倍数", fixed_star.raduis / sun.raduis) \ No newline at end of file + fixed_star.compare_with_sun() + fixed_star.density_by_radius(num_sun_raduis=8.8) \ No newline at end of file diff --git a/bodies/fixed_stars/pollux_b.py b/bodies/fixed_stars/pollux_b.py deleted file mode 100644 index f7f30be..0000000 --- a/bodies/fixed_stars/pollux_b.py +++ /dev/null @@ -1,65 +0,0 @@ -# -*- coding:utf-8 -*- -# title :北河三 -# description :北河三 -# author :Python超人 -# date :2023-02-11 -# link :https://gitcode.net/pythoncr/ -# python_version :3.8 -# ============================================================================== -from bodies import FixedStar -from common.consts import MO - - -class PolluxB(FixedStar): - """ - TODO: 北河三b (Pollux b) - 质量:1.5太阳质量 - 密度:1.8 g/cm³ - 颜色值:#F5E8D5 - 直径:1.84倍太阳直径 - - 中文名北河三b外文名Pollux b -β Gem b别 名HD 62509 b、Thestias分 类系外行星发现者亚提·瀚兹(等人)发现时间2006年质 量2.3 MJ(至少)距地距离33.78 光年 [2] 半长轴1.64 AU离心率0.02公转周期589.64 ± 0.81 天 - -一、北河三比太阳大多少,77.4个太阳 -北河三,亮度为太阳的43倍,是目前发现的全天第17亮星(夜晚最亮的是大犬座的天狼星,典型的蓝矮星)。因为北河三非常亮,所以经常有人把它与太阳相比较,至于北河三比太阳大多少?据小编查询,北河三质量是太阳的1.86倍,半径是太阳的8.8倍,体积是太阳的77.4倍。 - -二、北河三有多大,红巨星中较小 -太阳是恒星,北河三为红巨星,所以北河三比太阳大很多。不过在红巨星中,北河三又成了较小的存在,多数亮巨星超巨星都比他大。比如星心宿二是颗红超巨星,直径达到太阳的700倍;参宿七是颗蓝超巨星,直径约为太阳77倍。类似的恒星还很多,北河三并不算大。 - - ------------------------ - == 太阳参数 == - 自转周期: 24.47 地球日,自转角速度约为 0.6130 度/小时 = 360/(24.47*24) - 天体质量: 1.9891×10³⁰ kg - 平均密度: 1.408×10³ kg/m³ - """ - - def __init__(self, name="北河三b", mass=1.5 * MO, - init_position=[0, 0, 0], - init_velocity=[0, 0, 0], - color=(0xF5, 0xE8, 0xD5), - texture="fixed_star.png", size_scale=1.0, distance_scale=1.0, - rotation_speed=0.1, ignore_mass=False): - params = { - "name": name, - "mass": mass, - "init_position": init_position, - "init_velocity": init_velocity, - "density": 0.5e3, - "color": color, - "texture": texture, - "size_scale": size_scale, - "distance_scale": distance_scale, - "rotation_speed": rotation_speed, - "ignore_mass": ignore_mass - } - super().__init__(**params) - - -if __name__ == '__main__': - from bodies import Sun - fixed_star = PolluxB() - sun = Sun() - print(fixed_star) - print("质量倍数", fixed_star.mass / sun.mass) - print("半径倍数", fixed_star.raduis / sun.raduis) \ No newline at end of file diff --git a/bodies/fixed_stars/procyon.py b/bodies/fixed_stars/procyon.py index 0ad96d8..51e6e82 100644 --- a/bodies/fixed_stars/procyon.py +++ b/bodies/fixed_stars/procyon.py @@ -12,28 +12,65 @@ from common.consts import MO class Procyon(FixedStar): """ - TODO: 南河三(Procyon) - 质量:1.5太阳质量 - 密度:1.8 g/cm³ - 颜色值:#F5E8D5 - 直径:1.84倍太阳直径 + 南河三 (Procyon) + --------------- 维基百科 --------------- + 南河三A/B + 观测资料 + 历元 J2000 + 星座 小犬座 + 星官 南河(井宿,朱雀) + 赤经 07h 39m 18.11950s[1] + 赤纬 +05° 13′ 29.9552″[1] + 视星等(V) 0.34[2] (A) / 10.7[3] (B) + 特性 + 光谱分类 F5 IV–V[2] + DQZ[4] + U−B 色指数 +0.00[5] + B−V 色指数 +0.42[5] + 变星类型 ?[6] (A) + 天体测定 + 径向速度 (Rv) −3.2[7] km/s + 自行 (μ) 赤经:−714.590[1] mas/yr + 赤纬:−1036.80[1] mas/yr + 视差 (π) 284.56 ± 1.26[1] mas + 距离 11.46 ± 0.05 ly + (3.51 ± 0.02 pc) + 绝对星等 (MV) 2.66/13.0[3] + 详细资料 + 南河三A + 质量 1.499±0.031[8] M☉ + 半径 2.048±0.025[2] R☉ + 表面重力 (log g) 3.96[2] + 亮度 6.93[2] L☉ + 温度 6,530±50[2] K + 金属量 [Fe/H] −0.05±0.03[2] dex + 自转 23天[9] + 自转速度 (v sin i) 3.16±0.50[2] km/s + 年龄 1.87±0.13[8] Gyr + 南河三B + 质量 0.602±0.015[4] M☉ + 半径 0.01234±0.00032[4] R☉ + 表面重力 (log g) 8.0[4] + 亮度 0.00049[10] L☉ + 温度 7,740±50[4] K + 年龄 1.37[10] Gyr + 轨道[11] + 伴星 南河三B + 绕行周期 (P) 40.82 yr + 半长轴 (a) 4.3" + 偏心率 (e) 0.407 + 倾斜角 (i) 31.1° + 升交点黄经 (Ω) 97.3° + 近心点 历元 (T) 1967.97 + 近心点幅角 (ω) + (secondary) 92.2° + 其他命名 + Elgomaisa, Algomeysa, Antecanis, α Canis Minoris, 10 Canis Minoris,GCTP 1805.00, HR 2943, BD+05°1739, HD 61421, LHS 233, GJ 280, HIP 37279, SAO 115756.[12] + + + + + - 中文名: 南河三 - 外文名: Procyon - 别名: 小犬座α - 分类: 恒星 - 发现者: 未知发现时间史前视星等约0.34绝对星等约2.67 - 赤经: 7时39分18.1秒 - 赤纬: +5°13′29″ - 距地距离: 约 11.46 光年 - 半长轴: 1.18" - 离心率: 0.36 - 轨道倾角: 31.9 度 - 年龄: 约1.7×1000000000年 - 星表编号: IP 37279 - 光谱类型: F5 IV-V - 星座: 小犬座 - 星官: 南河(井宿,朱雀) ------------------------ == 太阳参数 == 自转周期: 24.47 地球日,自转角速度约为 0.6130 度/小时 = 360/(24.47*24) @@ -52,7 +89,7 @@ class Procyon(FixedStar): "mass": mass, "init_position": init_position, "init_velocity": init_velocity, - "density": 0.5e3, + "density": 245.15024448281426, "color": color, "texture": texture, "size_scale": size_scale, @@ -64,9 +101,7 @@ class Procyon(FixedStar): if __name__ == '__main__': - from bodies import Sun fixed_star = Procyon() - sun = Sun() print(fixed_star) - print("质量倍数", fixed_star.mass / sun.mass) - print("半径倍数", fixed_star.raduis / sun.raduis) \ No newline at end of file + fixed_star.compare_with_sun() + fixed_star.density_by_radius(num_sun_raduis=2.05) \ No newline at end of file diff --git a/bodies/fixed_stars/rigel.py b/bodies/fixed_stars/rigel.py index 8484117..218aed4 100644 --- a/bodies/fixed_stars/rigel.py +++ b/bodies/fixed_stars/rigel.py @@ -12,23 +12,35 @@ from common.consts import MO class Rigel(FixedStar): """ - 参宿七(Rigel) - 质量:为21太阳质量 - 大小:为78.9太阳半径 - 颜色:为0xFF, 0xEE, 0xC8 - 密度:为0.18 g/cm³ # TODO: 0.060199?? - 直径:1.07184✕108 km - - 中文名参宿七外文名Rigel - 别名: 猎户座β(β Orionis)、猎户座19(19 Orionis) [8] - 分类: 恒星 - 质量: 约 21 M⊙(±3) [7] - 直径: 1.07184✕108 km表 - 面温度约: 12100 K(±150) [7] - 视星等约 0.13 等(0.05 - 0.18) [9] - 绝对星等-7.92 等(± 0.28) [9] - 赤经: 5时14分32.30秒 - 赤纬: -8°12′06″距地距离860 光年(± 80) [9] + 参宿七 (Rigel) + --------------- 维基百科 --------------- + 观测资料 + 历元 J2000.0 + 星座 猎户座 + 星官 参(参宿) + 赤经 05h 14m 32.30s + 赤纬 −08° 12' 06" + 视星等(V) 0.12/6.80 + 特性 + 光谱分类 B8Ia + U−B 色指数 −0.66 + B−V 色指数 −0.03 + 变星类型 Slightly irregular + 天体测定 + 径向速度 (Rv) 20.7 km/s + 自行 (μ) 赤经:1.87 mas/yr + 赤纬:−0.56 mas/yr + 视差 (π) 3.90 ± 0.81 mas + 距离 大约800 ly + (大约260 pc) + 绝对星等 (MV) −6.98 + 详细资料 + 质量 18 M☉ + 半径 74-78 R☉ + 亮度 53,800(126,000)(bolometric) L☉ + 温度 11,400 K + 其他命名 + β Orionis, 19 Ori, Algebar; Elgebar, HD 34085, HR 1713, HIP 24436, SAO 131907 ------------------------ == 太阳参数 == 自转周期: 24.47 地球日,自转角速度约为 0.6130 度/小时 = 360/(24.47*24) @@ -36,7 +48,7 @@ class Rigel(FixedStar): 平均密度: 1.408×10³ kg/m³ """ - def __init__(self, name="参宿七", mass=21 * MO, + def __init__(self, name="参宿七", mass=18 * MO, init_position=[0, 0, 0], init_velocity=[0, 0, 0], color=(141,213,227), @@ -47,7 +59,7 @@ class Rigel(FixedStar): "mass": mass, "init_position": init_position, "init_velocity": init_velocity, - "density": 0.060199, + "density": 0.053406159915035785, "color": color, "texture": texture, "size_scale": size_scale, @@ -60,9 +72,7 @@ class Rigel(FixedStar): if __name__ == '__main__': - from bodies import Sun fixed_star = Rigel() - sun = Sun() print(fixed_star) - print("质量倍数", fixed_star.mass / sun.mass) - print("半径倍数", fixed_star.raduis / sun.raduis) + fixed_star.compare_with_sun() + fixed_star.density_by_radius(num_sun_raduis=78) diff --git a/bodies/fixed_stars/sirius.py b/bodies/fixed_stars/sirius.py index 2338e2c..a786ca4 100644 --- a/bodies/fixed_stars/sirius.py +++ b/bodies/fixed_stars/sirius.py @@ -13,35 +13,57 @@ from common.consts import MO class Sirius(FixedStar): """ 天狼星A (Sirius) - 质量:2.06太阳质量 - 密度:2.6 g/cm³ TODO: 0.58 kg/m³ ??? - 颜色值:#FFF0E4 - 直径:1.71倍太阳直径 TODO: - - 中文名: 天狼星 - 外文名: Sirius - 别名: α Canis Majoris A/ α CMa A - 分类: A:主序星 B:白矮星 - 质量: A:2.063 ± 0.023 M⊙ B:1.018 ± 0.011 M⊙ - 密度: B:10^8 ~ 10^10 kg/m³ - 直径: A:1.711 D⊙ B:0.0084 ± 0.03 D⊙ - 表面温度: A:9940 K B:25000 ± 200 K - 逃逸速度:671 km/s - 视星等: A:-1.47 B:+8.44 System:-1.46 - 绝对星等: A:+1.42 B:+11.18自转周期44.5天 - 赤经: System:06h 45m 08.91728s - 赤纬: System:-16° 42′ 58.0171″ - 距地距离: System:8.60 ± 0.04 ly(2.64 ± 0.01 pc) - 半长轴: 7.4957 ± 0.0025″ - 离心率: 0.59142 ± 0.00037 - 公转周期: 50.1284 ± 0.0043 yr - 平近点角: 149.161 ± 0.075° - 轨道倾角: 136.336 ± 0.040°升 - 交点经度: 45.40 ± 0.071° - 光谱型: A:A0mA1Va B:DA2U-B - 色指数: A:-0.05 B:-1.04B-V - 色指数: A:+0.00 B:-1.03 - 光度: A:25.4 L☉ B:0.056 L☉ + --------------- 维基百科 --------------- + 天狼星A/B + (大犬座α) + Sirius A / B + Position Alpha Cma.png + 天狼星的位置 + 观测资料 + 历元 J2000.0 (ICRS) + 星座 大犬座 + 星官 天狼 (井宿) + 赤经 06h 45m 08.9173s[1][2] + 赤纬 −16° 42′ 58.017″[1][2] + 视星等(V) −1.47 (A)[1]/ 8.30 (B)[3] + 特性 + 光谱分类 A1V (A)[1]/ DA2 (B)[3] + U−B 色指数 −0.05 (A)[4]/ −1.04 (B)[3] + B−V 色指数 0.01 (A)[1]/ −0.03 (B)[3] + 天体测定 + 径向速度 (Rv) −7.6[1] km/s + 自行 (μ) 赤经:−546.05[1][2] mas/yr + 赤纬:−1223.14[1][2] mas/yr + 视差 (π) 379.21 ± 1.58[1] mas + 距离 8.6 ± 0.04 ly + (2.64 ± 0.01 pc) + 绝对星等 (MV) 1.42 (A)[5]/ 11.18 (B)[3] + 轨道[6] + 伴星 天狼星 B + 绕行周期 (P) 50.09 yr + 半长轴 (a) 7.56" + 偏心率 (e) 0.592 + 倾斜角 (i) 136.5° + 升交点黄经 (Ω) 44.6° + 近心点 历元 (T) 1894.13 + 近心点幅角 (ω) + (secondary) 147.3° + 详细资料 + 质量 2.02[7](A) / + 0.978[7](B) M☉ + 半径 1.711[7](A) / + 0.0084 ± 3%[8](B) R☉ + 表面重力 (log g) 4.33[9](A)/8.57[8](B) + 亮度 25.4[7](A) / + 0.026[10](B) L☉ + 温度 9,940[9](A) / + 25,200[7](B) K + 金属量 [Fe/H] =0.50[11](A) + 自转 16 km/s[12](A) + 年龄 2-3 × 108[7] 年 + 其他命名 + System: α Canis Majoris, α CMa, 9 Canis Majoris, 9 CMa, HD 48915, HR 2491, BD -16°1591, GCTP 1577.00 A/B, GJ 244 A/B, LHS 219, ADS 5423, LTT 2638, HIP 32349. + B: EGGR 49, WD 0642-166.[1][13][14] ------------------------ == 太阳参数 == 自转周期: 24.47 地球日,自转角速度约为 0.6130 度/小时 = 360/(24.47*24) @@ -49,7 +71,7 @@ class Sirius(FixedStar): 平均密度: 1.408×10³ kg/m³ """ - def __init__(self, name="天狼星A", mass=2.06 * MO, + def __init__(self, name="天狼星A", mass=2.02 * MO, init_position=[0, 0, 0], init_velocity=[0, 0, 0], color=(0xFF, 0xFF, 0xFF), @@ -60,7 +82,7 @@ class Sirius(FixedStar): "mass": mass, "init_position": init_position, "init_velocity": init_velocity, - "density": 0.58e3, + "density": 568.8079963025574, "color": color, "texture": texture, "size_scale": size_scale, @@ -72,10 +94,7 @@ class Sirius(FixedStar): if __name__ == '__main__': - from bodies import Sun fixed_star = Sirius() - sun = Sun() print(fixed_star) - print(sun) - print("质量倍数", fixed_star.mass / sun.mass) - print("半径倍数", fixed_star.raduis / sun.raduis) + fixed_star.compare_with_sun() + fixed_star.density_by_radius(num_sun_raduis=1.71) diff --git a/bodies/fixed_stars/stephenson_2_18.py b/bodies/fixed_stars/stephenson_2_18.py index 4e387e1..a64c327 100644 --- a/bodies/fixed_stars/stephenson_2_18.py +++ b/bodies/fixed_stars/stephenson_2_18.py @@ -13,31 +13,41 @@ from common.consts import MO class Stephenson_2_18(FixedStar): """ 史蒂文森2-18 (Stephenson 2-18) - 质量:40.0 太阳质量 ? - 大小:2150 太阳半径 - 颜色:0xFF, 0xFF, 0xFF - 密度:0.0002 g/cm³ - 半径:2158R☉ - - - 中文名: 史蒂文森2-18 - 外文名: Stephenson 2-18 - 别名: Stephenson 2 DFK 1、RSGC2-18、St2-18、2MASS J18390238-0605106 [2] 、IRAS 18363-0607 [2] + 质量:40.0 太阳质量 分类: 红超巨星 - 发现者: 查尔斯·布鲁斯·史蒂文森发现时间1990年 直径: 3005015000 km - 表面温度: 约 3200 K [3] - 赤经: 18时39分02.37秒 - 赤纬: -6°05′10.54″ - 距地距离: 约 20000 光年 - 光谱型~M6 [4] - 视星等(V)不可见 [5] - 视星等(G)15.2631 ± 0.0092 [6] - 视星等(J)7.150 [7] - 视星等(H)4.698 [7] - 视星等(K)2.9 [7] 半径: 2158R☉ [1] - 光度: 437000(90000~630000)L☉ [3] + --------------- 维基百科 --------------- + 史蒂芬森2-18 + Stephenson 2-18 zoomed in, 2MASS survey, 2003.png + 2MASS拍摄的史蒂芬森2-18与其母星团史蒂芬森2(左上)。 + Credit: 斯特拉斯堡大学/CNRS (2003) + 观测资料 + 历元 J2000 + 星座 盾牌座 + 星官 + 赤经 18h 39m 02.3709s[1] + 赤纬 -06° 05′ 10.5357″[1] + 视星等(V) + 特性 + 演化阶段 红超巨星 + 光谱分类 ~M6[2] + 视星等 (G) 15.2631±0.0092[1] + 视星等 (J) 7.150[3] + 视星等 (H) 4.698[3] + 视星等 (K) 2.9[3] + 天体测定 + 自行 (μ) 赤经:−3.045±0.511[1] mas/yr + 赤纬:−5.950±0.480[1] mas/yr + 视差 (π) −0.0081 ± 0.3120[1] mas + 距离 18,900[4] ly + (5,800[4] pc) + 详细资料 + 半径 2,150[5][a] R☉ + 亮度 437,000[5] (90,000[6] – 630,000[4][b]) L☉ + 温度 3,200[5] K + 其他命名 + 史蒂芬2-18、史蒂芬森2DFK1、RSGC2-18、2MASS J18390238-0605106、IRAS 18363-0607 ------------------------ == 太阳参数 == 自转周期: 24.47 地球日,自转角速度约为 0.6130 度/小时 = 360/(24.47*24) @@ -56,7 +66,7 @@ class Stephenson_2_18(FixedStar): "mass": mass, "init_position": init_position, "init_velocity": init_velocity, - "density": 5.60e-06, + "density": 5.666922409347618e-06, "color": color, "texture": texture, "size_scale": size_scale, @@ -71,12 +81,7 @@ class Stephenson_2_18(FixedStar): if __name__ == '__main__': - from bodies import Sun - import math fixed_star = Stephenson_2_18() - sun = Sun() print(fixed_star) - print("质量倍数", fixed_star.mass / sun.mass) - print("半径倍数", fixed_star.raduis / sun.raduis) - r = 2158 - print("密度換算", fixed_star.mass / 1e9 / (4 / 3 * math.pi * pow(r * sun.raduis, 3))) + fixed_star.compare_with_sun() + fixed_star.density_by_radius(num_sun_raduis=2150) diff --git a/bodies/fixed_stars/uy_scuti.py b/bodies/fixed_stars/uy_scuti.py index 30d1f97..903e068 100644 --- a/bodies/fixed_stars/uy_scuti.py +++ b/bodies/fixed_stars/uy_scuti.py @@ -13,17 +13,30 @@ from common.consts import MO class UYScuti(FixedStar): """ 盾牌座 UY (UY Scuti) - 质量:10个太阳质量 - 密度:不详 - 颜色值:#EFF6FF - 直径:为1708±192倍太阳直径 - -中文名盾牌座 UY外文名UY Scuti -别 名UY Sct、BD−12°5055、IRC−10422、RAFGL 2162、HV 3805 -分 类红超巨星发现时间1860年 -质 量7 至 10 M⊙(有争议) -直 径2.376✕109 km(±0.268)表面温度3365 K(±134)视星等+8.29 ~ +10.56绝对星等-6.2 等 [1] 赤 经18时27分36.53秒赤 纬-12°27′58.86″距地距离9500 光年(±1030, 有争议) [1] 光谱类别M2-M4Ia-IabU-B 色指数+3.29 [2] B-V 色指数+3.00 [3] 变星类型SRc(半规则) [4] 光 度约340000 L⊙(有争议)半 径1708±192 R☉(有争议)表面重力加速度0.008 m/s²表面重力-0.5 cgs [2] 赤道自转线速度约1.95 km/s径向速度18.33±0.82 km/s [5] 视 差0.6433±0.1059 mas(有争议) [5] 自 行赤经: 1.3 mas/yr; 赤纬: −1.6 mas/yr - + --------------- 维基百科 --------------- + 盾牌座UY + 盾牌座UY(影像中最亮恒星)周围有大量恒星。 + 由美国哥伦比亚大学拉瑟弗德天文台摄于2011年。 + 观测资料 + 历元 J2000.0 + 星座 盾牌座 + 星官 + 赤经 18h 27m 36.5334s[1] + 赤纬 -12° 27′ 58.866″[1] + 视星等(V) 9.0[1] + 特性 + 光谱分类 M4Ia [1] + B−V 色指数 2.6[1] + 变星类型 Semiregular[1] + 天体测定 + 自行 (μ) 赤经:1.3[1] mas/yr + 赤纬:-1.6[1] mas/yr + 详细资料 + 质量 7-10 M☉ + 半径 ~755 R☉ + 亮度 86300 ~ 87100 [2] L☉ + 其他命名 + V* UY Sct、BD-12 5055、IRC -10422、RAFGL 2162[1] ------------------------ == 太阳参数 == 自转周期: 24.47 地球日,自转角速度约为 0.6130 度/小时 = 360/(24.47*24) @@ -34,7 +47,7 @@ class UYScuti(FixedStar): def __init__(self, name="盾牌座UY", mass=10 * MO, init_position=[0, 0, 0], init_velocity=[0, 0, 0], - color=(255,116,0), + color=(255, 116, 0), texture="fixed_star.png", size_scale=1.0, distance_scale=1.0, rotation_speed=0.22, ignore_mass=False): params = { @@ -42,7 +55,7 @@ class UYScuti(FixedStar): "mass": mass, "init_position": init_position, "init_velocity": init_velocity, - "density": 2.832e-06, + "density": 3.271612056053086e-05, "color": color, "texture": texture, "size_scale": size_scale, @@ -54,15 +67,7 @@ class UYScuti(FixedStar): if __name__ == '__main__': - from bodies import Sun - import math - fixed_star = UYScuti() - sun = Sun() print(fixed_star) - print("质量倍数", fixed_star.mass / sun.mass) - print("半径倍数", fixed_star.raduis / sun.raduis) - r = 1708 - print("密度換算", fixed_star.mass / 1e9 / (4 / 3 * math.pi * pow(r * sun.raduis, 3))) - - # print( "%s" % (2.376e9 / (sun.raduis*2))) \ No newline at end of file + fixed_star.compare_with_sun() + fixed_star.density_by_radius(num_sun_raduis=755) diff --git a/bodies/fixed_stars/vy_canis_majoris.py b/bodies/fixed_stars/vy_canis_majoris.py index d986bd9..030bd89 100644 --- a/bodies/fixed_stars/vy_canis_majoris.py +++ b/bodies/fixed_stars/vy_canis_majoris.py @@ -12,32 +12,36 @@ from common.consts import MO class VYCanisMajoris(FixedStar): """ - TODO: 大犬座VY(VY Canis Majoris) - 质量:17±8 太阳质量 - 大小:1420-2100 太阳半径 - 颜色:234,90,65 - 密度:0.0004 g/cm³ + T大犬座VY(VY Canis Majoris) + --------------- 维基百科 --------------- + VY Canis Majoris + Sun and VY Canis Majoris.svg - 中文名大犬座VY外文名VY Canis Majoris - 别 名VY CMa - 分 类红特超巨星 - 发现者杰罗姆·拉朗德发现时间1801年3月7日 - 平均密度5.33✕10-3 至 8.38✕10-3 g/m³表 - 面温度3490 K(±90) - 视星等6.5 至 9.6 等 - 赤 经07时22分58.33秒 - 赤 纬-25°46′03.24″ - 距地距离3820 光年(+260 −230) - 光谱型M3-M4.5(M2.5-M5e Ia) [1-3] - 视星等(U)12.01 [4] 视星等(B)10.19 [4] 视星等(V)7.95 [4] - 视星等(J)1.98 [4] 视星等(H)0.44 [4] 视星等(K)8.1 [5] - U-B色指数+2.32 [6] B-V色指数+2.057 [7] V-R色指数+2.20 [6] - 变星类型SRc或Lc [8-9] 径向速度41 km/s [10] 自 行赤 - 经:9.84 mas/yr 赤纬:0.75 mas/yr [7] - 视 差0.83±0.08 mas [11] 距 离1,170(+80或-70)pc,3,820(+260或-230)ly [1] 绝对热星等-9.4 - 恒星质量17±8 M☉ [1] - 半 径2,069 R☉ [1] [12-13] - 热光度270,000±40,000,178,000(+40,900或-29,900)L☉ [12-14] 表面重力-0.6±0.4 cgs [1] 有效温度3,940±90 K [1] 金属丰度[Fe/H]-0.3 dex [15] 自转速度300 km/s [11] 年 龄8.2 Myr [11] + 太阳与大犬座VY大小比较 + 观测资料 + 历元 J2000 + 星座 大犬座 + 星官 + 赤经 07h 22m 58.33s[1] + 赤纬 −25° 46′ 03.17″[1] + 视星等(V) 6.5 to 9.6[2] + 7.9607[3] + 特性 + 光谱分类 M3[1]-M5e Ia[4] + B−V 色指数 2.24[1] + 变星类型 半规则变星[5] + 天体测定 + 径向速度 (Rv) 49 ± 10[1] km/s + 自行 (μ) 赤经:9.84[1] mas/yr + 赤纬:0.75[1] mas/yr + 视差 (π) 0.83 ± 0.1[6] mas + 距离 大约3900 ly + (大约1200 pc) + 详细资料 + 质量 ~30[7]-40[8] M☉ + 半径 ~1400左右[9] R☉ + 亮度 ~450,000[10][11] L☉ + 温度 ~3000[11] K ------------------------ == 太阳参数 == 自转周期: 24.47 地球日,自转角速度约为 0.6130 度/小时 = 360/(24.47*24) @@ -45,7 +49,7 @@ class VYCanisMajoris(FixedStar): 平均密度: 1.408×10³ kg/m³ """ - def __init__(self, name="大犬座VY", mass=25 * MO, + def __init__(self, name="大犬座VY", mass=30 * MO, init_position=[0, 0, 0], init_velocity=[0, 0, 0], color=(234,90,65), @@ -56,7 +60,7 @@ class VYCanisMajoris(FixedStar): "mass": mass, "init_position": init_position, "init_velocity": init_velocity, - "density": 1.23e-05, + "density": 1.5393586005830937e-05, "color": color, "texture": texture, "size_scale": size_scale, @@ -68,12 +72,7 @@ class VYCanisMajoris(FixedStar): if __name__ == '__main__': - from bodies import Sun - import math fixed_star = VYCanisMajoris() - sun = Sun() print(fixed_star) - print("质量倍数", fixed_star.mass / sun.mass) - print("半径倍数", fixed_star.raduis / sun.raduis) - r = 1420 - print("密度換算", fixed_star.mass / 1e9 / (4 / 3 * math.pi * pow(r * sun.raduis, 3))) \ No newline at end of file + fixed_star.compare_with_sun() + fixed_star.density_by_radius(num_sun_raduis=1400) \ No newline at end of file diff --git a/bodies/fixed_stars/wr21a.py b/bodies/fixed_stars/wr21a.py deleted file mode 100644 index fe7ba31..0000000 --- a/bodies/fixed_stars/wr21a.py +++ /dev/null @@ -1,55 +0,0 @@ -# -*- coding:utf-8 -*- -# title :天鹅座WR -# description :天鹅座WR -# author :Python超人 -# date :2023-02-11 -# link :https://gitcode.net/pythoncr/ -# python_version :3.8 -# ============================================================================== -from bodies import FixedStar -from common.consts import MO - - -class WR21a(FixedStar): - """ - TODO: 天鹅座WR 21a - 质量:83.6 太阳质量 - 大小:320 太阳半径 - 颜色:0xFF, 0x5B, 0x5B - 密度:0.001 g/cm³ - ------------------------ - == 太阳参数 == - 自转周期: 24.47 地球日,自转角速度约为 0.6130 度/小时 = 360/(24.47*24) - 天体质量: 1.9891×10³⁰ kg - 平均密度: 1.408×10³ kg/m³ - """ - - def __init__(self, name="天鹅座", mass=83.6 * MO, - init_position=[0, 0, 0], - init_velocity=[0, 0, 0], - color=(0xFF, 0x5B, 0x5B), - texture="fixed_star.png", size_scale=1.0, distance_scale=1.0, - rotation_speed=0.1, ignore_mass=False): - params = { - "name": name, - "mass": mass, - "init_position": init_position, - "init_velocity": init_velocity, - "density": 1.408e3, - "color": color, - "texture": texture, - "size_scale": size_scale, - "distance_scale": distance_scale, - "rotation_speed": rotation_speed, - "ignore_mass": ignore_mass - } - super().__init__(**params) - - -if __name__ == '__main__': - from bodies import Sun - fixed_star = WR21a() - sun = Sun() - print(fixed_star) - print("质量倍数", fixed_star.mass / sun.mass) - print("半径倍数", fixed_star.raduis / sun.raduis) \ No newline at end of file diff --git a/bodies/fixed_stars/y_canum_venaticorum.py b/bodies/fixed_stars/y_canum_venaticorum.py index d053c2a..6172df5 100644 --- a/bodies/fixed_stars/y_canum_venaticorum.py +++ b/bodies/fixed_stars/y_canum_venaticorum.py @@ -12,13 +12,36 @@ from common.consts import MO class YCanumVenaticorum(FixedStar): """ - -中文名猎犬座Y外文名Y Canum Venaticorum -别 名La Superba -分 类红巨星,碳星,变星 -质 量3M⊙ -直 径 299280000 km -表面温度2800K反照率不是行星视星等4.99赤 经12时45分07.83秒赤 纬+45°26′24.92″距地距离1000Ly光 度5800L⊙光 谱N3U-B色指数6.62B-V色指数2.54变星类型SRb编 号HR4846,HD110914,HIP62223 + 猎犬座Y (Y Canum Venaticorum) + 分 类: 红巨星,碳星,变星 + --------------- 维基百科 --------------- + La Superba + Y Canum Venaticorum.jpg + 天文程式 Celestia 中的猎犬座Y(右)与太阳(左)的体积比较。 + 观测资料 + 历元 J2000.0 + 星座 猎犬座 + 星官 + 赤经 12h 45m 07.83s + 赤纬 +45° 26' 24.92" + 视星等(V) +4.8 to +6.3 + 天体测定 + 自行 (μ) 赤经:-2.20 mas/yr + 赤纬:13.05 mas/yr + 视差 (π) 4.590 mas + 距离 711 ± 113 ly + (218 ± 35 pc) + 特性 + 光谱分类 C54J, C-N5, C-J4.5 + 变星类型 半规则变星 + 详细资料 + 质量 3 M☉ + 半径 215 R☉ + 亮度 4,400 + (bolometric) L☉ + 温度 2,800 K + 其他命名 + Y Canum Venaticorum, HR 4846, HD 110914, BD+46°1817, FK5 1327, HIP 62223, SAO 44317, GC 17342 ------------------------ == 太阳参数 == 自转周期: 24.47 地球日,自转角速度约为 0.6130 度/小时 = 360/(24.47*24) @@ -29,7 +52,7 @@ class YCanumVenaticorum(FixedStar): def __init__(self, name="猎犬座Y", mass=3 * MO, init_position=[0, 0, 0], init_velocity=[0, 0, 0], - color=(255,55,18), + color=(255, 55, 18), texture="fixed_star.png", size_scale=1.0, distance_scale=1.0, rotation_speed=0.3, ignore_mass=False): params = { @@ -49,14 +72,7 @@ class YCanumVenaticorum(FixedStar): if __name__ == '__main__': - from bodies import Sun - import math - fixed_star = YCanumVenaticorum() - sun = Sun() print(fixed_star) - print("质量倍数", fixed_star.mass / sun.mass) - print("半径倍数", fixed_star.raduis / sun.raduis) - r = 215 - print("密度換算", fixed_star.mass / 1e9 / (4 / 3 * math.pi * pow(r * sun.raduis, 3))) - print((299280000 / sun.diameter)) \ No newline at end of file + fixed_star.compare_with_sun() + fixed_star.density_by_radius(num_sun_raduis=215) -- GitLab