Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 26 lines (21 sloc) 0.569 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
"""
Find lines of constant cooling time
"""
import numpy
from heatcool import heat, cool

boltzman = 1.3806503e-16
year = 3.15576e7
gamma = 5./3.

def cooling_time_years(density, temperature):
    """
P / (g -1) L
"""
    return boltzman*temperature/((gamma-1.0)*density*cool(density, temperature, True)*year)


def thermal_time_years(density, temperature, Av, D):
    """
P / (g -1) (L - H)
"""
    return boltzman*temperature/(
(gamma-1.0)*(
density*cool(density, temperature, thousandK=True) - heat(density, Av, D, newvalues=True)
)*year)
Something went wrong with that request. Please try again.