|
[Sponsors] |
Sum of mass fractions is zero for species 6(NO NH3 O2 CO2 N2 H2O) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 28, 2021, 10:20 |
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 |
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 |
|
August 31, 2021, 11:09 |
|
#2 |
New Member
Hosam Alrefaie
Join Date: Jul 2021
Posts: 24
Rep Power: 5 |
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. |
|
August 15, 2022, 14:18 |
|
#3 |
New Member
|
hello!
i am facing the same issue with reactingFoam? have you guys been able to overcome the problem? |
|
August 15, 2022, 16:29 |
|
#4 |
New Member
|
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; } |
|
April 9, 2024, 21:58 |
|
#5 |
New Member
Moises Sena
Join Date: Nov 2023
Location: Salvador, Brasil
Posts: 4
Rep Power: 3 |
||
April 9, 2024, 21:59 |
|
#6 | |
New Member
Moises Sena
Join Date: Nov 2023
Location: Salvador, Brasil
Posts: 4
Rep Power: 3 |
Quote:
|
||
April 10, 2024, 05:01 |
|
#7 |
Senior Member
Join Date: Oct 2017
Posts: 133
Rep Power: 9 |
||
April 10, 2024, 09:43 |
|
#8 | |
New Member
Moises Sena
Join Date: Nov 2023
Location: Salvador, Brasil
Posts: 4
Rep Power: 3 |
Quote:
C10H12.txt |
||
April 10, 2024, 11:10 |
|
#9 |
Senior Member
Join Date: Oct 2017
Posts: 133
Rep Power: 9 |
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.
|
|
April 10, 2024, 11:36 |
|
#10 | |
New Member
Moises Sena
Join Date: Nov 2023
Location: Salvador, Brasil
Posts: 4
Rep Power: 3 |
Quote:
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 |
||
April 11, 2024, 05:06 |
|
#11 |
Senior Member
Join Date: Oct 2017
Posts: 133
Rep Power: 9 |
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). |
|
|
|
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 |