Cantera  3.1.0b1
Loading...
Searching...
No Matches
nitrogen Class Reference

Pure species representation of nitrogen. More...

#include <Nitrogen.h>

Inheritance diagram for nitrogen:
[legend]

Detailed Description

Pure species representation of nitrogen.

Values and functions are from Reynolds [38].

Definition at line 16 of file Nitrogen.h.

Public Member Functions

double MolWt () override
 Molecular weight [kg/kmol].
 
double Tcrit () override
 Critical temperature [K].
 
double Pcrit () override
 Critical pressure [Pa].
 
double Vcrit () override
 Critical specific volume [m^3/kg].
 
double Tmin () override
 Minimum temperature for which the equation of state is valid.
 
double Tmax () override
 Maximum temperature for which the equation of state is valid.
 
double Pp () override
 
double up () override
 Internal energy of a single-phase state.
 
double sp () override
 Entropy of a single-phase state.
 
double Psat () override
 Saturation pressure. Equation S4 from Reynolds TPSI.
 
- Public Member Functions inherited from Substance
void setStdState (double h0=0.0, double s0=0.0, double t0=298.15, double p0=1.01325e5)
 
virtual double Pp ()=0
 
double hp ()
 Enthalpy of a single-phase state.
 
double gp ()
 Gibbs function of a single-phase state.
 
double prop (propertyFlag::type ijob)
 
void set_TPp (double t0, double p0)
 set T and P
 
void Set (PropertyPair::type XY, double x0, double y0)
 Function to set or change the state for a property pair XY where x0 is the value of first property and y0 is the value of the second property.
 
const char * name ()
 Name of the substance.
 
const char * formula ()
 Chemical formula for the substance.
 
double P ()
 Pressure [Pa].
 
double Temp ()
 Temperature [K].
 
double v ()
 Specific volume [m^3/kg].
 
double u ()
 Internal energy [J/kg].
 
double h ()
 Enthalpy [J/kg].
 
double s ()
 Entropy [J/kg/K].
 
double f ()
 Helmholtz function [J/kg].
 
double g ()
 Gibbs function [J/kg].
 
virtual double cv ()
 Specific heat at constant volume [J/kg/K].
 
virtual double cp ()
 Specific heat at constant pressure [J/kg/K].
 
virtual double thermalExpansionCoeff ()
 
virtual double isothermalCompressibility ()
 
double Ps ()
 
virtual double dPsdT ()
 The derivative of the saturation pressure with respect to temperature.
 
double Tsat (double p)
 Saturation temperature at pressure p.
 
double x ()
 Vapor mass fraction.
 
int TwoPhase (bool strict=false)
 Returns 1 if the current state is a liquid/vapor mixture, 0 otherwise.
 

Protected Member Functions

double ldens () override
 Liquid density. Equation D2 from Reynolds TPSI.
 
- Protected Member Functions inherited from Substance
virtual double ldens ()=0
 
virtual double Psat ()=0
 Saturation pressure, Pa.
 
virtual double up ()=0
 Internal energy of a single-phase state.
 
virtual double sp ()=0
 Entropy of a single-phase state.
 
virtual int ideal ()
 
double vp ()
 
int Lever (int itp, double sat, double val, propertyFlag::type ifunc)
 Uses the lever rule to set state in the dome.
 
void update_sat ()
 Update saturated liquid and vapor densities and saturation pressure.
 

Private Member Functions

double C (int i, double rt, double rt2)
 Equation P4 from Reynolds TPSI.
 
double Cprime (int i, double rt, double rt2, double rt3)
 
double I (int i, double egrho)
 
double H (int i, double egrho)
 
double W (int i, double egrho)
 

Additional Inherited Members

- Protected Attributes inherited from Substance
double T = Undef
 
double Rho = Undef
 
double Tslast = Undef
 
double Rhf = Undef
 
double Rhv = Undef
 
double Pst = Undef
 
double m_energy_offset = 0.0
 
double m_entropy_offset = 0.0
 
std::string m_name
 
std::string m_formula
 

Constructor & Destructor Documentation

◆ nitrogen()

nitrogen ( )
inline

Definition at line 19 of file Nitrogen.h.

Member Function Documentation

◆ MolWt()

double MolWt ( )
overridevirtual

Molecular weight [kg/kmol].

Implements Substance.

Definition at line 251 of file Nitrogen.cpp.

◆ Tcrit()

double Tcrit ( )
overridevirtual

Critical temperature [K].

Implements Substance.

Definition at line 231 of file Nitrogen.cpp.

◆ Pcrit()

double Pcrit ( )
overridevirtual

Critical pressure [Pa].

Implements Substance.

Definition at line 235 of file Nitrogen.cpp.

◆ Vcrit()

double Vcrit ( )
overridevirtual

Critical specific volume [m^3/kg].

Implements Substance.

Definition at line 239 of file Nitrogen.cpp.

◆ Tmin()

double Tmin ( )
overridevirtual

Minimum temperature for which the equation of state is valid.

Implements Substance.

Definition at line 243 of file Nitrogen.cpp.

◆ Tmax()

double Tmax ( )
overridevirtual

Maximum temperature for which the equation of state is valid.

Implements Substance.

Definition at line 247 of file Nitrogen.cpp.

◆ Pp()

double Pp ( )
overridevirtual

Implements Substance.

Definition at line 186 of file Nitrogen.cpp.

◆ up()

double up ( )
overridevirtual

Internal energy of a single-phase state.

Implements Substance.

Definition at line 148 of file Nitrogen.cpp.

◆ sp()

double sp ( )
overridevirtual

Entropy of a single-phase state.

Implements Substance.

Definition at line 167 of file Nitrogen.cpp.

◆ Psat()

double Psat ( )
overridevirtual

Saturation pressure. Equation S4 from Reynolds TPSI.

Implements Substance.

Definition at line 199 of file Nitrogen.cpp.

◆ ldens()

double ldens ( )
overrideprotectedvirtual

Liquid density. Equation D2 from Reynolds TPSI.

Implements Substance.

Definition at line 218 of file Nitrogen.cpp.

◆ C()

double C ( int  i,
double  rt,
double  rt2 
)
private

Equation P4 from Reynolds TPSI.

Definition at line 59 of file Nitrogen.cpp.

◆ Cprime()

double Cprime ( int  i,
double  rt,
double  rt2,
double  rt3 
)
private

Definition at line 96 of file Nitrogen.cpp.

◆ I()

double I ( int  i,
double  egrho 
)
private

Definition at line 143 of file Nitrogen.cpp.

◆ H()

double H ( int  i,
double  egrho 
)
private

Definition at line 138 of file Nitrogen.cpp.

◆ W()

double W ( int  i,
double  egrho 
)
private

Definition at line 132 of file Nitrogen.cpp.


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