湍流模型方程和代码问题
-
fvm::Sp(alpha()*rho()*epsilonByk(F1, tgradU()), k_)
可以理解为
alpha()*rho()*epsilonByk(F1, tgradU())*k
epsilonByk(F1, tgradU())
的定义,要参考源代码的定义:kOmegaSST<MomentumTransportModel, BasicMomentumTransportModel>::epsilonByk ( const volScalarField::Internal& F1, const volScalarField::Internal& F2 ) const { return betaStar_*omega_(); }
alpha()*rho()*epsilonByk(F1, tgradU())*k
就变成了alpha()*rho()*betaStar_*omega_()*k
。这个跟公式就可以对上了 -
@李东岳 李老师,下面那一行代码alpha()*rho()*betaStar_*omegaInf_*kInf_和alpha()*rho()*betaStar_*omega_()*k有什么区别吗?
我看上面代码中有对omegaInf_和kInf_定义,kInf_ ( dimensioned<scalar>::lookupOrAddToDict ( "kInf", this->coeffDict_, k_.dimensions(), 0 ) ), omegaInf_ ( dimensioned<scalar>::lookupOrAddToDict ( "omegaInf", this->coeffDict_, omega_.dimensions(), 0 ) )
那是否可以理解成omegaInf_和kInf_就是0?不明白alpha()*rho()*betaStar_*omegaInf_*kInf_这串代码的意义,请教一下老师,谢谢!