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

Question about the species equation in icoreactingMultiphaseInterFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2023, 01:35
Default Question about the species equation in icoreactingMultiphaseInterFoam
  #1
New Member
 
Join Date: Nov 2022
Posts: 3
Rep Power: 3
lrl3512 is on a distinguished road
Hi,

I am currently using the icoreactingMultiphaseInterFoam solver for my research. However, while examining the source code, I noticed that the species equation is using instead of .I'm curious why,According to conservation of mass,
Would anyone be able to provide some information or resources to help me understand this issue? I would greatly appreciate any suggestions or guidance that can help me resolve this question.

Thank you.
Code:
forAll(X_, i)
    {
        if (inertIndex_ != i)
        {
            volScalarField& Yi = X_[i];

            phiYiCorrs.set
            (
                i,
                new surfaceScalarField
                (
                    "phi" + Yi.name() + "Corr",
                    fvc::flux
                    (
                        phi,
                        Yi,
                        "div(phi," + Yi.name() + ')'
                    )
                )
            );

            surfaceScalarField& phiYiCorr = phiYiCorrs[i];

            forAllConstIter
            (
                multiphaseInterSystem::phaseModelTable,
                this->fluid().phases(),
                iter2
            )
            {
                //const volScalarField& alpha2 = iter2()().oldTime();
                const volScalarField& alpha2 = iter2()();

                if (&alpha2 == &alpha1)
                {
                    continue;
                }

                phiYiCorr += fvc::flux
                (
                   -fvc::flux(-phir, alpha2, phirScheme),
                    Yi,
                    phirScheme
                );
            }
lrl3512 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Direct numerical simulation of species transport equation with phase change Pmaroul Main CFD Forum 2 October 12, 2018 17:02
Reaction Source Term in Steady Species transport equation cfdvenkatesh Main CFD Forum 0 August 19, 2010 10:28
Constant velocity of the material Sas CFX 15 July 13, 2010 09:56
species equation zhou FLUENT 0 July 23, 2005 15:26
Species Transfport Model - Question Lior FLUENT 3 September 2, 2004 16:57


All times are GMT -4. The time now is 07:56.