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

Problem with simpleFoam

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

Like Tree1Likes
  • 1 Post By lovecraft22

Reply
 
LinkBack Thread Tools Display Modes
Old   March 22, 2012, 14:19
Default Problem with simpleFoam
  #1
New Member
 
Aroua
Join Date: Mar 2012
Posts: 14
Rep Power: 4
appa is on a distinguished road
Hi,

I am learning how to use OpenFoam and I am really lost right now.

I created a 3D mesh file using gmesh (based on a scilab script to generate a geo file with NACA dat file).

I created a case directory under the simpleFoam airFoil2D directory, but after the simpleFoam command on a terminal I get this error .

PHP Code:
--> FOAM FATAL IO ERROR
keyword FrontAndBack is undefined in dictionary "/home/appa/Bureau/essaiOF/0/p::boundaryField"

file: /home/appa/Bureau/essaiOF/0/p::boundaryField from line 25 to line 40.

    From 
function dictionary::subDict(const wordkeyword) const
    
in file db/dictionary/dictionary.C at line 461.

FOAM exiting 
So I guess that the airFoil2D tutorial can not run my 3D example and I don't know how to it.

PHP Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    
version     2.0;
    
format      ascii;
    class       
volScalarField;
    
object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
    
inlet
    
{
        
type            freestreamPressure;
    }

    
outlet
    
{
        
type            freestreamPressure;
    }

    
wall
    
{
        
type            zeroGradient;
    }

    
frontAndBack
    
{
        
type            empty;
    }
}

// ************************************************************************* // 
I am not very good with C++ language so any hint would be helpful
thanks in advance
appa is offline   Reply With Quote

Old   March 22, 2012, 17:32
Default
  #2
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 431
Rep Power: 8
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
Hi;
the solver is looking for FrontAndBack and is not finding it in your pressure boundary condition because it states frontAndBack instead.

Always remember that openFoam is case sensitive so you need to change that to a capital initial word: FrontAndBack.
appa likes this.
__________________
I use PowerFLOW!
lovecraft22 is online now   Reply With Quote

Old   March 23, 2012, 03:45
Default
  #3
New Member
 
Aroua
Join Date: Mar 2012
Posts: 14
Rep Power: 4
appa is on a distinguished road
You're right !!thank you for this quick answer. In fact, I had to do some changes in the boundary file under the polyMesh directory to make the keywords match. I guess I have to learn how to make programs with C++ to be more efficient with OF.
appa is offline   Reply With Quote

Old   May 3, 2012, 03:45
Default
  #4
Member
 
anonymous
Join Date: Mar 2012
Posts: 45
Rep Power: 4
libia87 is on a distinguished road
I have the same error!!!

--> FOAM FATAL IO ERROR:
keyword s1 is undefined in dictionary "/home/xr12/Anna/buoyantBoussinesqSimpleFoam/hotRoom_20/0/p_rgh::boundaryField"

and my problem is not the capital leters, what could it be??
libia87 is offline   Reply With Quote

Old   May 3, 2012, 05:59
Default
  #5
New Member
 
Aroua
Join Date: Mar 2012
Posts: 14
Rep Power: 4
appa is on a distinguished road
you have to make sure that the keyword s1 is defined in all the files, here it seems that you didn't define it in the file "/home/xr12/Anna/buoyantBoussinesqSimpleFoam/hotRoom_20/0/p_rgh"
appa 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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Can I solve this problem by Fluent? Kai_kc FLUENT 1 October 27, 2010 05:29
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52


All times are GMT -4. The time now is 09:13.