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

reactingFoam-error in inert specie

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 6, 2023, 17:10
Default reactingFoam-error in inert specie
  #1
New Member
 
Marzin
Join Date: Oct 2022
Posts: 6
Rep Power: 4
Marzin is on a distinguished road
Hi
I'm simulating the specie transmission without any chemical reaction in the small office room.
But I get this error:
--> FOAM FATAL IO ERROR: (openfoam-2112 patch=220610)
Inert specie N2 not found in available species 0()

file: constant/thermophysical properties at line 20 to 119.

From reactingFoam
in file createFields.H at line 14.



The thermophysical properties file of this model is as fellow:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object thermophysicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

thermoType
{
type hePsiThermo;
mixture pureMixture;
transport const;
thermo hConst;
equationOfState perfectGas;
specie specie;
energy sensibleEnthalpy;
}


mixture
{
specie
{
name N2;
inertSpecie yes;
nMoles 1.0;
molWeight 28.0134;
}

thermodynamics
{
Cp 1040.0;
Hf 0.0;
Sf 191.61;
}

transport
{
mu 1.716e-05;
Pr 0.720;
}


specie
{
name O2;
inertSpecie no;
nMoles 1.0;
molWeight 31.999;
}

thermodynamics
{
Cp 919;
Hf 0;
Sf 205.03;
}

transport
{
mu 1.716e-05;
Pr 0.664;
}


specie
{
name CO2;
inertSpecie no;
nMoles 1.0;
molWeight 44.01;
}

thermodynamics
{
Cp 844.5;
Hf -393.520;
Sf 213.8;
}

transport
{
mu 1.8e-05;
Pr 0.7;
}


specie
{
name H2O;
inertSpecie no;
nMoles 1.0;
molWeight 18.015;
}

thermodynamics
{
Cp 1847.5;
Hf -241.820;
Sf 188.8;
}

transport
{
mu 1.8e-05;
Pr 0.7;
}

}

inertSpecie N2;


I would be very grateful if anyone could guide me to resolve this problem?
Marzin is offline   Reply With Quote

Old   June 6, 2023, 17:36
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 798
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Suggest to check tutorials (Flame D?) on how inert species is defined.
Code:
cd system 
for ifile in `ls`; do echo $ifile; grep -i inert $ifile; done
dlahaye is offline   Reply With Quote

Old   June 7, 2023, 07:13
Default Hi dlahaye
  #3
New Member
 
Marzin
Join Date: Oct 2022
Posts: 6
Rep Power: 4
Marzin is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
Suggest to check tutorials (Flame D?) on how inert species is defined.
Code:
cd system 
for ifile in `ls`; do echo $ifile; grep -i inert $ifile; done

Thank you for your reply,
I studied tutorials you mentioned, I also check the openfoam samples and write according those.But I still get this error that related to inert specie.
Marzin is offline   Reply With Quote

Old   June 7, 2023, 08:36
Default
  #4
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 798
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
No clue.

Is N2 present as one of the species you wish to transport?

Should all reference to N2 in the case set-up be removed?
dlahaye is offline   Reply With Quote

Old   June 7, 2023, 12:14
Default
  #5
New Member
 
Marzin
Join Date: Oct 2022
Posts: 6
Rep Power: 4
Marzin is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
No clue.

Is N2 present as one of the species you wish to transport?

Should all reference to N2 in the case set-up be removed?
Yes, N2 is one of the species that wish to transport. Actually I want to simulate the CO2 concentration as a biomarker of virous from infected person in a small office room. N2, H2O and O2 are considered as air combination. there is no chemical reaction.
Should I consider all three species as the inert specie or I should just consider air and CO2 in this simulation and consider air as the inert specie?
Marzin is offline   Reply With Quote

Old   June 7, 2023, 13:51
Default
  #6
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 798
Blog Entries: 1
Rep Power: 17
dlahaye is on a distinguished road
Do you have in constant/combustionProperties the combustion switched off and in constant/reactionProperties the reactions switched off?
dlahaye is offline   Reply With Quote

Old   June 7, 2023, 15:25
Default
  #7
New Member
 
Marzin
Join Date: Oct 2022
Posts: 6
Rep Power: 4
Marzin is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
Do you have in constant/combustionProperties the combustion switched off and in constant/reactionProperties the reactions switched off?
Yes, both combustion and reaction properties switched off.
Marzin is offline   Reply With Quote

Old   June 7, 2023, 16:51
Default
  #8
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,198
Rep Power: 27
Yann will become famous soon enough
Quote:
Originally Posted by Marzin View Post
Thank you for your reply,
I studied tutorials you mentioned, I also check the openfoam samples and write according those.But I still get this error that related to inert specie.
Hello,

Which tutorials have you studied?
I'm not a reactingFoam user but the syntax of your file seems pretty different from the syntax used in reactingFoam tutorials.

Yann
Yann is offline   Reply With Quote

Old   June 7, 2023, 17:19
Default
  #9
New Member
 
Marzin
Join Date: Oct 2022
Posts: 6
Rep Power: 4
Marzin is on a distinguished road
Quote:
Originally Posted by Yann View Post
Hello,

Which tutorials have you studied?
I'm not a reactingFoam user but the syntax of your file seems pretty different from the syntax used in reactingFoam tutorials.

Yann
Hello Yann,
Thank you for your reply.
Honestly, besides of some related papers I tried to check my model based on reacting foam sample of openfoam samples.
I would be very grateful if you could tell me the problem of this model or introduce me a good tutorial to read.
Bests,
Marzin is offline   Reply With Quote

Old   June 7, 2023, 18:17
Default
  #10
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,198
Rep Power: 27
Yann will become famous soon enough
It is important pay attention to the versions when looking for stuff online, as models and syntax may vary across the different OpenFOAM development branches and versions.

According to your error message, you seem to be using OpenFOAM-v2112, you can check the tutorials locally on your system: $FOAM_TUTORIALS/combustion/reactingFoam

Or online here: https://develop.openfoam.com/Develop...n/reactingFoam
Yann is offline   Reply With Quote

Reply

Tags
inert specie, reacting foam, species distribution


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
equationOfState icoTabulated error carl_r OpenFOAM Running, Solving & CFD 3 March 14, 2022 07:05
"Unknown psiThermo type" why not on the list?? mexicalense OpenFOAM Running, Solving & CFD 3 March 22, 2021 14:50
Transport models in reactingFoam kuria OpenFOAM Running, Solving & CFD 1 January 22, 2021 05:50
WLF from OF7 Pisolino85 OpenFOAM 2 April 26, 2020 07:34
compile of new combination of property in thermophisicalpropery milad653279 OpenFOAM Running, Solving & CFD 4 April 6, 2017 05:35


All times are GMT -4. The time now is 08:06.