|
[Sponsors] |
having trouble using reactingFoam with reactions turned off |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 16, 2011, 08:13 |
|
#21 |
Senior Member
Illya Shevchuk
Join Date: Aug 2009
Location: Darmstadt, Germany
Posts: 176
Rep Power: 17 |
third try...
|
|
June 21, 2011, 21:02 |
|
#22 |
New Member
Scot Johnson
Join Date: Mar 2011
Posts: 25
Rep Power: 15 |
Hi Valerio-
What's the latest on the multispecies diffusion libraries you were working on (Fick model, Maxwell-Stefan, etc)? Anything released yet? This would be helpful! With so many solvers in openFoam, it seems there's not enough attention given to chemistry and more is always welcome. Thank you and best wishes, Scot |
|
June 29, 2011, 16:44 |
|
#23 |
New Member
Valerio Novaresio
Join Date: Mar 2009
Location: Polonghera, Cuneo, Italy
Posts: 27
Rep Power: 17 |
Hi Scot,
have a look on http://www.extend-project.de/user-gr...ewgroup/groups Send me an e-mail and I can send you the code. Regards Valerio
__________________
...The best way to acquire new knowledge is to share it... |
|
September 7, 2011, 20:15 |
|
#24 | |
New Member
Sunny Karnani
Join Date: Apr 2010
Posts: 22
Rep Power: 16 |
Quote:
|
||
April 6, 2012, 17:23 |
|
#25 |
New Member
Mostafa Moghaddami
Join Date: Oct 2009
Posts: 13
Rep Power: 17 |
Dear All
I am going to run a case includes some liquid species that react with each other. I am going to use the reactingFoam as a solver (OF 2.0.1). All species have constant proprties and I want to use the following thermo type: thermoType hsPsiThermo<reactingMixture<constTransport<specieT hermo<eConstThermo<icoPolynomial>>>>>> but when I set it in the constat/thermophysicalProperties file and run the case, I get this error: ------------------------------------------------------------------------------------ --> FOAM FATAL ERROR: Inconsistent thermo package selected: hsPsiThermo<reactingMixture<constTransport<specieT hermo<eConstThermo<icoPolynomial>>>>>> Please select a thermo package based on gasThermoPhysics. Valid options include: 3 ( hsPsiMixtureThermo<singleStepReactingMixture<gasTh ermoPhysics>> hsPsiMixtureThermo<multiComponentMixture<gasThermo Physics>> hsPsiMixtureThermo<reactingMixture<gasThermoPhysic s>> ) From function autoPtr<hsCombustionThermo> hsCombustionThermo::NewType(const fvMesh&, const word&) in file combustionThermo/hsCombustionThermo/hsCombustionThermoNew.C at line 116. FOAM exiting ------------------------------------------------------------------------------------- What should I do to use the reactingFoam for constant propertie species? Thanks in advance for your help. |
|
September 3, 2013, 22:26 |
|
#26 |
Member
赵庆良
Join Date: Aug 2013
Posts: 56
Rep Power: 13 |
Hi nakul:
would you tell me what "chemistrySh" represents in hEqn.H in reactingFoam?Please!Is there any theroy can corresponding to the term "chemistrySh"? |
|
September 4, 2013, 09:53 |
|
#27 |
Senior Member
Nakul
Join Date: Apr 2010
Location: India
Posts: 147
Rep Power: 16 |
Hi
'chemistrySh' is the conventional 'chemistry source term' of your energy equation. you can see its definition in createFields.H -Nakul |
|
September 4, 2013, 10:21 |
|
#28 |
Member
赵庆良
Join Date: Aug 2013
Posts: 56
Rep Power: 13 |
thanks,nakul,I find the define of chemistrySh in the chemisty.H,the following is codes:
if (chemistry.chemistry()) { Info<< "Solving chemistry" << endl; chemistry.solve ( runTime.value() - runTime.deltaTValue(), runTime.deltaTValue() ); // turbulent time scale if (turbulentReaction) { tmp<volScalarField> tepsilon(turbulence->epsilon()); const volScalarField& epsilon = tepsilon(); tmp<volScalarField> tmuEff(turbulence->muEff()); const volScalarField& muEff = tmuEff(); tmp<volScalarField> ttc(chemistry.tc()); const volScalarField& tc = ttc(); forAll(epsilon, i) { if (epsilon[i] > 0) { // Chalmers PaSR model scalar tk = Cmix.value()*Foam::sqrt(muEff[i]/rho[i]/epsilon[i]); kappa[i] = (runTime.deltaTValue() + tc[i]) /(runTime.deltaTValue() + tc[i] + tk); } else { // Return to laminar combustion kappa[i] = 1.0; } } } else { kappa = 1.0; } chemistrySh = kappa*chemistry.Sh()(); } But I really don not know what formula expression can corresponding to the term "chemistrySh",would you tell me its formula expression about the term?Or if you have some paper about the term ,could you let me take look?please! |
|
September 5, 2013, 04:13 |
|
#29 |
Senior Member
Nakul
Join Date: Apr 2010
Location: India
Posts: 147
Rep Power: 16 |
Hi
Read this paper - http://powerlab.fsb.hr/ped/kturbo/Op...olmPhD2008.pdf It has details on how reaction source term is modeled in OF. As I said in previous post, chemistrySH is chemical source term multiplied by a factor 'kappa'. kappa takes into account the effect of turbulence. It is so because reactingFoam solves chemistry based upon turbulence of the flow. The philosophy is similar to Eddy Dissipation but formulation is different. |
|
September 5, 2013, 04:20 |
|
#30 |
Member
赵庆良
Join Date: Aug 2013
Posts: 56
Rep Power: 13 |
Thank you,nakul!It is kind of you!
|
|
September 8, 2013, 12:36 |
|
#31 |
Member
Gregor Olenik
Join Date: Jun 2009
Location: http://greole.github.io/
Posts: 89
Rep Power: 17 |
Hi guys,
would you mind running my enthalpy diffusion test case (https://github.com/greole/ValidationCases and http://www.cfd-online.com/Forums/openfoam/123227-enthalpy-diffusion-testcase.htm) with your reactingFoam version to see if the mean enthalpy ist conserved ? Help would be much apprechiated |
|
September 11, 2013, 09:39 |
help regarding reactionFoam solver .
|
#32 |
Member
sonu
Join Date: Jul 2013
Location: delhi
Posts: 92
Rep Power: 13 |
greeting oll ,
i am relatively new to OF. nowadays i am trying to simulate my case of different species with the reactingFoam solver and m using openFoam 2.2-x . fist i solved the tutorial of counterFlow Flame after that nw i tried to run my case . but i am not able to understand what to write in place of bold marked text in thermophysical properties file shown below : Code:
FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object thermophysicalProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // thermoType { type hePsiThermo; mixture reactingMixture; transport sutherland; thermo janaf; energy sensibleEnthalpy; equationOfState perfectGas; specie specie; } chemistryReader foamChemistryReader; foamChemistryFile "$FOAM_CASE/constant/reactions"; foamChemistryThermoFile "$FOAM_CASE/constant/thermo.compressibleGas"; PHP Code:
Regards , sonu . |
|
September 11, 2013, 13:34 |
|
#33 |
Senior Member
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 16 |
Nothing. "$FOAM_CASE" should be resolved by the solver at runtime.
|
|
September 11, 2013, 14:27 |
|
#34 |
Member
sonu
Join Date: Jul 2013
Location: delhi
Posts: 92
Rep Power: 13 |
greeting adhiraj ,
thanks for replying . sori but can you elaborate a bit more i am not getting what you want to say . |
|
September 11, 2013, 15:48 |
|
#35 |
Senior Member
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 16 |
What I meant was that if you have the phrase "$FOAM_CASE" in the file, during running, the solver will be able to resolve the path. You do not need to explicitly put in your case directory name.
|
|
September 11, 2013, 16:16 |
|
#36 |
Member
sonu
Join Date: Jul 2013
Location: delhi
Posts: 92
Rep Power: 13 |
thanks adhiraj for quick replying .
but if i keep it as it is means "$FOAM_CASE" then it will end in big error of print stack and if i change it like i said above then again end up with diffrent error . one more doubt i am using OF 2.2-X. so there in constant folder we are having reaction and thermo. file so do we need to separately keep chemkin folder alone with our case files . thanks again , Regards , sonu |
|
September 12, 2013, 07:30 |
|
#37 |
Senior Member
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 16 |
What error do you get when you retain "$FOAM_CASE/..." ?
Can you post the error message in its entirety? |
|
September 12, 2013, 07:47 |
|
#38 |
Member
sonu
Join Date: Jul 2013
Location: delhi
Posts: 92
Rep Power: 13 |
Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 Reading g Creating reaction model Selecting combustion model PaSR<psiChemistryCombustion> Selecting chemistry type { chemistrySolver ode; chemistryThermo psi; } Selecting thermodynamics package { type hePsiThermo; mixture reactingMixture; transport sutherland; thermo janaf; energy sensibleEnthalpy; equationOfState perfectGas; specie specie; } Selecting chemistryReader foamChemistryReader #0 Foam::error::printStack(Foam::Ostream&) at ??:? #1 Foam::sigFpe::sigHandler(int) at ??:? #2 in "/lib/x86_64-linux-gnu/libc.so.6" #3 Foam::fvPatchField<double>::operator/=(Foam::fvPatchField<double> const&) at ??:? #4 Foam::FieldField<Foam::fvPatchField, double>::operator/=(Foam::FieldField<Foam::fvPatchField, double> const&) at ??:? #5 Foam::multiComponentMixture<Foam::sutherlandTransport<Foam::species::thermo<Foam::janafThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > >::correctMassFractions() at ??:? #6 Foam::multiComponentMixture<Foam::sutherlandTransport<Foam::species::thermo<Foam::janafThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > >::multiComponentMixture(Foam::dictionary const&, Foam::List<Foam::word> const&, Foam::HashPtrTable<Foam::sutherlandTransport<Foam::species::thermo<Foam::janafThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> >, Foam::word, Foam::string::hash> const&, Foam::fvMesh const&) at ??:? #7 Foam::reactingMixture<Foam::sutherlandTransport<Foam::species::thermo<Foam::janafThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > >::reactingMixture(Foam::dictionary const&, Foam::fvMesh const&) at ??:? #8 Foam::SpecieMixture<Foam::reactingMixture<Foam::sutherlandTransport<Foam::species::thermo<Foam::janafThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > > >::SpecieMixture(Foam::dictionary const&, Foam::fvMesh const&) at ??:? #9 Foam::heThermo<Foam::psiReactionThermo, Foam::SpecieMixture<Foam::reactingMixture<Foam::sutherlandTransport<Foam::species::thermo<Foam::janafThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > > > >::heThermo(Foam::fvMesh const&, Foam::word const&) at ??:? #10 Foam::hePsiThermo<Foam::psiReactionThermo, Foam::SpecieMixture<Foam::reactingMixture<Foam::sutherlandTransport<Foam::species::thermo<Foam::janafThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > > > >::hePsiThermo(Foam::fvMesh const&, Foam::word const&) at ??:? #11 Foam::psiReactionThermo::addfvMeshConstructorToTable<Foam::hePsiThermo<Foam::psiReactionThermo, Foam::SpecieMixture<Foam::reactingMixture<Foam::sutherlandTransport<Foam::species::thermo<Foam::janafThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > > > > >::New(Foam::fvMesh const&, Foam::word const&) at ??:? #12 Foam::autoPtr<Foam::psiReactionThermo> Foam::basicThermo::New<Foam::psiReactionThermo>(Foam::fvMesh const&, Foam::word const&) at ??:? #13 Foam::psiReactionThermo::New(Foam::fvMesh const&, Foam::word const&) at ??:? #14 Foam::psiChemistryModel::psiChemistryModel(Foam::fvMesh const&) at ??:? #15 Foam::chemistryModel<Foam::psiChemistryModel, Foam::sutherlandTransport<Foam::species::thermo<Foam::janafThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > >::chemistryModel(Foam::fvMesh const&) at ??:? #16 Foam::ode<Foam::chemistryModel<Foam::psiChemistryModel, Foam::sutherlandTransport<Foam::species::thermo<Foam::janafThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > > >::ode(Foam::fvMesh const&) at ??:? #17 Foam::psiChemistryModel::addfvMeshConstructorToTable<Foam::ode<Foam::chemistryModel<Foam::psiChemistryModel, Foam::sutherlandTransport<Foam::species::thermo<Foam::janafThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleEnthalpy> > > > >::New(Foam::fvMesh const&) at ??:? #18 Foam::autoPtr<Foam::psiChemistryModel> Foam::basicChemistryModel::New<Foam::psiChemistryModel>(Foam::fvMesh const&) at ??:? #19 Foam::psiChemistryModel::New(Foam::fvMesh const&) at ??:? #20 Foam::combustionModels::psiChemistryCombustion::psiChemistryCombustion(Foam::word const&, Foam::fvMesh const&) at ??:? #21 Foam::combustionModels::PaSR<Foam::combustionModels::psiChemistryCombustion>::PaSR(Foam::word const&, Foam::fvMesh const&) at ??:? #22 Foam::combustionModels::psiCombustionModel::adddictionaryConstructorToTable<Foam::combustionModels::PaSR<Foam::combustionModels::psiChemistryCombustion> >::New(Foam::word const&, Foam::fvMesh const&) at ??:? #23 Foam::combustionModels::psiCombustionModel::New(Foam::fvMesh const&) at ??:? #24 at ??:? #25 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #26 at ??:? Floating point exception (core dumped) |
|
September 12, 2013, 08:00 |
|
#39 |
Member
sonu
Join Date: Jul 2013
Location: delhi
Posts: 92
Rep Power: 13 |
Greeting adhiraj ,
The above posted error comes if i retain it as it is and i dont have any idea what kind of error it is . if i run the tutorial of counterflowflame2D there its working fine . i am attaching my constant folder . please have a look and guide me . thank you . Regards , sonu |
|
September 14, 2013, 13:07 |
|
#40 |
Member
sonu
Join Date: Jul 2013
Location: delhi
Posts: 92
Rep Power: 13 |
greeting oll ,
Above error is solved its just bcz of the wrong BC's , nw my case is running but there is no combustion ( combustion is on ) . The BC's for temp for fuel inlet is 300 k and air inlet is 500 k . but in this case there combustion is not happening why ? also if i try to change the BC's to some higher temperature like 600 k then following error is coming : PHP Code:
Thanks , Regard sonu . |
|
Tags |
hseqn, reactingfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PaSR + infinite reaction rate in reactingFoam --> no reactions occurring | tatu | OpenFOAM Running, Solving & CFD | 3 | June 2, 2024 11:04 |
ReactingFoam with surface reactions | robert_mornhinweg | OpenFOAM Running, Solving & CFD | 9 | April 18, 2018 12:20 |
No reactions in reactingFoam 2.1 | OMN | OpenFOAM Running, Solving & CFD | 16 | April 7, 2015 13:14 |
reactingFoam wedge handling wrong U | dhondupant | OpenFOAM Bugs | 1 | December 9, 2010 08:34 |
ReactingFoam without reactions | lasb | OpenFOAM Running, Solving & CFD | 5 | June 10, 2008 09:50 |