CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Figuring out how mu_eff and alphaeff are calcualted for reactingFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By kuria

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2021, 10:48
Default Figuring out how mu_eff and alphaeff are calcualted for reactingFoam
  #1
Member
 
K
Join Date: Mar 2018
Posts: 34
Rep Power: 8
kuria is on a distinguished road
Hey Foamers

I am looking at the reactingFoam solver in OpenFOAM 8 and trying to understand how the energy and species equations are solved.

In energy equation:
fvScalarMatrix EEqn
(
fvm::ddt(rho, he) + mvConvection->fvmDiv(phi, he)
+ fvc::ddt(rho, K) + fvc::div(phi, K)
+ (
he.name() == "e"
? fvc::div
(
fvc::absolute(phi/fvc::interpolate(rho), U),
p,
"div(phiv,p)"
)
: -dpdt
)
+ thermophysicalTransport->divq(he)
==
reaction->Qdot()
+ fvOptions(rho, he)
);

EEqn.relax();

fvOptions.constrain(EEqn);

EEqn.solve();

thermophysicalTransport->divq(he) is calculated for the turbulent part as
template<class TurbulenceThermophysicalTransportModel>
tmp<fvScalarMatrix>
eddyDiffusivity<TurbulenceThermophysicalTransportM odel>::divq
(
volScalarField& he
) const
{
return -fvm::laplacian(this->alpha()*this->alphaEff(), he);
}


Similarly for species transport equation, the laplacian term is calcualted based on
template<class TurbulenceThermophysicalTransportModel>
tmp<fvScalarMatrix>
eddyDiffusivity<TurbulenceThermophysicalTransportM odel>::divj
(
volScalarField& Yi
) const
{
return -fvm::laplacian(this->alpha()*this->DEff(Yi), Yi);
}


I understood until here, but I could not figure out how both DEff and alphaEff are calculated.

Has someone looked into how these are calculated ?
kuria is offline   Reply With Quote

Old   June 22, 2021, 11:09
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Well, muEff as the other one is the dynamic part plus the turbulent part. So muEff is the dynamic viscosity plus the part that comes from the turbulence models. I updated the section in my book already (but not published) regarding such things. I think, I am going to re-update the book after FOAM v9 is out.

So the muEff is calculated in the turbulence classes. I would not agree that you are in the correct classes. I once thought that we are in the eddy viscosity class but I guess we are not. Simply use a GDB to check out where you go. I don´t have time right now.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   June 23, 2021, 10:52
Default
  #3
Member
 
K
Join Date: Mar 2018
Posts: 34
Rep Power: 8
kuria is on a distinguished road
Hey Tobias

Thank you for the quick reply!
I will check which classes are getting called to backtrack it
Tobi likes this.
kuria is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:09.