📄 idealgasmodel.h
字号:
/*=================================================================================
Program for Ideal Gas Property Calculation
This program is for the calculation of ideal gas' thermodynamic properties.
The base class for it is IdealGas, in which several functions for some certain
properties calculation are provided. With the right initial data, this program
can be used on any gas with the ideal gas model.
---------------------------------------------------------------------------------*/
#pragma once
#ifndef x_IDEALGAS
#define x_IDEALGAS
#endif
#include "GasBase.h"
namespace XZGas
{
class IdealGasModel:public GasModel
{
public:
IdealGasModel(const GasData &gas);
~IdealGasModel();
inline double Cp(double TT,double pp=0);
inline double Cv(double TT,double vv=0);
inline double Gama(double TT,double pp);
inline double h(double TT,double pp=0);
inline double u(double TT,double vv=0);
inline double s(double TT,double pp);
inline double p(double TT,double vv);
inline double v(double TT,double pp);
inline double T(double pp,double vv);
inline double Alphav(double pp,double vv);
inline double KT(double TT,double vv);
inline double Beta(double pp,double vv);
inline void ChangeGas(const GasData &newgas);
private:
};
}//Build the IdealGas model into the namespace
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -