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

Mass diffusivity is missing in icoReactingMultiphaseInterFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 11, 2021, 18:37
Smile Mass diffusivity is missing in icoReactingMultiphaseInterFoam
  #1
New Member
 
Ejaz Ahmed
Join Date: May 2021
Posts: 7
Rep Power: 4
ejaz8894 is on a distinguished road
I was working on the icoReactingMultiphaseInterFoam solver & figured out that there is no mass diffusivity term in the species transport equation. I was trying to prescribe mass diffusivity similar to the YEqn.H file in the reactingFoam solver. The governing equation of species transport is not present in the main solver directory, rather it is declared in the src directory: OpenFOAM-v2012/src/phaseSystemModels/multiphaseInter/phasesSystem/phaseModel/MultiComponentPhaseModel.

Original implementation of the governing equation is:

fvScalarMatrix YiEqn
(
fv::EulerDdtScheme<scalar>(mesh).fvmDdt(Yi)
+ fv::gaussConvectionScheme<scalar>
(
mesh,
phi,
upwind<scalar>(mesh, phi)
).fvmDiv(phi, Yi)
==
Su[i] + fvm::Sp(Sp[i], Yi)
);

YiEqn.solve();

I tried to put modification in order to include mass diffusivity similar to the way it is included in the YEqn.H of reactingFoam solver:

fvScalarMatrix YiEqn
(
fv::EulerDdtScheme<scalar>(mesh).fvmDdt(Yi)
+ fv::gaussConvectionScheme<scalar>
(
mesh,
phi,
upwind<scalar>(mesh, phi)
).fvmDiv(phi, Yi)
- fvm::laplacian(turbulence->muEff(),Yi) //ADDED
==
Su[i] + fvm::Sp(Sp[i], Yi)
);

YiEqn.solve();



After hitting the wmake command, following error is showing:

lnInclude/MultiComponentPhaseModel.C:407:32: error: ‘turbulence’ was not declared in this scope
- fvm::laplacian(turbulence->muEff(),Yi)

Can anyone help me, how can I declare this 'turbulence' function? I would also appreciate if anyone can suggest any better approach to include mass diffusivity in species transport equation.
ejaz8894 is offline   Reply With Quote

Reply

Tags
diffusivity, species transport


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Table bounds warnings at: END OF TIME STEP CFXer CFX 4 July 16, 2020 23:44
Kinetic Theory for mass diffusivity Diger FLUENT 2 December 5, 2018 17:04
Mass diffusivity Error(zero mass diffusivity) Nishant_Sharma FLUENT 5 November 28, 2018 12:35
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Disable Mass Diffusivity and Enable UDS Diffusivity antoinel FLUENT 0 July 26, 2017 17:27


All times are GMT -4. The time now is 19:29.