|
[Sponsors] |
January 28, 2021, 04:24 |
Specie not found in table.
|
#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 am trying to add chemistry files from combustion tutorial--->chemFoam--->h2. I have copied the "chemkin" folder to my case folder and modified it according to my case (reaction, species, conditions). I have also copied the files from the "constant" folder of the chemFoam (h2) tutorial and modified them accordingly. However, when I start simulation, somehow the OpenFoam knows that it was h2 case where 10 chemical species (OH N2 H2O2 O2 H2 HO2 O H2O H AR) were used and I get the ERROR that my specie NO not found in table and the valid entries are 10(OH N2 H2O2 O2 H2 HO2 O H2O H AR). Could someone help me to solve this problem. What I am doing wrong, or if it is not the correct way, how can I add the chemistry in a proper way? Modified chemkin files are attached. 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 : 09:57:31 Host : LAPTOP-LTH2ON9V PID : 1870 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: NO not found in table. Valid entries: 10(OH N2 H2O2 O2 H2 HO2 O H2O H AR) From function T& Foam::HashTable<T, Key, Hash>::at(const Key&) [with T = Foam::List<Foam::specieElement>; Key = Foam::word; Hash = Foam::string::hash] in file /home/pawan/OpenFOAM/OpenFOAM-v1912/src/OpenFOAM/lnInclude/HashTableI.H at line 72. FOAM exiting |
|
January 28, 2021, 08:27 |
|
#3 |
New Member
Join Date: Mar 2020
Posts: 23
Rep Power: 6 |
||
January 28, 2021, 10:28 |
|
#5 | |
New Member
Join Date: Mar 2020
Posts: 23
Rep Power: 6 |
Quote:
The problem is the following: When I start simulation I get the ERROR described below, however it seems that I have defined the mole fractions for all species. Maybe you know how to solve this problem? /*---------------------------------------------------------------------------*\ | ========= | | | \\ / 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 |
||
January 28, 2021, 13:26 |
|
#7 | |
New Member
Join Date: Mar 2020
Posts: 23
Rep Power: 6 |
Quote:
!SENS CONP PRES 1.00 ! atm TEMP 373.0 ! K TIME 1.E-3 ! sec DELT 1.E-7 ! sec REAC CO2 0.12 REAC H2O 0.07 REAC N2 0.77 REAC O2 0.0392 REAC NO 0.0005 REAC NH3 0.0003 END Additionally, in the "initialConditions" file in the "constant" folder: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v1912 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object initialConditions; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // constantProperty pressure; fractionBasis mole; fractions { CO2 0.12; H2O 0.07; N2 0.77; O2 0.0392; NO 0.0005; NH3 0.0003; } p 101325; T 373; // ************************************************** *********************** // Previously, I have tried to use reactingFoam tutorial (combustion->reactingFoam->laminar->counterFlowFlame2D) instead of chemFoam and in that case the separate files corresponding to each specie was created in the "0" folder with defining the boundaryField. However now I was trying to do my case according to the chemFoam tutorial and using the case h2. Probably I do something wrong, because it doesn't work)). Maybe you can recommend me what to do)) |
||
January 28, 2021, 13:32 |
|
#8 |
Senior Member
|
You need to set species mass fraction for fuel and oxidizer in the 0-folder. For CH4 for instance, see https://github.com/OpenFOAM/OpenFOAM...LTS/0/CH4.orig
|
|
January 29, 2021, 02:59 |
|
#9 | |
New Member
Join Date: Mar 2020
Posts: 23
Rep Power: 6 |
Quote:
The example of one specie and the error are presented below: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v1912 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "0"; object NH3; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 0 0 0 0 0 0]; internalField uniform 0; boundaryField { inlet { type fixedValue; value uniform 0.0003; } outlet { type inletOutlet; phi phi.air; inletValue $internalField; value $internalField; } walls { type zeroGradient; } } // ************************************************** *********************** // /*---------------------------------------------------------------------------*\ | ========= | | | \\ / 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 29 2021 Time : 08:47:35 Host : LAPTOP-LTH2ON9V PID : 1926 I/O : uncollated Case : /mnt/c/Users/David/Downloads/OpenFOAM/OpenFOAM-v1912/RUN/fluidisedBed_REACTING_comb 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 foamChemistryReader --> 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 |
||
March 27, 2021, 02:41 |
|
#10 |
New Member
Guanwen Luo
Join Date: Jan 2021
Posts: 6
Rep Power: 5 |
Hi Davyd, did u find the solution? I encountered the same problem as u.
|
|
August 30, 2021, 22:49 |
|
#11 | |
New Member
DuXB
Join Date: Aug 2021
Posts: 4
Rep Power: 5 |
Quote:
|
||
February 10, 2023, 00:22 |
|
#12 | |
New Member
Xiaobo YAO
Join Date: Oct 2020
Posts: 9
Rep Power: 6 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] Insatlling gmsh from the source code-issue? | CFD-Lover | OpenFOAM Meshing & Mesh Conversion | 20 | June 12, 2018 07:39 |
Gmsh installation on terminal help | spitfire | Main CFD Forum | 4 | July 27, 2017 16:11 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |
Problems Installing OF 1.6 32 bit | bucksfan | OpenFOAM Installation | 19 | August 4, 2009 02:36 |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 03:32 |