Canoe
Comprehensive Atmosphere N' Ocean Engine
Molecule Class Reference

#include <molecules.hpp>

Public Member Functions

 Molecule (std::string name="")
 
virtual ~Molecule ()
 
void LoadThermodynamicFile (std::string chemfile)
 
virtual double cp (double T) const
 
virtual double enthalpy (double T) const
 
virtual double entropy (double T) const
 
virtual double latent (double T) const
 
double sat_vapor_p (double T) const
 
double isat_vapor_p (double P) const
 
std::string name () const
 
double mu () const
 
double cp () const
 
double tr () const
 
double pr () const
 
double tc () const
 
double pc () const
 
double latent () const
 

Protected Attributes

std::string m_name
 
double m_mu
 
double m_cp
 
double m_latent
 
double m_entropy
 
double m_enthalpy
 
double m_gibbs
 
double m_tr
 
double m_pr
 
double m_tc
 
double m_pc
 
double m_cliq
 
double m_enliq
 
double m_csld
 
double m_ensld
 
double m_beta
 
double m_gamma
 
int m_nshomate
 
std::array< double, MAXSHOMATE *NSHOMATEm_shomate
 
std::array< double, MAXSHOMATE+1 > m_shomate_sp
 

Friends

std::ostream & operator<< (std::ostream &os, Molecule const &mol)
 

Detailed Description

Definition at line 48 of file molecules.hpp.

Constructor & Destructor Documentation

◆ Molecule()

Molecule::Molecule ( std::string  name = "")
inline

Definition at line 64 of file molecules.hpp.

◆ ~Molecule()

virtual Molecule::~Molecule ( )
inlinevirtual

Definition at line 87 of file molecules.hpp.

Member Function Documentation

◆ LoadThermodynamicFile()

void Molecule::LoadThermodynamicFile ( std::string  chemfile)

Definition at line 36 of file molecules.cpp.

◆ cp() [1/2]

double Molecule::cp ( double  T) const
virtual

Definition at line 57 of file molecules.cpp.

◆ enthalpy()

double Molecule::enthalpy ( double  T) const
virtual

Definition at line 72 of file molecules.cpp.

◆ entropy()

double Molecule::entropy ( double  T) const
virtual

Definition at line 88 of file molecules.cpp.

◆ latent() [1/2]

double Molecule::latent ( double  T) const
virtual

Definition at line 104 of file molecules.cpp.

◆ sat_vapor_p()

double Molecule::sat_vapor_p ( double  T) const
inline

Definition at line 99 of file molecules.hpp.

◆ isat_vapor_p()

double Molecule::isat_vapor_p ( double  P) const

Definition at line 111 of file molecules.cpp.

◆ name()

std::string Molecule::name ( ) const
inline

Definition at line 105 of file molecules.hpp.

◆ mu()

double Molecule::mu ( ) const
inline

Definition at line 107 of file molecules.hpp.

◆ cp() [2/2]

double Molecule::cp ( ) const
inline

Definition at line 109 of file molecules.hpp.

◆ tr()

double Molecule::tr ( ) const
inline

Definition at line 111 of file molecules.hpp.

◆ pr()

double Molecule::pr ( ) const
inline

Definition at line 113 of file molecules.hpp.

◆ tc()

double Molecule::tc ( ) const
inline

Definition at line 115 of file molecules.hpp.

◆ pc()

double Molecule::pc ( ) const
inline

Definition at line 117 of file molecules.hpp.

◆ latent() [2/2]

double Molecule::latent ( ) const
inline

Definition at line 119 of file molecules.hpp.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
Molecule const &  mol 
)
friend

Definition at line 22 of file molecules.cpp.

Member Data Documentation

◆ m_name

std::string Molecule::m_name
protected

Definition at line 52 of file molecules.hpp.

◆ m_mu

double Molecule::m_mu
protected

Definition at line 54 of file molecules.hpp.

◆ m_cp

double Molecule::m_cp
protected

Definition at line 54 of file molecules.hpp.

◆ m_latent

double Molecule::m_latent
protected

Definition at line 54 of file molecules.hpp.

◆ m_entropy

double Molecule::m_entropy
protected

Definition at line 54 of file molecules.hpp.

◆ m_enthalpy

double Molecule::m_enthalpy
protected

Definition at line 54 of file molecules.hpp.

◆ m_gibbs

double Molecule::m_gibbs
protected

Definition at line 54 of file molecules.hpp.

◆ m_tr

double Molecule::m_tr
protected

Definition at line 54 of file molecules.hpp.

◆ m_pr

double Molecule::m_pr
protected

Definition at line 54 of file molecules.hpp.

◆ m_tc

double Molecule::m_tc
protected

Definition at line 54 of file molecules.hpp.

◆ m_pc

double Molecule::m_pc
protected

Definition at line 55 of file molecules.hpp.

◆ m_cliq

double Molecule::m_cliq
protected

Definition at line 55 of file molecules.hpp.

◆ m_enliq

double Molecule::m_enliq
protected

Definition at line 55 of file molecules.hpp.

◆ m_csld

double Molecule::m_csld
protected

Definition at line 55 of file molecules.hpp.

◆ m_ensld

double Molecule::m_ensld
protected

Definition at line 55 of file molecules.hpp.

◆ m_beta

double Molecule::m_beta
protected

Definition at line 55 of file molecules.hpp.

◆ m_gamma

double Molecule::m_gamma
protected

Definition at line 55 of file molecules.hpp.

◆ m_nshomate

int Molecule::m_nshomate
protected

Definition at line 57 of file molecules.hpp.

◆ m_shomate

std::array<double, MAXSHOMATE * NSHOMATE> Molecule::m_shomate
protected

Definition at line 59 of file molecules.hpp.

◆ m_shomate_sp

std::array<double, MAXSHOMATE + 1> Molecule::m_shomate_sp
protected

Definition at line 61 of file molecules.hpp.


The documentation for this class was generated from the following files: