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

Add new species in time directory

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 21, 2011, 15:15
Unhappy Add new species in time directory
  #1
New Member
 
Gunawan Aneva
Join Date: Mar 2011
Location: Indonesia
Posts: 10
Rep Power: 15
goen is on a distinguished road
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
goen is offline   Reply With Quote

Old   July 21, 2011, 18:56
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
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
mturcios777 is offline   Reply With Quote

Old   July 22, 2011, 14:14
Default
  #3
New Member
 
Gunawan Aneva
Join Date: Mar 2011
Location: Indonesia
Posts: 10
Rep Power: 15
goen is on a distinguished road
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
goen is offline   Reply With Quote

Old   July 22, 2011, 14:19
Default
  #4
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
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.
mturcios777 is offline   Reply With Quote

Old   July 22, 2011, 15:30
Default
  #5
New Member
 
Gunawan Aneva
Join Date: Mar 2011
Location: Indonesia
Posts: 10
Rep Power: 15
goen is on a distinguished road
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
goen is offline   Reply With Quote

Old   July 22, 2011, 15:48
Default
  #6
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
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...
mturcios777 is offline   Reply With Quote

Old   July 22, 2011, 22:41
Default
  #7
New Member
 
Gunawan Aneva
Join Date: Mar 2011
Location: Indonesia
Posts: 10
Rep Power: 15
goen is on a distinguished road
hi marco

I have added CH4 in the therm.dat. thanks for your answer. I will try to simulate it first.
goen is offline   Reply With Quote

Reply

Tags
dieselenginefoam


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
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


All times are GMT -4. The time now is 14:36.