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

Error in reactingFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 11, 2015, 22:24
Default Error in reactingFoam
  #1
New Member
 
Join Date: Jul 2013
Posts: 9
Rep Power: 12
okstatecheme is on a distinguished road
I'm trying to run a species tracking simulation using reactingFoam with noComubustion reaction model. My thermophysicalProperties dictionary appears to be correct but I keep getting this error:

Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.3.1-bcfaaa7b8660
Exec   : reactingFoam
Date   : Jan 11 2015
Time   : 21:17:45
Host   : "brett-ubuntu"
PID    : 6271
Case   : /home/brett/Desktop/stack2
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


Reading g
Creating reaction model

Selecting combustion model noCombustion<psiThermoCombustion>


--> FOAM FATAL IO ERROR: 
"ill defined primitiveEntry starting at keyword 'mu' on line 55 and ending at line 55"

file: /home/brett/Desktop/stack2/constant/thermophysicalProperties at line 55.

    From function primitiveEntry::readEntry(const dictionary&, Istream&)
    in file lnInclude/IOerror.C at line 132.

FOAM exiting

brett@brett-ubuntu:~/Desktop/stack2$
Any ideas on what is going on? Attached is the thermophysicalProperties dict.

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.3.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "constant";
    object      thermophysicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

thermoType
{
    type            hePsiThermo;
    mixture         multiComponentMixture;
    transport       const;
    thermo          hConst;
    energy          sensibleInternalEnergy;
    equationOfState perfectGas;
    specie          specie;
}

species 
(
    N2
    O2
    CO2
    H2S
    CH4
    H2O
);

inertSpecie        ;

O2
{
    specie
    {
        nMoles          1;
        molWeight       31.9988;
    }
    thermodynamics
    {
        Cp             918;
    Hf        0;
    }
    transport
    {
        mu              2.02-05;
        Pr              0.7;
    }
}

H2O
{
    specie
    {
        nMoles          1;
        molWeight       18.0153;
    }
    thermodynamics
    {
        Cp        3985;
    Hf        0;
    }
    transport
    {
        mu              1.8-05;
        Pr              0.7;
    }
}

CH4
{
    specie
    {
        nMoles          1;
        molWeight       16.0428;
    }
    thermodynamics
    {
        Cp        1000;
    Hf        0;
    }
    transport
    {
        mu              1.8-05;
        Pr              0.7;
    }
}

CO2
{
    specie
    {
        nMoles          1;
        molWeight       44.01;
    }
    thermodynamics
    {
        Cp             3640;
    Hf        0;
    }
    transport
    {
        mu              1.48-05;
        Pr              0.7;
    }
}

N2
{
    specie
    {
        nMoles          1;
        molWeight       28.0134;
    }
    thermodynamics
    {
        Cp        1040;
    Hf        0;
    }
    transport
    {
        mu              1.75-05;
        Pr              0.7;
    }
}

H2S
{
    specie
    {
        nMoles          1;
        molWeight       34.0758;
    }
    thermodynamics
    {
        Cp        1176;
    Hf        0;
    }
    transport
    {
        mu              1.13-05;
        Pr              0.7;
    }
}


// ************************************************************************* //
Attached Files
File Type: txt thermophysicalProperties.txt (2.6 KB, 10 views)
okstatecheme is offline   Reply With Quote

Old   January 12, 2015, 06:47
Default Entries for mu
  #2
Senior Member
 
Bernhard Linseisen
Join Date: May 2010
Location: Heilbronn
Posts: 183
Blog Entries: 1
Rep Power: 16
Linse is on a distinguished road
I guess the problem will be solved by simply adding an "e" to the entries for mu, e.g. "2.02e-05" instead of "2.02-05".

Probably you are even lucky you did not have mu-values above 5e-05, otherwise you would have received results of a completely non-physical nature. ;-)

Cheers,
Bernhard
Linse is offline   Reply With Quote

Old   January 13, 2015, 08:22
Default
  #3
New Member
 
Yu-sen Niu
Join Date: Nov 2014
Posts: 16
Rep Power: 11
shenzhou1987 is on a distinguished road
Hi, Do you solve your problem? I'm simulating free jet flow of a nozzle which contains two species, gas and air. There is no reaction between these two species. So can you tell me how to turn off combustion model and reaction model using reactingFoam? Hope for your reply. Thank you.
shenzhou1987 is offline   Reply With Quote

Old   January 13, 2015, 08:54
Default
  #4
Senior Member
 
Bernhard Linseisen
Join Date: May 2010
Location: Heilbronn
Posts: 183
Blog Entries: 1
Rep Power: 16
Linse is on a distinguished road
Dear Shenzhou,

In future, for keeping the threads more comprehensible/logical AND for receiving results quicker, please
1.) Run a search via the search function of the forum. Many questions already are asked at some other place, and sometimes even I am astonished about the detail of some questions already asked elsewhere.
2.) If your question is not yet solved in a thread, please open a new thread with a descriptive headline, such as "Switching off reactions in reactingFoam". Then you do not have to hijack another thread which might or might not be solved yet. Readers looking for a solution for the problem specified in the thread title will be grateful! ;-)

Concerning your question: The first post in http://www.cfd-online.com/Forums/ope...urned-off.html (found by searching for "reactingFoam") already in the entry post provides the question to your answer.

Cheers,
Bernhard


PS: Please do not feel offended by 1.) and 2.), yours just was the 5th post hijacking a thread I read today...
Linse is offline   Reply With Quote

Old   January 13, 2015, 21:37
Default
  #5
New Member
 
Join Date: Jul 2013
Posts: 9
Rep Power: 12
okstatecheme is on a distinguished road
Thank you Bernhard! I can't believe I missed that.
okstatecheme is offline   Reply With Quote

Old   January 14, 2015, 08:26
Default
  #6
Senior Member
 
Bernhard Linseisen
Join Date: May 2010
Location: Heilbronn
Posts: 183
Blog Entries: 1
Rep Power: 16
Linse is on a distinguished road
Well, in recent years I have grown pedantic about spelling and such things... ;-)
Cheers,
Bernhard
Linse is offline   Reply With Quote

Reply

Tags
reactingfoam


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
calculate flame speed using reactingFoam IColin OpenFOAM Running, Solving & CFD 0 February 4, 2014 15:14
reactingFoam crashing rishibigghe OpenFOAM Running, Solving & CFD 0 June 14, 2011 17:50
Constant Volume Combustion with reactingFoam Alish1984 OpenFOAM Running, Solving & CFD 2 May 8, 2011 08:51
reactingFoam wedge handling wrong U dhondupant OpenFOAM Bugs 1 December 9, 2010 07:34
reactingFoam - turbulent reacting flow hamburgFoam OpenFOAM 0 December 7, 2009 12:57


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