|
[Sponsors] |
July 21, 2011, 15:15 |
Add new species in time directory
|
#1 |
New Member
Gunawan Aneva
Join Date: Mar 2011
Location: Indonesia
Posts: 10
Rep Power: 15 |
Hi everyone..
Pliss help me.. I want to do simulation with dieselEngineFoam. I want to add CH4 in time ( or in initial condition) directory. Probably, what should I do? What files should I change? If someone can help me, it would be great. Thanks Goen |
|
July 21, 2011, 18:56 |
|
#2 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
You will need to specify initial and boundary conditions for CH4 in the 0 directory (copy Ydefault to CH4 and modify it). Then you will need to ensure that your reaction mechanism included methane as a species (this will be in the chemkin directory; read the tutorials for reactingFoam to find out about reactions):
http://openfoamwiki.net/index.php/Tu..._firstTutorial |
|
July 22, 2011, 14:14 |
|
#3 |
New Member
Gunawan Aneva
Join Date: Mar 2011
Location: Indonesia
Posts: 10
Rep Power: 15 |
hi Marco.
Thanks for your answer. But I am still confused. I want to use two fuels. The first is c7h16 and second CH4. I want to put the CH4 in the combustion chamber as O2, N2 and others. I want to put in 0 directory. so it is not injected. What should I do? how to ensure that the correct reaction?. Thanks Goen |
|
July 22, 2011, 14:19 |
|
#4 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
To ensure the correct reaction, you need to add the reactions and species to the chem.inp and therm.dat files. There is a lot of documentation on the proper format for these files, and you will need to determine what kind of reaction mechanism you are going to use.
|
|
July 22, 2011, 15:30 |
|
#5 |
New Member
Gunawan Aneva
Join Date: Mar 2011
Location: Indonesia
Posts: 10
Rep Power: 15 |
Hi marco.
I have changed the file chem.inp and thermo.dat. how do you think about this: ELEMENTS H O C N AR END SPECIES C7H16 O2 N2 CO H2O O CO2 OH H H2 HO2 H2O2 N NO C CH4 END REACTIONS C7H16 + 11O2 => 7CO2 + 8H2O 1.00E+8 0.0 15780.0! 1 FORD / C7H16 0.25 / FORD / O2 1.5 / CH4 + 2O2 => CO2 + 2H2O 1.50E+13 0.0 39718.0! 1 FORD / CH4 0.5 / FORD / O2 1 / (file in chem.inp) is this correct? do I also need to change the thermophysicalProperties file?. then, what do you mean with: "you will need to determine what kind of reaction mechanism you are going to use." sorry, I am still confused Thanks you for your patience |
|
July 22, 2011, 15:48 |
|
#6 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
You've already decided which reaction mechanism you are using: single step. There are more complex ways that describe the reaction of methane with air that has intermediate reactions. You will need to make sure that the therm.dat has entries for the species that you have added (in this case, CH4).
This should be enough to get you started. Whether this is enough to get a correct solution is another matter that will take more effort to answer... |
|
July 22, 2011, 22:41 |
|
#7 |
New Member
Gunawan Aneva
Join Date: Mar 2011
Location: Indonesia
Posts: 10
Rep Power: 15 |
hi marco
I have added CH4 in the therm.dat. thanks for your answer. I will try to simulate it first. |
|
Tags |
dieselenginefoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 16:33 |
Orifice Plate with a fully developed flow - Problems with convergence | jonmec | OpenFOAM Running, Solving & CFD | 3 | July 28, 2011 06:24 |
Statically Compiling OpenFOAM Issues | herzfeldd | OpenFOAM Installation | 21 | January 6, 2009 10:38 |
Gerris software installation | mer | Main CFD Forum | 2 | November 12, 2005 09:50 |
unsteady calcs in FLUENT | Sanjay Padhiar | Main CFD Forum | 1 | March 31, 1999 13:32 |