从抽象类PsiFunction的定义可以看出,Palabos中提供的psi函数全部为等温情况。如果想要做与温度相关的模拟或通过EOS确定psi的方法,直接自己定义类即可,不要从PsiFunction继承.
抽象类PsiFunction
析构函数:空;
compute(T rho):纯虚函数
clone:纯虚函数
子类
PsiIsRho
compute(T rho):返回密度值
PsiShanChen93
私有成员变量:rho0
构造函数:PsiShanChen93(T rho0):对rho0赋值
compute(T rho): ψ = ρ 0 ( 1 − e − ρ ρ 0 ) \psi=\rho_0(1-e^{-\frac{\rho}{\rho_0}}) ψ=ρ0(1−e