mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
reactingTwoPhaseEulerFoam/twoPhaseCompressibleTurbulenceModels/kineticTheoryModels: Added support for fvOptions
This commit is contained in:
@ -26,6 +26,7 @@ License
|
||||
#include "kineticTheoryModel.H"
|
||||
#include "mathematicalConstants.H"
|
||||
#include "twoPhaseSystem.H"
|
||||
#include "fvOptions.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
@ -417,6 +418,8 @@ void Foam::RASModels::kineticTheoryModel::correct()
|
||||
// 'thermal' conductivity (Table 3.3, p. 49)
|
||||
kappa_ = conductivityModel_->kappa(alpha, Theta_, gs0_, rho, da, e_);
|
||||
|
||||
fv::options& fvOptions(fv::options::New(mesh_));
|
||||
|
||||
// Construct the granular temperature equation (Eq. 3.20, p. 44)
|
||||
// NB. note that there are two typos in Eq. 3.20:
|
||||
// Ps should be without grad
|
||||
@ -436,10 +439,13 @@ void Foam::RASModels::kineticTheoryModel::correct()
|
||||
+ fvm::Sp(-gammaCoeff, Theta_)
|
||||
+ fvm::Sp(-J1, Theta_)
|
||||
+ fvm::Sp(J2/(Theta_ + ThetaSmall), Theta_)
|
||||
+ fvOptions(alpha, rho, Theta_)
|
||||
);
|
||||
|
||||
ThetaEqn.relax();
|
||||
fvOptions.constrain(ThetaEqn);
|
||||
ThetaEqn.solve();
|
||||
fvOptions.correct(Theta_);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user