CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[mesh manipulation] Problem with simpleFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By lovecraft22

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2012, 13:19
Default Problem with simpleFoam
  #1
New Member
 
Aroua
Join Date: Mar 2012
Posts: 14
Rep Power: 14
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, 16:32
Default
  #2
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 460
Rep Power: 18
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.
lovecraft22 is offline   Reply With Quote

Old   March 23, 2012, 02:45
Default
  #3
New Member
 
Aroua
Join Date: Mar 2012
Posts: 14
Rep Power: 14
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: 14
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: 14
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


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
problem w/ running simpleFoam in parallel mazdak OpenFOAM Running, Solving & CFD 27 December 8, 2023 03:10
Problem With using snappyhexmesh and getting simplefoam to work. Ivanj56 OpenFOAM Running, Solving & CFD 0 March 22, 2016 06:20
Problem to run simpleFoam using qsub? be_inspired OpenFOAM 1 December 22, 2015 12:53
Convergence Problem simpleFoam with reaction unicat OpenFOAM Running, Solving & CFD 1 September 29, 2015 10:03
Problem in running simpleFoam tutorial Lana OpenFOAM Running, Solving & CFD 1 April 10, 2013 11:08


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