rkgasmodel.h
来自「气体热力性质计算程序」· C头文件 代码 · 共 63 行
H
63 行
/*============================================================
Introduction
This is the computation of O.Redlich - J.N.S.Kwong's model,
which is revised from ver de Waals equation. The form of this
equation is like this:
p=RgT/(v-b)-a/[T^0.5*v(v+b)]
This equation is much acute than the var de Waals. But the
square root is induced into this one. The computation on this
equation should become much more complex. The accuracy of this
equation is so satisfactory when when the temperature is above
the critical temperature under any pressure. Besides, the
brevity of this equation also attracts many attentions on it.
------------------------------------------------------------*/
#pragma once
#ifndef x_RKGAS
#define x_RKGAS
#include "GasBase.h"
namespace XZGas
{
class RKGasModel:public GasModel
{
public:
RKGasModel(const GasData &gas);
~RKGasModel();
inline double Cp(double TT,double pp);
inline double Cv(double TT,double vv);
inline double Gama(double TT,double pp);
inline double h(double TT,double pp);
inline double u(double TT,double vv);
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);
protected:
//the derivative of p above v with T as a constant
inline double dpdvT(double TT,double vv);
//the derivative of p above T with v as a constant
inline double dpdTv(double pp,double vT,double TT=-1.0);
private:
double a;
double b;
};
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?