pytmosph3r.atmosphere.simple2d
Module Contents
- class Simple2DTemperature(T_day, T_night, T_deep=None, beta=10, p_iso=1e+99)[source]
Class to build a 2D temperature, set to
T_day
on the day side of the planet,T_night
on the night side of the planet, and a linear transition betweenT_day
andT_night
within thebeta
angle between day and night, representing the terminator. An annulus is defined at pressures abovep_iso
, where the temperature is set toT_deep
.Initialize the 2D temperature using simple parameters:
- Parameters:
T_day (float) – Temperature on the day side of the planet.
T_night (float) – Temperature on the night side.
T_deep (float) – Temperature set for layers with a pressure above
p_iso
(overriding the other values).beta (float) – Angle between day and night defining the region around the terminator with a linear transition between
T_day
andT_night
.p_iso (float) – Pressure above which the temperature is overridden with
T_deep
.
- property beta_rad
- simple_2D(grid, day_value, night_value)[source]
Returns an array with the shape of
grid
, of which the values on the day side are equal today_value
, and the values on the night side are equal tonight_value
. Seeday_longitudes
for a definition of the day side andnight_longitudes
for a definition of the night side.- Parameters:
grid (
Grid3D
) – 3D grid giving the dimensions for the array.day_value (float) – Value for the day side.
night_value (float) – Value for the night side.