Class Atmosphere

java.lang.Object
org.episteme.natural.earth.geophysics.Atmosphere
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
EarthAtmosphere, MarsAtmosphere

public class Atmosphere extends Object implements Serializable
Atmospheric physics calculations and data model.

Provides atmospheric property calculations (pressure, temperature, density) and serves as a data model for planetary atmospheres.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Field Details

    • P0

      public static final Real P0
      Standard sea level pressure (Pa)
    • T0

      public static final Real T0
      Standard sea level temperature (K)
    • LAPSE_RATE

      public static final Real LAPSE_RATE
      Temperature lapse rate (K/m) in troposphere
    • R_AIR

      public static final Real R_AIR
      Gas constant for dry air (J/(kg·K))
  • Constructor Details

    • Atmosphere

      public Atmosphere()
    • Atmosphere

      public Atmosphere(Quantity<Length> height, String composition)
  • Method Details

    • getHeight

      public Quantity<Length> getHeight()
    • setHeight

      public void setHeight(Quantity<Length> height)
    • getComposition

      public String getComposition()
    • setComposition

      public void setComposition(String composition)
    • getPressureValue

      public Quantity<Pressure> getPressureValue()
    • setPressureValue

      public void setPressureValue(Quantity<Pressure> pressureValue)
    • getAverageTemperature

      public Quantity<Temperature> getAverageTemperature()
    • setAverageTemperature

      public void setAverageTemperature(Quantity<Temperature> averageTemperature)
    • pressure

      public static Real pressure(Real altitude)
    • temperature

      public static Real temperature(Real altitude)
      Temperature vs altitude (troposphere).
    • density

      public static Real density(Real pressure, Real temperature)
      Air density from temperature and pressure. ρ = P / (R * T)
    • densityAtAltitude

      public static Real densityAtAltitude(Real altitude)
      Density at altitude.
    • scaleHeight

      public static Real scaleHeight(Real temperature)
      Scale height: H = RT/g
    • speedOfSound

      public static Real speedOfSound(Real temperature)
      Speed of sound in air. c = sqrt(γ * R * T) where γ = 1.4 for diatomic gas
    • relativeHumidity

      public static Real relativeHumidity(Real tempCelsius, Real dewPointCelsius)
      Relative humidity from dew point and temperature. RH ≈ 100 * exp(17.625 * Td / (243.04 + Td)) / exp(17.625 * T / (243.04 + T))
    • saturationVaporPressure

      public static Real saturationVaporPressure(Real tempCelsius)
      Saturation vapor pressure (Magnus formula). e_s = 6.112 * exp(17.67 * T / (T + 243.5)) in hPa
    • heatIndex

      public static Real heatIndex(Real tempCelsius, Real humidity)
      Heat index (feels-like temperature).
    • windChill

      public static Real windChill(Real tempCelsius, Real windSpeedKmh)