exo_k.util.molar_heat_capacity

@author: jeremy leconte

Module Contents

class exo_k.util.molar_heat_capacity.Molar_heat_capacity[source]

Bases: exo_k.util.singleton.Singleton

A class to compute the molar heat capacity at constant pressure (in J/mol/K) of regular molecules. This class can also store the molar mass of custom gases with arbitrary names (for example: My_gas, earth_background).

init(*args, **kwds)[source]

Initializes empty dictionary of custom heat capacities masses.

add_species(species_dict)[source]

Add one or several species to the database.

Parameters:

species_dict (dict) – Keys are gases names (they do not have to be real molecules). Values are molar cp.

fetch(molecule_name)[source]

yields the molar cp of a molecule

Parameters:

molecule_name – str Name of the molecule.

Returns:

Molar cp in J/mol/K

Return type:

float

exo_k.util.molar_heat_capacity._specific_cp_at_300k