Canoe
Comprehensive Atmosphere N' Ocean Engine
molecules.hpp File Reference
#include <array>
#include <cmath>
#include <iostream>
#include <memory>
#include <string>
#include <vector>

Go to the source code of this file.

Classes

class  Molecule
 
class  Hydrogen
 
class  Helium
 
class  Methane
 

Macros

#define NSHOMATE   7
 Molecule stored the necessary information for calculating the thermodynamic properties of an air parcel. More...
 
#define MAXSHOMATE   3
 

Macro Definition Documentation

◆ NSHOMATE

#define NSHOMATE   7

Molecule stored the necessary information for calculating the thermodynamic properties of an air parcel.

This class has the following private members storing the properties:

  • name, the name of this molecule, solids and liquids should add suffix "(s)" and "(l)" to the corresponding molecule.
  • mu, molecular weight [g/mol]
  • cp, solid or liquid heat capacity [J/(mol K)]
  • latent, latent heat at triple point [kJ/mol]
  • entropy, standard entropy [J/(mol K)]
  • enthalpy, standard enthalpy [kJ/mol]
  • gibbs, standard gibbs free energy [kJ/mol]
  • tr, triple point temperature [K]
  • pr, triple point pressure [pa]
  • tc, critical point temperature [K]
  • pc, critical point pressure [bar]
  • cliq, liquid heat capacity [J/(mol K)]
  • enliq, vaporization heat of liquids at triple point [kJ/mol]
  • csld, solid heat capacity [J/(mol K)]
  • ensld, sublimation heat of solids at triple point [kJ/mol]
  • beta, slope of idealized saturation vapor pressure curve, beta = (L(T) - (cp - ci) * T) / (R * Tr)
  • gamma, correction factor of saturation vapor pressure curve, gamma = (ci - cp) / R

The following members store coefficients in thermodynamic expressions:

  • shomate, 7 shomate expression coefficients
  • shomate_sp, temperature separations in shomate expressions

Definition at line 43 of file molecules.hpp.

◆ MAXSHOMATE

#define MAXSHOMATE   3

Definition at line 46 of file molecules.hpp.