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

Sum of mass fractions is zero for species 6(NO NH3 O2 CO2 N2 H2O)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By houss

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2021, 10:20
Default Sum of mass fractions is zero for species 6(NO NH3 O2 CO2 N2 H2O)
  #1
New Member
 
Join Date: Mar 2020
Posts: 23
Rep Power: 6
Davyd is on a distinguished road
Hello.
I am trying to do simulation of the gas-solid fluidized bed catalytic reactor. For this purpose I use tutorial reactingTwoPhaseEulerFoam--->laminar--->fluidisedBed. However, since it does not contain any files responsible for chemistry, I use chemistry files from combustion tutorial--->chemFoam--->h2. Of course I have modified them according to my case (reaction, species, conditions).
When I start simulation I get the ERROR described below, however it seems that I have defined the mole fractions for species. You can find the files responsible for chemistry attached to this thread.
Please, if someone knows how to overcome this issue, give me your advice. Thank you for your help!!!
Best,
Davyd.


/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : _f3950763fe-20191219 OPENFOAM=1912
Arch : "LSB;label=32;scalar=64"
Exec : reactingTwoPhaseEulerFoam
Date : Jan 28 2021
Time : 15:44:49
Host : LAPTOP-LTH2ON9V
PID : 1922
I/O : uncollated
Case : /mnt/c/Users/David/Downloads/OpenFOAM/OpenFOAM-v1912/RUN/fluidisedBed_REACTING_comb_h2
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


PIMPLE: no residual control data found. Calculations will employ 3 corrector loops


Reading g

Reading hRef
Creating phaseSystem

Selecting twoPhaseSystem interfaceCompositionPhaseChangeTwoPhaseSystem
Selecting phaseModel for particles: purePhaseModel
Selecting diameterModel for phase particles: constant
Selecting thermodynamics package
{
type heRhoThermo;
mixture pureMixture;
transport const;
thermo hConst;
equationOfState rhoConst;
specie specie;
energy sensibleInternalEnergy;
}

Calculating face flux field phi.particles
Selecting turbulence model type RAS
Selecting RAS turbulence model phasePressure
phasePressureCoeffs
{
preAlphaExp 500;
expMax 1000;
alphaMax 0.62;
g0 1000;
}

Selecting phaseModel for air: reactingPhaseModel
Selecting diameterModel for phase air: isothermal
Selecting thermodynamics package
{
type heRhoThermo;
mixture reactingMixture;
transport sutherland;
thermo janaf;
equationOfState perfectGas;
specie specie;
energy sensibleEnthalpy;
}

Selecting chemistryReader chemkinReader


--> FOAM FATAL ERROR:
Sum of mass fractions is zero for species 6(NO NH3 O2 CO2 N2 H2O)

From function void Foam::multiComponentMixture<ThermoType>::correctMa ssFractions() [with ThermoType = Foam::sutherlandTransport<Foam::species::thermo<Fo am::janafThermo<Foam:erfectGas<Foam::specie> >, Foam::sensibleEnthalpy> >]
in file lnInclude/multiComponentMixture.C at line 64.

FOAM exiting
Attached Files
File Type: txt chem.inp.txt (139 Bytes, 27 views)
File Type: txt senk.inp.txt (190 Bytes, 21 views)
File Type: txt senk.out.txt (82.2 KB, 13 views)
File Type: txt therm.dat.txt (2.0 KB, 25 views)
File Type: txt initialConditions.txt (1.1 KB, 33 views)
Davyd is offline   Reply With Quote

Old   August 31, 2021, 11:09
Default
  #2
New Member
 
Hosam Alrefaie
Join Date: Jul 2021
Posts: 24
Rep Power: 5
HosamAlrefaie is on a distinguished road
Hi Davyd, did find how to add the mass fractions of the species?

I am using multiComponentMixture with buoyantSimpleFoam, but I don't know where to add the mass fractions.
HosamAlrefaie is offline   Reply With Quote

Old   August 15, 2022, 14:18
Default
  #3
New Member
 
Houssam
Join Date: Mar 2014
Location: Tunisia
Posts: 12
Rep Power: 12
houss is on a distinguished road
Send a message via Skype™ to houss
hello!

i am facing the same issue with reactingFoam? have you guys been able to overcome the problem?
houss is offline   Reply With Quote

Old   August 15, 2022, 16:29
Default
  #4
New Member
 
