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

How to understand "Y[inertIndex] = scalar(1) - Yt" in YEqn.H

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 21, 2013, 09:59
Default How to understand "Y[inertIndex] = scalar(1) - Yt" in YEqn.H
  #1
Member
 
赵庆良
Join Date: Aug 2013
Posts: 56
Rep Power: 12
zqlhzx is on a distinguished road
Hi Foamers:
As we can see the following codes in YEqn.H:

{
label inertIndex = -1;
volScalarField Yt(0.0*Y[0]);
forAll(Y, i)
{
if (Y[i].name() != inertSpecie)
{
volScalarField& Yi = Y[i];
solve
(
fvm::ddt(rho, Yi)
+ mvConvection->fvmDiv(phi, Yi)
- fvm::laplacian(turbulence->muEff(), Yi)
==
kappa*chemistry.RR(i),
mesh.solver("Yi")
);
Yi.max(0.0);
Yt += Yi;
}
else
{
inertIndex = i;
}
}
Y[inertIndex] = scalar(1) - Yt;
Y[inertIndex].max(0.0);
}
What does the "Y[inertIndex]"meas?How can I understand it?and what does the "Y[inertIndex]"use?
Thanks in advance!
zqlhzx is offline   Reply With Quote

Old   September 22, 2013, 04:55
Default
  #2
New Member
 
M. Sabouri
Join Date: Nov 2011
Posts: 24
Rep Power: 14
Moslem is on a distinguished road
I guess:
It is mass fraction of the inert species.
For example the N2 mass fraction in the following:
CH4+2(O2+3.76N2) --> CO2+2H2O+7.52N2
Moslem is offline   Reply With Quote

Old   September 22, 2013, 06:40
Default
  #3
Member
 
赵庆良
Join Date: Aug 2013
Posts: 56
Rep Power: 12
zqlhzx is on a distinguished road
Thanks Moslem,I think you are right!
zqlhzx is offline   Reply With Quote

Old   May 31, 2018, 18:34
Default what is Yt ?
  #4
New Member
 
Anshul
Join Date: Dec 2017
Location: India
Posts: 25
Rep Power: 8
sonGoku is on a distinguished road
Hi people ,
can u explain me what is Yt
initialised in the code as -
volScalarField Yt(0.0*Y[0]);
sonGoku is offline   Reply With Quote

Old   June 1, 2018, 07:09
Default
  #5
Senior Member
 
zhangyan's Avatar
 
Yan Zhang
Join Date: May 2014
Posts: 120
Rep Power: 11
zhangyan is on a distinguished road
Quote:
Originally Posted by sonGoku View Post
Hi people ,
can u explain me what is Yt
initialised in the code as -
volScalarField Yt(0.0*Y[0]);


Y_total exclude the inertSpecie
__________________
https://openfoam.top

Last edited by zhangyan; June 1, 2018 at 07:10. Reason: missing QUOTE
zhangyan is offline   Reply With Quote

Old   June 1, 2018, 12:36
Default
  #6
New Member
 
Anshul
Join Date: Dec 2017
Location: India
Posts: 25
Rep Power: 8
sonGoku is on a distinguished road
thnx zhanGyan
sonGoku 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 20:58.