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

C8H18 implement into dieselFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 13, 2009, 15:58
Default C8H18 implement into dieselFoam
  #1
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 7
Peter_600 is on a distinguished road
Hi!

I have a problem with the implementation of C8H18 into my case.
I 'd like to inject C8H18 into my engine. I am using the same chem.inp therm.dat files as in the dieselFoam tutorial.

I added C8H18 into the chem.inp file and did all necessary changes to the other scripts, like in the tutorial.

I don t succeed to run the case, with that fuel composition.

Why does it work, with a composition of C7H16- C6H14, like in the tutorial ,but not with C7H16 -C8H18.

... this is the message of OpenFOAM


C8H18 not found in table. Valid entries:
820
(
CL3SISICL
A2C2HB*
SIF3NH2
...
...
...
OCHNNHO
S-TRIAZINE
NAO-
)

From function HashTable<T, Key, Hash>:perator[](const Key&) const
in file /home/peter/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude/HashTableI.H at line 128.

FOAM exiting


I appreciate any help!

Peter
Peter_600 is offline   Reply With Quote

Old   December 13, 2009, 22:45
Default
  #2
Senior Member
 
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Linköping
Posts: 252
Rep Power: 12
kalle is on a distinguished road
Hi Peter!

The problem is likely that C8H18 is not included in your thermo file. You'll need an entry there for each species in your composition. Which reaction mechanism do you use? Sometimes the provider of the mechanism will also provide thermodynamic data. At least they should state which data they used. A bit of googling should help you to find the required data.

Good luck
Kalle
kalle is offline   Reply With Quote

Old   December 14, 2009, 11:06
Default
  #3
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 7
Peter_600 is on a distinguished road
Hi Kalle!

Thx for the quick replay.

In ur opinion, I just need a valid entry of C8H18 in my therm.dat.

I already tried it, but just by stupid replacing of a specie by C8H18 ( of course it doesn t make physicaly sense, but it should work. Or I am wrong?

I tried different kind of settings but nothing worked.

I am using the chem.inp and therm.dat file from the tutorial dieselFoam.
The one equation reaction mechanism with C7H16 and by adding a second liquid (C8H18). Its similar to the the tutorial settings, but instead of using C6H14 as second liquid, I try to use C8H18.


thx in advance

Peter
Peter_600 is offline   Reply With Quote

Old   December 14, 2009, 11:50
Default
  #4
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 19
niklas will become famous soon enough
can you attach the non-working case
niklas is offline   Reply With Quote

Old   December 14, 2009, 13:10
Default
  #5
Senior Member
 
Join Date: Oct 2009
Posts: 136
Rep Power: 7
Peter_600 is on a distinguished road
Hi Niklas,

I solved my problem by myself. It was a stupid mistake.

I referred all the time to a wrong therm.dat file.
The path in the thermophysicalProperties file for the therm.dat was

CHEMKINThermoFile "~OpenFOAM/thermoData/therm.dat";

I just changed it to

CHEMKINThermoFile "$FOAM_CASE/chemkin/therm.dat";

Where i actually did my changes according to the therm.dat.

Now, I will try to use the real chem.inp file with the corresponding therm.dat.

Thank u anyway for offering ur help.
I appreciate it.

Best regards
Peter
Peter_600 is offline   Reply With Quote

Old   July 1, 2011, 07:16
Default Implement new liquid
  #6
New Member
 
Vitaly
Join Date: Sep 2010
Posts: 6
Rep Power: 6
vitvit is on a distinguished road
Hi,
I searched the web for simple steps for adding new liquid to OF without any luck.
I know all the polynomial coefficients and I have the files ready, I just don't know how to compile them - a stupid problem, I know..
can anyone help me?
a simple example step by step on one of the liquids in OF would be nice.. say rename H2O to WATER and compile it. many thanks!!
vitvit is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
injector model in dieselFoam leejc OpenFOAM 7 June 1, 2014 05:13
dieselFoam: how to implement thermo for liquid/gas continuous phase natrask OpenFOAM Running, Solving & CFD 1 July 16, 2009 05:37
axi-symmetric mesh of dieselFoam az1362f OpenFOAM Running, Solving & CFD 2 June 27, 2009 11:32
gasoline spray simulation using dieselFoam qhdgj OpenFOAM 8 June 25, 2009 15:51
DieselFoam does not restart from latestTime lord_kossity OpenFOAM Bugs 8 February 21, 2009 14:54


All times are GMT -4. The time now is 16:33.