Finally, if the gas is ideal, the equation of state is P = k B ρ ρ T / μ μ , where k B is the Boltzmann constant and μ μ the mean molecular weight. The temperature profile is then given by T = K μ μ k B ρ ρ c 1 / n θ θ n