|
[Sponsors] |
The density cross the interface is incorrect in the KEpsilon model in interFoam? |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
duan
Join Date: Apr 2014
Posts: 6
Rep Power: 13 ![]() |
Recently I have found a paper (OMAE2015-41812) discussed about the KEpsilon model in the interFoam (2.3.0), which claimed that "The existing formulations treat the density as a constant without considering its variations crossing the air and water free surface which is not correct. "
See the attached pic for more details. I then checked KEpsilon.C, for the Dissipation equation Code:
tmp<fvScalarMatrix> epsEqn ( fvm::ddt(epsilon_) + fvm::div(phi_, epsilon_) - fvm::laplacian(DepsilonEff(), epsilon_) == C1_*G*epsilon_/k_ - fvm::Sp(C2_*epsilon_/k_, epsilon_) ); Code:
tmp<fvScalarMatrix> kEqn ( fvm::ddt(k_) + fvm::div(phi_, k_) - fvm::laplacian(DkEff(), k_) == G - fvm::Sp(epsilon_/k_, k_) ); Code:
volScalarField G(GName(), nut_*2*magSqr(symm(fvc::grad(U_)))); Then I checked the UEqn in interFoam (2.3.0), which reads, Code:
fvVectorMatrix UEqn ( fvm::ddt(rho, U) + fvm::div(rhoPhi, U) + turbulence->divDevRhoReff(rho, U) ); Code:
tmp<fvVectorMatrix> kEpsilon::divDevRhoReff ( const volScalarField& rho, volVectorField& U ) const { volScalarField muEff("muEff", rho*nuEff()); return ( - fvm::laplacian(muEff, U) - fvc::div(muEff*dev(T(fvc::grad(U)))) ); } Now I have the questions, which is this "const volScalarField& rho"? It is rho_water, rho_air, or rho = alpha.water*rho_water + alpha.air*rho_air, with alpha.air = 1 - alpha.water? Do you guys think the treatment in interFoam is correct or not? The paper is linked here: https://www.dropbox.com/s/53nvxo79m8...41812.pdf?dl=0 |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Current density visualisation (PEM fuel cell add-on module) | pchoopanya | FLUENT | 10 | August 21, 2023 14:33 |
How to change turbulence model in InterFoam | Gildeh | OpenFOAM Running, Solving & CFD | 4 | March 28, 2012 12:04 |
Concentric tube heat exchanger (Air-Water) | Young | CFX | 5 | October 6, 2008 23:17 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 15:55 |
Replace periodic by inlet-outlet pair | lego | CFX | 3 | November 5, 2002 20:09 |