class CalcSat::Heat

Public Class Methods

new() click to toggle source
# File lib/calc_sat.rb, line 158
def initialize
  @sigma = 5.669 * 10**-8 # [W/(m**2/K**4)] ステファン・ボルツマン定数
end

Public Instance Methods

thermodynamic_equilibrium_part() click to toggle source
# File lib/calc_sat.rb, line 161
def thermodynamic_equilibrium_part()
  # パーツ一つで近似する場合の熱平衡方程式
  # m: 衛星の質量
  # c: 衛星材料全体の平均的な比熱
  # t_capital: 衛星の温度
  # t: 時間
  # q_t: 衛星の外部から入ってくるトータルの熱量と衛星地震の発熱の総和
  # epsilon: 太陽電池パネルの平均的な放射率

  left = m * c * (d*t_capital/ d*t)
  right = q_t - epsilon * @sigma * a_capital * f_s * t_capital**4
  cond = left == right
  return cond
end