How to switch off combustion and reaction in reactingFoam
Hi, everyone. I'm using OpenFOAM 2.3.0 to simulate the jet flow of a nozzle which contains two species, gas and air. I just want to study the process of jet gas mixing into the air without combustion and reaction. After reading the User Guide, I think reactingFoam could be a suitalbe solver for my case. And I have read some threads in the forum which mentioned this problem, some one said combustion and reaction model can be switched off in reactingFoam. But there is no details about how to switch off combustion and reaction in reactingFoam. I open the tutorial case "counterFlowFlame2D", in folder "constant" I copy file chemistryProperties, combustionProperties and thermophysicalProperties to my case folder and modify them. Then I execute "reactingFoam" command. Some errors are reported as blow and the relation files are attached. Can anybody tell me what's wrong with my case files? Thank you!
Error: Code:
/*---------------------------------------------------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
For the moment I cannot see any error concerning the reaction-switchoff. I would have chosen the same settings.
It seems the error is within your thermophysicalProperties-file, as the error message says. The only thing I see: Does it really have to be "inertSpecies"? In my files it is without the final "s", but then it is rhoReactingBuoyantFoam, which MIGHT be slightly different in the settings... |
Quote:
|
I change multiComponentMixture to reactingMixture, modify file 'thermophysicalProperties' according to tutorial case 'counterFlowFlame2D', and add file 'reactions' and 'thermo.compressilbeGas'. Now the good news is it works and gives me some results, the bad news is after 5~10 time steps it falls to divergence. The error message "Floating point exception" is reported.:( A good gain takes long pain, right? Maybe the inital total pressure of the inlet boundary is too high(18Mpa). So I will set a lower value and use rhoReactingFoam, and try again~ Hope it works. If I success, I will upload my case in this thread.
|
Quote:
I have the similar problem with you. I don't need reactions in reactingFoam, just consider the density difference into consideration. I have propane and air. And I switched off the chemistry and combustion, turbulentreaction at the same time. But my simulation crashed after 400 time steps. The courant number increases to quite a high value. When I switch on the turbulentreaction, it is the same situation. Did you figure out what exactly happened with your case? Maybe it will also help with my case. Best Regards Litchy |
Hi,
Did you try a smaller time step like 1e-3 or 1e-4? With a small time step, I have succeeded in simulating a multi-species problem without reactions using reactingFoam. Regards, Yan Quote:
|
[QUOTE=wayne14;577977]
Hi, Yan I have the same problem. I hope you can help me. MY QQ number 274795506. THX very much if any help from you.. Regards, liping_he |
Hi everyone,
I'm also trying to use reactingFoam without reaction. I try to adapt my case from the counterFlowFlame2D example. The thing is, I'm questioning on several points: FIRST : In the thermophysicalProperties the keyword used for mixture is reactingmixture. Do I have to change it ? SECOND : The turbulenceporperties file is set with the keyword laminar. I would like to simulate turbulence, can I change it to the kEpsilon ? (or reanctingFoam isn't able to handle it ?...) |
Quote:
From my experience, reactingmixture is ok. The inheritance process is: reactingMixture <- multiComponentMixture <- basicSpecieMixture <- basicMultiComponentMixture reactingMixture should be able to do the things multiComponentMixture do. If you want turbulence, use the following: simulationType RAS; RAS { RASModel kEpsilon; turbulence on; printCoeffs on; } Correct me if anything wrong. Regards, Yan |
Thanks for your answer wayne14.
I'll try to run reactingFoam with reactingMixture. As everyone who's using reactingFoam without combustion I guess, I want to see the flow of some different gases. One of my gas is the air. Here is other questions. FIRST: Are they other solutions to define air that the one consisting in defining the rate of N2 and O2 ? I mean, is it possible to define instead a gaz "air" ? (and how if it's possible...) // EDIT : ... I know that it should be possible with multicomponent as shenzhou1987 tried to do (on the beginning of this topic) but I don't know if it was a success or not finally... (That's why I was wondering about using multicomponentMixture instead of reactingMixture) SECOND: What are the files Ydefault and alphat corresponding to in the 0 folder ? I can't explain myself what is the physical correspondence... |
1 Attachment(s)
Hi all,
I've been able to run reactingFoam turning off combustion (and with kEpsilon model turbulence). I join my files in case of it can help someone but remember that I have no experience in CFD and less in OpenFoam. So maybe that it's full of mistake... All I guarantee is that the solver is running without fatal error, so help yourself and adapt it to your case properly. For the beginner as I am, be brave, then, if you wanna try my case you will have to run successively:
Adrien |
Hi Adrien,
I was doing some reading about reactingFoam without the use of combustion nor reacting and came across this useful link. I compared the settings I did to yours. Mainly, the only difference I see is in the combustionModel where you used PaSR, I used noCombustion (not sure what are this as I am also new to OF) What are the difference between the two? Since we are dealing with no combustion, naturely i selected that. But i got the error as below: Code:
Selecting chemistryReader foamChemistryReader |
Hi BakedAlmonds,
Unfortunately I don't know the difference between PaSR and noCombustion (placeholder or not ? in the extend that we turned off combustion...). Someone who is used to look into the source code would be better for answering you. Sorry, but if you succeed in running you're case with "noCombustion" let me know. Best regards, Adrien |
Hello everyone,
I'm encountering your same difficulties in the implementation my case. Basically I need to study a jet involving air and a different gas, without any reaction or combustion involved (OF 4.x). I'm now working on the tutorial, trying to switch of reactions and turn on the turbulence, but I'm not sure of my results. Did you manage to develop a good solver for this kind of simulation? Any help would be really useful, since I'm not experienced in OF and completely new to multi species problems. Thanks Anrdea |
Quote:
Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
species Code:
/*--------------------------------*- C++ -*----------------------------------*\ |
Dear Kirk,
many thanks for your reply, I used a similar set up and it run (and the solution seems realistic). I have another question, again related to the use of reactingFoam. I want to run a low-mach simulation and making comparison with the standard one. Do you have any suggestions? Initially I thought that using the incompressiblePerfectGas law as State equation was fine, but apparently I cannot use it with this setup for the thermophysicalProperties file: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 4.x | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object thermophysicalProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // thermoType { type heRhoThermo; mixture reactingMixture; transport const; thermo hConst; energy sensibleEnthalpy; equationOfState incompressiblePerfectGas; specie specie; } On top of that, I read that other mods to the solver's code must be applied. Do you have any advices to turn reactingFoam in a Low-Mach solver instead of running it compressible? Thanks! Andrea |
Quote:
for switching the chemistry off, additional to sellecting off for chemistry, you need to change the reaction mechanism. E.g. You should put zero for activation energy and B, also you should not consider chemical reactions in the mechanism which means that the reactants and products should be the same. Regards, Richard |
All times are GMT -4. The time now is 05:03. |