idealgasmodel.h
来自「气体热力性质计算程序」· C头文件 代码 · 共 48 行
H
48 行
/*=================================================================================
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 + =
减小字号Ctrl + -
显示快捷键?