SU2
Public Member Functions | Protected Attributes | List of all members
CPengRobinson Class Reference

Child class for defining the Peng-Robinson model. More...

#include <fluid_model.hpp>

Inheritance diagram for CPengRobinson:
CIdealGas CFluidModel

Public Member Functions

 CPengRobinson (void)
 Constructor of the class. More...
 
 CPengRobinson (su2double gamma, su2double R, su2double Pstar, su2double Tstar, su2double w)
 Constructor of the class.
 
virtual ~CPengRobinson (void)
 Destructor of the class.
 
void SetTDState_rhoe (su2double rho, su2double e)
 Set the Dimensionless State using Density and Internal Energy. More...
 
void SetTDState_PT (su2double P, su2double T)
 Set the Dimensionless State using Pressure and Temperature. More...
 
void SetTDState_Prho (su2double P, su2double rho)
 Set the Dimensionless State using Pressure and Density. More...
 
void SetEnergy_Prho (su2double P, su2double rho)
 Set the Dimensionless Energy using Pressure and Density. More...
 
void SetTDState_hs (su2double h, su2double s)
 virtual member that would be different for each gas model implemented More...
 
void SetTDState_rhoT (su2double rho, su2double T)
 virtual member that would be different for each gas model implemented More...
 
void SetTDState_Ps (su2double P, su2double s)
 Set the Dimensionless State using Pressure and Entropy. More...
 
- Public Member Functions inherited from CIdealGas
 CIdealGas (void)
 Constructor of the class. More...
 
 CIdealGas (su2double gamma, su2double R)
 Constructor of the class.
 
virtual ~CIdealGas (void)
 Destructor of the class.
 
- Public Member Functions inherited from CFluidModel
 CFluidModel (void)
 Constructor of the class. More...
 
virtual ~CFluidModel (void)
 Destructor of the class.
 
su2double GetPressure ()
 Get fluid pressure.
 
su2double GetTemperature ()
 Get fluid temperature.
 
su2double GetEntropy ()
 Get fluid entropy.
 
su2double GetStaticEnergy ()
 Get fluid internal energy.
 
su2double GetDensity ()
 Get fluid density.
 
su2double GetSoundSpeed ()
 Get fluid speed of sound.
 
su2double GetSoundSpeed2 ()
 Get fluid speed of sound squared.
 
su2double GetCp ()
 Get fluid specific heat at constant pressure.
 
su2double GetLaminarViscosity ()
 Get fluid dynamic viscosity.
 
su2double GetThermalConductivity ()
 Get fluid thermal conductivity.
 
su2double GetdPdrho_e ()
 Get fluid pressure partial derivative.
 
su2double GetdPde_rho ()
 Get fluid pressure partial derivative.
 
su2double GetdTdrho_e ()
 Get fluid temperature partial derivative.
 
su2double GetdTde_rho ()
 Get fluid temperature partial derivative.
 
su2double Getdmudrho_T ()
 Get fluid dynamic viscosity partial derivative.
 
su2double GetdmudT_rho ()
 Get fluid dynamic viscosity partial derivative.
 
su2double Getdktdrho_T ()
 Get fluid thermal conductivity partial derivative.
 
su2double GetdktdT_rho ()
 Get fluid thermal conductivity partial derivative.
 
void SetLaminarViscosityModel (CConfig *config)
 Set viscosity model.
 
void SetThermalConductivityModel (CConfig *config)
 Set thermal conductivity model.
 

Protected Attributes

su2double a
 model parameter.
 
su2double b
 model parameter.
 
su2double k
 model parameter (computed with acentric factor).
 
su2double Zed
 compressibility factor.
 
su2double TstarCrit
 Critical temperature.
 
- Protected Attributes inherited from CIdealGas
su2double Gamma
 Heat Capacity Ratio.
 
su2double Gamma_Minus_One
 Heat Capacity Ratio Minus One.
 
su2double Gas_Constant
 Gas Constant.
 
- Protected Attributes inherited from CFluidModel
su2double StaticEnergy
 Internal Energy.
 
su2double Entropy
 Entropy.
 
su2double Density
 Density.
 
su2double Pressure
 Pressure.
 
su2double SoundSpeed2
 SpeedSound.
 
su2double Temperature
 Temperature.
 
su2double dPdrho_e
 DpDd_e.
 
su2double dPde_rho
 DpDe_d.
 
su2double dTdrho_e
 DTDd_e.
 
su2double dTde_rho
 DTDe_d.
 
su2double Cp
 Specific Heat Capacity at constant pressure.
 
su2double Mu
 Specific Heat Capacity at constant pressure.
 
su2double dmudrho_T
 Specific Heat Capacity at constant pressure.
 
su2double dmudT_rho
 Specific Heat Capacity at constant pressure.
 
su2double Kt
 Specific Heat Capacity at constant pressure.
 
su2double dktdrho_T
 Specific Heat Capacity at constant pressure.
 
su2double dktdT_rho
 Specific Heat Capacity at constant pressure.
 
CViscosityModelLaminarViscosity
 Laminar Viscosity Model.
 
CConductivityModelThermalConductivity
 Thermal Conductivity Model.
 

Detailed Description

Child class for defining the Peng-Robinson model.

class CPengRobinson

Author
: S.Vitale, G. Gori
Version
5.0.0 "Raven"

Constructor & Destructor Documentation

§ CPengRobinson()

CPengRobinson::CPengRobinson ( void  )

Constructor of the class.

Source of the Peng-Robinson model.

fluid_model_ppr.cpp

Author
S. Vitale, G. Gori, M. Pini, A. Guardone, P. Colonna
Version
5.0.0 "Raven"

SU2 Original Developers: Dr. Francisco D. Palacios. Dr. Thomas D. Economon.

SU2 Developers: Prof. Juan J. Alonso's group at Stanford University. Prof. Piero Colonna's group at Delft University of Technology. Prof. Nicolas R. Gauger's group at Kaiserslautern University of Technology. Prof. Alberto Guardone's group at Polytechnic University of Milan. Prof. Rafael Palacios' group at Imperial College London. Prof. Edwin van der Weide's group at the University of Twente. Prof. Vincent Terrapon's group at the University of Liege.

Copyright (C) 2012-2017 SU2, the open-source CFD code.

SU2 is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

SU2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with SU2. If not, see http://www.gnu.org/licenses/.

Member Function Documentation

§ SetEnergy_Prho()

void CPengRobinson::SetEnergy_Prho ( su2double  P,
su2double  rho 
)
virtual

Set the Dimensionless Energy using Pressure and Density.

Parameters
[in]P- first thermodynamic variable.
[in]rho- second thermodynamic variable.

Reimplemented from CIdealGas.

§ SetTDState_hs()

void CPengRobinson::SetTDState_hs ( su2double  h,
su2double  s 
)
virtual

virtual member that would be different for each gas model implemented

Parameters
[in]InputSpec- Input pair for FLP calls ("hs").
[in]th1- first thermodynamic variable (h).
[in]th2- second thermodynamic variable (s).

Reimplemented from CIdealGas.

§ SetTDState_Prho()

void CPengRobinson::SetTDState_Prho ( su2double  P,
su2double  rho 
)
virtual

Set the Dimensionless State using Pressure and Density.

Parameters
[in]P- first thermodynamic variable.
[in]rho- second thermodynamic variable.

Reimplemented from CIdealGas.

§ SetTDState_Ps()

void CPengRobinson::SetTDState_Ps ( su2double  P,
su2double  s 
)
virtual

Set the Dimensionless State using Pressure and Entropy.

Parameters
[in]th1- first thermodynamic variable (P).
[in]th2- second thermodynamic variable (s).

Reimplemented from CIdealGas.

§ SetTDState_PT()

void CPengRobinson::SetTDState_PT ( su2double  P,
su2double  T 
)
virtual

Set the Dimensionless State using Pressure and Temperature.

Parameters
[in]P- first thermodynamic variable.
[in]T- second thermodynamic variable.

Reimplemented from CIdealGas.

§ SetTDState_rhoe()

void CPengRobinson::SetTDState_rhoe ( su2double  rho,
su2double  e 
)
virtual

Set the Dimensionless State using Density and Internal Energy.

Parameters
[in]rho- first thermodynamic variable.
[in]e- second thermodynamic variable.

Only positive root considered

Reimplemented from CIdealGas.

§ SetTDState_rhoT()

void CPengRobinson::SetTDState_rhoT ( su2double  rho,
su2double  T 
)
virtual

virtual member that would be different for each gas model implemented

Parameters
[in]InputSpec- Input pair for FLP calls ("rhoT").
[in]th1- first thermodynamic variable (rho).
[in]th2- second thermodynamic variable (T).

Reimplemented from CIdealGas.


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