Feature: new block-coupled k-epsilon model. Robert Keser, FSB
This commit is contained in:
parent
c9af015399
commit
70ec968224
2 changed files with 10 additions and 8 deletions
|
@ -253,9 +253,10 @@ void coupledKEpsilon::correct()
|
||||||
+ fvm::div(phi_, epsilon_)
|
+ fvm::div(phi_, epsilon_)
|
||||||
+ fvm::SuSp(-fvc::div(phi_), epsilon_)
|
+ fvm::SuSp(-fvc::div(phi_), epsilon_)
|
||||||
- fvm::laplacian(DepsilonEff(), epsilon_)
|
- fvm::laplacian(DepsilonEff(), epsilon_)
|
||||||
+ fvm::Sp(C2_*epsilon_/k_, epsilon_)
|
+ fvm::Sp(2*C2_*epsilon_/k_, epsilon_)
|
||||||
==
|
==
|
||||||
C1_*G*epsilon_/k_
|
2*C1_*Cmu_*magSqr(symm(fvc::grad(U_)))*k_
|
||||||
|
+ C2_*sqr(epsilon_)/k_
|
||||||
);
|
);
|
||||||
|
|
||||||
epsEqn.relax();
|
epsEqn.relax();
|
||||||
|
@ -263,14 +264,12 @@ void coupledKEpsilon::correct()
|
||||||
|
|
||||||
keEqn.insertEquation(1, epsEqn);
|
keEqn.insertEquation(1, epsEqn);
|
||||||
|
|
||||||
// Add coupling term:
|
// Coupling term
|
||||||
// G_epsilon = C1*Cmu*(symm(grad(U))) k
|
|
||||||
// but with wall function corrections: must be calculated from G
|
|
||||||
// HJ, 27/Apr/2015
|
|
||||||
volScalarField coupling
|
volScalarField coupling
|
||||||
(
|
(
|
||||||
"coupling",
|
"coupling",
|
||||||
-C1_*G*epsilon_/sqr(k_)
|
-2*C1_*Cmu_*magSqr(symm(fvc::grad(U_)))
|
||||||
|
- C2_*sqr(epsilon_/k_)
|
||||||
);
|
);
|
||||||
scalarField& couplingIn = coupling.internalField();
|
scalarField& couplingIn = coupling.internalField();
|
||||||
|
|
||||||
|
@ -294,7 +293,8 @@ void coupledKEpsilon::correct()
|
||||||
+ fvm::div(phi_, k_)
|
+ fvm::div(phi_, k_)
|
||||||
+ fvm::SuSp(-fvc::div(phi_), k_)
|
+ fvm::SuSp(-fvc::div(phi_), k_)
|
||||||
- fvm::laplacian(DkEff(), k_)
|
- fvm::laplacian(DkEff(), k_)
|
||||||
+ fvm::SuSp((epsilon_ - G)/k_, k_)
|
+ fvm::Sp(Cmu_*k_/(nut_ + nutSmall_), k_)
|
||||||
|
- G
|
||||||
);
|
);
|
||||||
|
|
||||||
kEqn.relax();
|
kEqn.relax();
|
||||||
|
@ -305,6 +305,7 @@ void coupledKEpsilon::correct()
|
||||||
// Update source coupling: coupling terms eliminated from source
|
// Update source coupling: coupling terms eliminated from source
|
||||||
keEqn.updateSourceCoupling();
|
keEqn.updateSourceCoupling();
|
||||||
|
|
||||||
|
// Solve the block matrix
|
||||||
keEqn.solve();
|
keEqn.solve();
|
||||||
|
|
||||||
// Retrieve solution
|
// Retrieve solution
|
||||||
|
|
|
@ -40,6 +40,7 @@ Description
|
||||||
@endverbatim
|
@endverbatim
|
||||||
|
|
||||||
Author
|
Author
|
||||||
|
Robert Keser, FAMENA. All rights reserved.
|
||||||
Hrvoje Jasak, Wikki Ltd. All rights reserved.
|
Hrvoje Jasak, Wikki Ltd. All rights reserved.
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
|
|
Reference in a new issue