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

Y1iEqn in reactingTwoPhaseEulerFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By demichie

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 19, 2015, 05:00
Default Y1iEqn in reactingTwoPhaseEulerFoam
  #1
Member
 
Victor Koppejan
Join Date: May 2015
Posts: 40
Rep Power: 10
vkoppejan is on a distinguished road
Hi everyone,

I'm playing around with the new reactingTwoPhaseEulerFoam solver.

I'd like to adapt to include laminar diffusivities per species.

After looking around I think I now have found several options for this

1. Specify a Lewis number for each specie.
2. Rewrite the species transp. eqn to include a mueff / Sc number, and define Sc for each specie.
3. Rewrite the species transport eqn to laminar form (as in scalarTransportFoam) and add define diffusivities for each specie.

One of the problems I have is that I can't seem to find the species transport eqn.

In the YEqns.H file it is defined as:

Code:
forAll(Y1, i)
{
tmp<fvScalarMatrix> Y1iEqn(phase1.YiEqn(Y1[i]));

if (Y1iEqn.valid())
{
	Y1iEqn =
	(
		Y1iEqn
	 ==
	   *massTransfer[Y1[i].name()]
	  + fvOptions(alpha1, rho1, Y1[i])
	);

	Y1iEqn->relax();
	Y1iEqn->solve(mesh.solver("Yi"));
}
}
So it appears to get the transport terms from somewhere else. Does anybody now where this definition is?

Btw, I know the Le number is correctly used in all the masstransfer models (apart from a few typos), but I really want to include species diffusivity in the Laplacian term.

Thanks for your help.

Victor
vkoppejan is offline   Reply With Quote

Old   November 21, 2015, 02:24
Default
  #2
Member
 
Mattia de\' Michieli Vitturi
Join Date: Mar 2009
Posts: 50
Rep Power: 17
demichie is on a distinguished road
Hi Victor,
you can find the equation here:

applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/MultiComponentPhaseModel/MultiComponentPhaseModel.C


Code:
        fvm::ddt(alpha, rho, Yi)
      + fvm::div(alphaRhoPhi, Yi, "div(" + alphaRhoPhi.name() + ",Yi)")
      - fvm::Sp(this->continuityError(), Yi)

      - fvm::laplacian
        (
            fvc::interpolate(alpha)
           *fvc::interpolate(this->turbulence().nut()*rho/Sc_),
            Yi
        )
     ==
        this->R(Yi)

      + fvc::ddt(residualAlpha_*rho, Yi)
      - fvm::ddt(residualAlpha_*rho, Yi)
ancolli and vkoppejan like this.
demichie is offline   Reply With Quote

Old   January 16, 2020, 06:35
Default 3 terms of the scalar transport eq
  #3
Member
 
Rosario Arnau
Join Date: Feb 2017
Location: Spain
Posts: 57
Rep Power: 9
rarnaunot is on a distinguished road
Hi Foamers,

I took a look at the transport equation and I'm confused about some terms of it.

Quote:
Originally Posted by demichie View Post
Hi Victor,
you can find the equation here:

applications/solvers/multiphase/reactingEulerFoam/phaseSystems/phaseModel/MultiComponentPhaseModel/MultiComponentPhaseModel.C


Code:
        fvm::ddt(alpha, rho, Yi)
      + fvm::div(alphaRhoPhi, Yi, "div(" + alphaRhoPhi.name() + ",Yi)")
      - fvm::Sp(this->continuityError(), Yi)

      - fvm::laplacian
        (
            fvc::interpolate(alpha)
           *fvc::interpolate(this->turbulence().nut()*rho/Sc_),
            Yi
        )
     ==
        this->R(Yi)

      + fvc::ddt(residualAlpha_*rho, Yi)
      - fvm::ddt(residualAlpha_*rho, Yi)
What's the meaning of these three terms:

1.
Code:
      
      - fvm::Sp(this->continuityError(), Yi)
2.
Code:
        

      + fvc::ddt(residualAlpha_*rho, Yi)
3.

Code:
        

        - fvm::ddt(residualAlpha_*rho, Yi)
Guess that term 2 and 3 are linked.

Thanks,
rarnaunot 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 03:57.