petitRADTRANS.chemistry.pre_calculated_chemistry
================================================

.. py:module:: petitRADTRANS.chemistry.pre_calculated_chemistry

.. autoapi-nested-parse::

   Manage equilibrium chemistry pre-calculated table.



Attributes
----------

.. autoapisummary::

   petitRADTRANS.chemistry.pre_calculated_chemistry.pre_calculated_equilibrium_chemistry_table


Classes
-------

.. autoapisummary::

   petitRADTRANS.chemistry.pre_calculated_chemistry.PreCalculatedEquilibriumChemistryTable


Module Contents
---------------

.. py:class:: PreCalculatedEquilibriumChemistryTable

   Used to store petitRADTRANS's pre-calculated mass fractions at chemical equilibrium.

   The interpolate_mass_fractions function can be used to get mass fractions at given thermochemical conditions.


   .. py:attribute:: _loaded
      :type:  bool
      :value: False



   .. py:attribute:: log10_metallicities
      :type:  numpy.typing.NDArray[numpy.floating] | None
      :value: None



   .. py:attribute:: co_ratios
      :type:  numpy.typing.NDArray[numpy.floating] | None
      :value: None



   .. py:attribute:: temperatures
      :type:  numpy.typing.NDArray[numpy.floating] | None
      :value: None



   .. py:attribute:: pressures
      :type:  numpy.typing.NDArray[numpy.floating] | None
      :value: None



   .. py:attribute:: species
      :type:  tuple[str, Ellipsis] | None
      :value: None



   .. py:attribute:: mass_fractions
      :type:  numpy.typing.NDArray[numpy.floating] | None
      :value: None



   .. py:attribute:: nabla_adiabatic
      :type:  numpy.typing.NDArray[numpy.floating] | None
      :value: None



   .. py:attribute:: mean_molar_masses
      :type:  numpy.typing.NDArray[numpy.floating] | None
      :value: None



   .. py:method:: get_default_file(path_input_data: str = None) -> str
      :staticmethod:



   .. py:method:: interpolate_mass_fractions(co_ratios: numpy.typing.NDArray[numpy.floating], log10_metallicities: numpy.typing.NDArray[numpy.floating], temperatures: numpy.typing.NDArray[numpy.floating], pressures: numpy.typing.NDArray[numpy.floating], carbon_pressure_quench: float = None, full: bool = False)

      Interpolate mass fractions from a pre-calculated table to the desired parameters.

      Args:
          co_ratios:
              Desired carbon to oxygen ratios, obtained by increasing the amount of oxygen.
          log10_metallicities:
              Base-10 logarithm of the desired metallicities.
          temperatures:
              (K) desired temperatures
          pressures:
              (bar) desired pressures
          carbon_pressure_quench:
              (bar) pressure at which to put a simplistic carbon-bearing species quenching
          full:
              if True, output the pre-calculated mean molar mass and logarithmic derivative of temperature with
              respect to pressure in the adiabatic case (nabla_ad) in addition to the pre-calculated mass fractions



   .. py:method:: load(path: str = None, path_input_data: str = None, file: str = '')


.. py:data:: pre_calculated_equilibrium_chemistry_table

