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 between T_day and T_night within the beta angle between day and night, representing the terminator. An annulus is defined at pressures above p_iso, where the temperature is set to T_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 and T_night.

  • p_iso (float) – Pressure above which the temperature is overridden with T_deep.

property beta_rad
build(grid, P, model=None)[source]

This function must return the temperature of the atmosphere, and therefore have a shape compatible with grid.

Parameters:
  • grid (Grid3D) – Grid (from Pytmosph3R).

  • P (float, array) – Pressure points corresponding to the grid.

  • model (Model, optional) – Entire Pytmosph3R model in case you need something else (chemistry, …).

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 to day_value, and the values on the night side are equal to night_value. See day_longitudes for a definition of the day side and night_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.

simple_2D_vmr(grid, input_vmr)[source]