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

icoReactingMultiphaseInterFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 19, 2025, 19:15
Default icoReactingMultiphaseInterFoam
  #1
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 301
Rep Power: 12
mostanad is on a distinguished road
Hi My Friends,
I am using icoReactingMultiphaseInterFoam in Openfoam v 2212, and somthing looks no clear to me. This solver is able to handle multicomponent multiphase reacting flows. From what I know, the species equation within each phase is defined as:

\frac{\partial (\alpha_1 \rho_1 Y_i)}{\partial t} + \nabla \cdot (\alpha_1 \rho_1 Y_i \mathbf{u}) = \nabla \cdot (\alpha_1 \rho_1 D_i \nabla Y_i) + S_{Y_i}

However, in the Mules solver for species equation in MultiComponentPhaseModel.C, we use:
Code:
MULES::explicitSolve
                    (
                        geometricOneField(),
                        Yi,
                        phi,
                        phiYiCorr,
                        Sp[i],
                        Su[i],
                        oneField(),
                        zeroField()
                    );
You see there is nothing about the \alpha of the phase related to that species, as a coefficient. Can anyone help me to undertand this?
Regards,
Mohammad
mostanad is offline   Reply With Quote

Old   March 22, 2025, 05:52
Default
  #2
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 301
Rep Power: 12
mostanad is on a distinguished road
No one has an opinion about this?
mostanad is offline   Reply With Quote

Old   March 27, 2025, 23:19
Default
  #3
Senior Member
 
mohammad
Join Date: Sep 2015
Posts: 301
Rep Power: 12
mostanad is on a distinguished road
OK. I realized it would be great to share my answer to the question above with you. Maybe in the future, someone will see this answer and find it useful for better clarification.

I do believe that OpenFOAM in icoReactingMultiphaseInterFoam solves Y*\alpha instead of Y. This can be seen in MultiComponentPhaseModel.C, particularly in the following part:

Code:
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)
);
This part literally tells you that the governing equation is something like:
\frac{dY}{dt}+\triangledown(Y, phi)=S_u+S_pY
whereas, based on the equation in the first post, it should be:
\frac{\partial (\alpha Y_i)}{\partial t} + \nabla \cdot (\alpha Y_i \mathbf{u}) = S_u+S_pY
And I don't know why! Even in test cases like evaporationMultiComponent in the tutorials, you can see that Y actually tries to follow Alpha values. This is because the explicit solution in MultiComponentPhaseModel.C is very similar to Alpha if we don't include Alpha in our equation:


Attached Images
File Type: jpg video-capture-t0007.00seg-728.jpg (22.0 KB, 9 views)
mostanad is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 15:30.