|
[Sponsors] |
January 11, 2024, 08:19 |
NicenoKEqn and KEqn models
|
#1 |
Senior Member
Guilherme
Join Date: Apr 2017
Posts: 245
Rep Power: 10 |
Hi,
I would like help answering a question. The NicenoKEqn.C file calculates kSource() as follows: Code:
template<class BasicMomentumTransportModel> tmp<fvScalarMatrix> NicenoKEqn<BasicMomentumTransportModel>::kSource() const { const alphaField& alpha = this->alpha_; const rhoField& rho = this->rho_; const phaseCompressibleMomentumTransportModel& gasTurbulence = this->gasTurbulence(); const volScalarField phaseTransferCoeff(this->phaseTransferCoeff()); return alpha*rho*bubbleG() + phaseTransferCoeff*gasTurbulence.k() - fvm::Sp(phaseTransferCoeff, this->k_); } KEqn.C: Code:
tmp<fvScalarMatrix> kEqn ( fvm::ddt(alpha, rho, k_) + fvm::div(alphaRhoPhi, k_) - fvm::laplacian(alpha*rho*DkEff(), k_) == alpha*rho*G - fvm::SuSp((2.0/3.0)*alpha*rho*divU, k_) - fvm::Sp(this->Ce_*alpha*rho*sqrt(k_)/this->delta(), k_) + kSource() + fvModels.source(alpha, rho, k_) ); I'm trying to believe that the result of this combination will generate the code below, but I'm not sure... which would even make the code written by Niceno and referenced in OpenFOAM contrary to the article. Expectation: Code:
tmp<fvScalarMatrix> kEqn ( fvm::ddt(alpha, rho, k_) + fvm::div(alphaRhoPhi, k_) - fvm::laplacian(alpha*rho*DkEff(), k_) == alpha*rho*bubbleG() - fvm::SuSp((2.0/3.0)*alpha*rho*divU, k_) + phaseTransferCoeff*gasTurbulence.k() - fvm::Sp(phaseTransferCoeff, this->k_); + fvModels.source(alpha, rho, k_) ); Last edited by gu1; January 11, 2024 at 09:49. |
|
Tags |
keqn, nicenokeqn, openfoam11 |
|
|