Skip to content
Snippets Groups Projects
  1. Aug 14, 2022
    • bjorn-stevens's avatar
      added a function to calculate (moist) static energy · 46445d34
      bjorn-stevens authored
      in the atmospheric sciences there are many different moist static
      energies.  They differ due to the choice of reference enthalpies for
      water phases, which are connected by the phase change enthalpies, and
      thus have a single degree of freedom.  This we give to the reference
      enthalpy (enthalpy at T0) for vapor.  The choice of hv0 matters because
      not all reference quantities can be zero for all phases of water, and so
      the choice influences how the reference quantity weights different water
      phases.
      
      the function has been defined in a rather expressive way to bring out
      this property and make it possible to compute one or the other of the
      moist static energies by choosing a different reference state for the
      vapor enthalpy.
      46445d34
  2. Aug 13, 2022
    • bjorn-stevens's avatar
      generic functions to invert state functions · 5bbcc5e9
      bjorn-stevens authored
      By passing the function that is to be inverted it is possible to write a
      generic inversion function, which we call invert_for_temperature and
      invert_for_pressure respectively.  These work for all off the
      thermodynamic funcions, i.e., theta_e, theta_l, etc.
      
      I experimented with an invert_for_humidity, but this often did nto
      converge so I did not introduce this functionality.
      5bbcc5e9
  3. Aug 12, 2022
  4. Aug 11, 2022
  5. Aug 10, 2022
    • bjorn-stevens's avatar
      added plot directory to repository · 05a6abde
      bjorn-stevens authored
      Some of the routines assume the existence of a directory to
      collect plots.  This adds the directory to the repository.
      05a6abde
    • bjorn-stevens's avatar
      0.2 release (cleanup and additional examples) · 9a6e141d
      bjorn-stevens authored
      This is a new release.  In addition to cleaning up existing code,
      it adds error checking (which identified a few bugs), and a number
      of examples taken from my archived (unreleased) library.  This
      includes an analysis of different saturation vapor pressure
      formulations, the effect of the saturation vapor pressure formulation
      on the potential temperatures, and differences in calculations of ths
      lifting condensation level.
      9a6e141d
    • bjorn-stevens's avatar
      clean up · 83bffa9c
      bjorn-stevens authored
      renamed funcitons with shorter names as longer descriptions are part of
      documentation. Began checking functions and documenting expected
      answers, which also led to some bug corrections.
      83bffa9c
    • bjorn-stevens's avatar
      clean release with relative module references · 9514823d
      bjorn-stevens authored
      resolves m219063/aes_thermo#1
      Updated the release so that the module references are now relative
      references to avoid conflicts.  This was the last outstanding open
      point of the above referenced issue
      9514823d
    • bjorn-stevens's avatar
      [rename] renamed repository · 0d7f6c40
      bjorn-stevens authored
      renamed respository, changing from aes_thermo to moist_thermodynamics.
      This resulted in changes in directory and file names
      0d7f6c40
    • bjorn-stevens's avatar
    • bjorn-stevens's avatar
      [feature] modified calls to sat vapor pressure · 8d3d268b
      bjorn-stevens authored
      Resolves issue m219063/aes_thermo#2
      
      Initially saturation vapor pressure calls could select which formulation
      to use based on a string argument.  Now all calls are made explicitly
      visible and a default form is passed to functions that depend on it.
      Calls to these functions can however substitute a different form for the
      default form.
      8d3d268b
    • bjorn-stevens's avatar
      [feature] modified calls to sat vapor pressure · 283f3d54
      bjorn-stevens authored
      Initially saturation vapor pressure calls could select which formulation
      to use based on a string argument.  Now all calls are made explicitly
      visible and a default form is passed to functions that depend on it.
      Calls to these functions can however substitute a different form for the
      default form.
      283f3d54
    • bjorn-stevens's avatar
      [bugfix] modified import of constants in functions · 1e1f0412
      bjorn-stevens authored
      Originally I had imported the module constants using an absolute
      path, now this is modified for a relative import
      1e1f0412
    • bjorn-stevens's avatar
      [feature] added an example script · f0115327
      bjorn-stevens authored
      Added a ipython notebook script with a first example of using the
      functions to plot a moist adiabat.
      f0115327
    • bjorn-stevens's avatar
      cleaned up functions and constants · 815bc7c1
      bjorn-stevens authored
      1. The constants were redefined with sybmols and expressive names to
      make their use more intuitive and expressive
      
      2. Functions names were made more expressive and small modifications
      were made to consistently used previously defined functionality
      815bc7c1
  6. Aug 07, 2022
Loading