|
[Sponsors] |
DSMC & MD: adding gas species into dictionaries |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 13, 2013, 05:02 |
DSMC & MD: adding gas species into dictionaries
|
#1 |
New Member
Cris
Join Date: Feb 2013
Posts: 4
Rep Power: 13 |
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 |
|
August 13, 2013, 05:39 |
|
#2 | |
Member
Join Date: Nov 2012
Posts: 58
Rep Power: 13 |
How about checking that warning first?
Quote:
|
||
August 13, 2013, 07:08 |
Typo found
|
#3 |
New Member
Cris
Join Date: Feb 2013
Posts: 4
Rep Power: 13 |
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 . |
|
Tags |
dsmc openfoam gas species |
|
|
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 |