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

DSMC & MD: adding gas species into dictionaries

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 13, 2013, 05:02
Post DSMC & MD: adding gas species into dictionaries
  #1
New Member
 
Cris
Join Date: Feb 2013
Posts: 4
Rep Power: 13
Schroedinger.Cat.AintHere is on a distinguished road
Dear all,

I am currently working on DSMC calculations using the dsmcFoam solver (OpenFoam 2.1.1). However, future simulations will consider atoms and/or molecules that may not be in the actual dictionaries.

Naïvely I have tried by just writing H2 together with its properties in the dsmcProperties file and by writing H2 in the dsmcInitialiseDict file. The result, the error attached at the end of this thread.

The question reads: how to add a new atom/molecule in the dictionaries?

So far I have done a deep endeavor to search between the particle.H, dictionary.H and IOdictionary.H files together with the IDLList< T > structure of the Cloud<ParticleType>; so far without success , any ideas/suggestions??? Is this the correct path to look it up or am I completely lost

Best regards,
Cris

----------------------------------------------------- Error ---------------------------------------------------------------

Initialising dsmc for Time = 0


--> FOAM Warning :
From function entry::getKeyword(keyType&, Istream&)
in file db/dictionary/entry/entryIO.C at line 77
Reading /home/cris/OpenFOAM/cris-2.1.1/run/discreteMethods/dsmcFoam/simulations/processor0/../constant/dsmcProperties
found on line 65 the punctuation token '{'
expected either } or EOF

Constructing constant properties for
H2
[0] [1]
[1]
[1] --> FOAM FATAL IO ERROR:
[1] keyword H2 is undefined in dictionary "IOstream::moleculeProperties"
[1]
[1] file: IOstream::moleculeProperties
[1]
[1] From function dictionary::subDict(const word& keyword)
[1] in file db/dictionary/dictionary.C at line [2]
[2]
[2] --> FOAM FATAL IO ERROR:
[2] keyword H2 is undefined in dictionary "IOstream::moleculeProperties"
[2]
[2] file: IOstream::moleculeProperties
[2]
[2] From function dictionary::subDict(const word& keyword)
[2] in file db/dictionary/dictionary.C at line 479.
[1]
FOAM parallel run exiting
Schroedinger.Cat.AintHere is offline   Reply With Quote

Old   August 13, 2013, 05:39
Default
  #2
Member
 
Join Date: Nov 2012
Posts: 58
Rep Power: 13
startingWithCFD is on a distinguished road
How about checking that warning first?

Quote:
found on line 65 the punctuation token '{'
expected either } or EOF
I believe it simply did not reach your definition of H2 because of an extra curly bracket.
startingWithCFD is offline   Reply With Quote

Old   August 13, 2013, 07:08
Thumbs up Typo found
  #3
New Member
 
Cris
Join Date: Feb 2013
Posts: 4
Rep Power: 13
Schroedinger.Cat.AintHere is on a distinguished road
Thanks startingWithCFD for your quick reply!

Indeed, I re-checked the files in both control/ and system/ folders. There was a typo in one of my files.

Now the DSMC case with the molecule H2 is running perfectly.

Problem solved .
Schroedinger.Cat.AintHere is offline   Reply With Quote

Reply

Tags
dsmc openfoam gas species


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
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Defining a species in the gas mixture JoshS. AVL FIRE 3 March 26, 2013 04:22
error message cuteapathy CFX 14 March 20, 2012 06:45
Constant velocity of the material Sas CFX 15 July 13, 2010 08:56
Gas pressure question Dan Moskal Main CFD Forum 0 October 24, 2002 22:02


All times are GMT -4. The time now is 08:35.