Houssam
Join Date: Mar 2014
Location: Tunisia
Posts: 12
Rep Power: 12
houss is on a distinguished road
Send a message via Skype™ to houss
for those who may encounter the problem :

the initial value of the internalField of one of the specie files (CH4, CO2 O2 N2 or H2O) must be set to one. Same thing for the initial value at the outlet
outlet
{
type inletOutlet;
inletValue uniform 0;
value uniform 1;
}
Petey likes this.
houss is offline   Reply With Quote

Old   April 9, 2024, 21:58
Default
  #5
New Member
 
Moises Sena
Join Date: Nov 2023
Location: Salvador, Brasil
Posts: 4
Rep Power: 3
senammoises is on a distinguished road
Quote:
Originally Posted by houss View Post
hello!

i am facing the same issue with reactingFoam? have you guys been able to overcome the problem?
hey did you find the solution? I'm facing the same problem with reactingFoam
senammoises is offline   Reply With Quote

Old   April 9, 2024, 21:59
Default
  #6
New Member
 
Moises Sena
Join Date: Nov 2023
Location: Salvador, Brasil
Posts: 4
Rep Power: 3
senammoises is on a distinguished road
Quote:
Originally Posted by houss View Post
for those who may encounter the problem :

the initial value of the internalField of one of the specie files (CH4, CO2 O2 N2 or H2O) must be set to one. Same thing for the initial value at the outlet
outlet
{
type inletOutlet;
inletValue uniform 0;
value uniform 1;
}
I did that but it didn't work
senammoises is offline   Reply With Quote

Old   April 10, 2024, 05:01
Default
  #7
Senior Member
 
Join Date: Oct 2017
Posts: 133
Rep Power: 9
Krapf is on a distinguished road
Quote:
Originally Posted by senammoises View Post
hey did you find the solution? I'm facing the same problem with reactingFoam
Is it possible for you to upload your case? If not, then please upload the files in the 0 folder (with the information about which species you are using).
Krapf is offline   Reply With Quote

Old   April 10, 2024, 09:43
Default
  #8
New Member
 
Moises Sena
Join Date: Nov 2023
Location: Salvador, Brasil
Posts: 4
Rep Power: 3
senammoises is on a distinguished road
Quote:
Originally Posted by krapf View Post
is it possible for you to upload your case? If not, then please upload the files in the 0 folder (with the information about which species you are using).
C5H6.txt

C10H12.txt
senammoises is offline   Reply With Quote

Old   April 10, 2024, 11:10
Default
  #9
Senior Member
 
Join Date: Oct 2017
Posts: 133
Rep Power: 9
Krapf is on a distinguished road
For "inletPilot" and "inletAir", the values for "value" must add up to 1 and for "outlet", the values for "inletValue" must add up to 1.
Krapf is offline   Reply With Quote

Old   April 10, 2024, 11:36
Default
  #10
New Member
 
Moises Sena
Join Date: Nov 2023
Location: Salvador, Brasil
Posts: 4
Rep Power: 3
senammoises is on a distinguished road
Quote:
Originally Posted by Krapf View Post
For "inletPilot" and "inletAir", the values for "value" must add up to 1 and for "outlet", the values for "inletValue" must add up to 1.
thank you!! It worked!!!

One more question:

I starting to use reactingFoam and now successfully I inputed a new reaction, started from the Sandia tutorial. Now I want to change the geometry.

Which steps should I follow to change the geometry?

I already have the mesh (a .unv file).

thank you once again
senammoises is offline   Reply With Quote

Old   April 11, 2024, 05:06
Default
  #11
Senior Member
 
Join Date: Oct 2017
Posts: 133
Rep Power: 9
Krapf is on a distinguished road
There is the command "ideasUnvToFoam" (I have never used it): https://www.openfoam.com/documentati...UnvToFoam.html.
But if you don't know how to use your own geometry, you might want to take a step back and look at tutorials first (you can find some here, for example: https://wiki.openfoam.com/Tutorials).
Krapf 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
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 6, 2023 00:48
[solidMechanics] Support thread for "Solid Mechanics Solvers added to OpenFOAM Extend" bigphil OpenFOAM CC Toolkits for Fluid-Structure Interaction 686 December 22, 2022 10:10
p_rgh initial residual no change with different settings manuc OpenFOAM Running, Solving & CFD 3 June 26, 2018 16:53
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
species mass fractions Mark Austin FLUENT 0 October 28, 2004 14:46


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