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

Need some help getting the engineFoam demo to work

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2011, 01:34
Default Need some help getting the engineFoam demo to work
  #1
New Member
 
Benjamin Wigg
Join Date: Jul 2011
Posts: 2
Rep Power: 0
MrDomino is on a distinguished road
I'm really new to openFoam and CFD in general although I had a CFD course a few years ago and we did a lot with Fluent so I'm picking things up pretty quickly.

Anyways, I'm trying to get the engineFoam tutorial to work since I'm most interested in using OF to do some engine simulations. If you have any additional info on engineFoam then I'd appreciate it if you would share it with me. Also, does anyone know work is being done to add emissions predictions to engineFoam? I read that someone was working on it but that was a few years ago so I'm wondering what the current status of that is.

On to the problem that I'm having. I loaded up the program (I'm using OF 1.7.0 for Win32 as you can see) and am having problems getting mesh to build. I'm relatively new to OF so I'm not sure what to do. Any help would be much appreciated.

Here's what the program said:

B:\Program Files\OpenFOAM-1.7.0\OpenFOAM\USRNAME-1.7.0\tutorials\combustion\engineFoam\kivaTest>blo ckMesh

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7.0 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
/* Windows 32 and 64 bit porting by blueCAPE: http://www.bluecape.com.pt *\
| Based on Windows porting (1.6.x v11) by Symscape: http://www.symscape.com |
\*---------------------------------------------------------------------------*/
Build : 1.7.0-21131bcbd876
Exec : blockMesh
Date : Jul 19 2011
Time : 20:46:10
Host : MRBEN-PC
PID : 8040
Case : B:/Program Files/OpenFOAM-1.7.0/OpenFOAM/USRNAME-1.7.0/tutorials/combustion/engineFoam/kivaTest
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).

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



--> FOAM FATAL ERROR:
Cannot open mesh description file
"B:/Program Files/OpenFOAM-1.7.0/OpenFOAM/USRNAME-1.7.0/tutorials/combustion/engineFoam/kivaTest/constant/polyMesh/blockMeshDict"


From function blockMesh
in file blockMeshApp.C at line 141.

FOAM exiting
MrDomino is offline   Reply With Quote

Old   July 20, 2011, 07:08
Default
  #2
New Member
 
Gunawan Aneva
Join Date: Mar 2011
Location: Indonesia
Posts: 10
Rep Power: 15
goen is on a distinguished road
Its plausible
This error is caused that you don't have blockMeshDict file in constant/polyMesh directory. You have to make blockMeshDict file first which contain mesh for combustion chamber geometry that is going to be used in simulation.

oh, sorry
I suggest you to use linux version.
goen is offline   Reply With Quote

Old   July 21, 2011, 21:33
Default
  #3
New Member
 
Benjamin Wigg
Join Date: Jul 2011
Posts: 2
Rep Power: 0
MrDomino is on a distinguished road
Inside the polyMesh directory there are two files

boundary

/*--------------------------------*- C++ -*----------------------------------*\

| ========= | |

| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |

| \\ / O peration | Version: 1.7.0 |

| \\ / A nd | Web: www.OpenFOAM.com |

| \\/ M anipulation | |

\*---------------------------------------------------------------------------*/

FoamFile
{
version 2.0;

format ascii;

class polyBoundaryMesh;

location "constant/polyMesh";

object boundary;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


3
(

piston
{

type wall;

nFaces 1326;

startFace 79522;

}

liner
{

type wall;

nFaces 2710;

startFace 80848;

}

cylinderHead
{

type wall;

nFaces 2184;

startFace 83558;

}
)


// ************************************************** *********************** //

and boundary.org

/*--------------------------------*- C++ -*----------------------------------*\

| ========= | |

| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |

| \\ / O peration | Version: 1.7.0 |

| \\ / A nd | Web: www.OpenFOAM.com |

| \\/ M anipulation | |

\*---------------------------------------------------------------------------*/

FoamFile
{
version 2.0;

format ascii;

class polyBoundaryMesh;

object boundary;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


3
(

piston
{

type wall;

physicalType fixedTemperatureMovingWallFunctions;

nFaces 1326;

startFace 79522;

}


liner
{

type wall;

physicalType fixedTemperatureWallFunctions;

nFaces 2710;

startFace 80848;

}


cylinderHead
{

type wall;

physicalType fixedTemperatureWallFunctions;

nFaces 2184;

startFace 83558;

}
)


// ************************************************** *********************** //

Am I missing a file?
MrDomino is offline   Reply With Quote

Old   July 22, 2011, 13:46
Default
  #4
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
This case uses a kiva mesh. If you look at the Allrun script you can see all the commands you need to run to make this case run. I suggest you look at that to get a better idea of how OpenFOAM works, its a very different may of working than Fluent.
mturcios777 is offline   Reply With Quote

Old   July 22, 2011, 14:50
Default
  #5
New Member
 
Gunawan Aneva
Join Date: Mar 2011
Location: Indonesia
Posts: 10
Rep Power: 15
goen is on a distinguished road
Hi benjamin.

sorry, I think you should read a little about the mesh on OpenFOAM in userguide.

Mesh on these problems have been there but it still in version Kiva. You must convert it first into openfoam version by entering commands on a terminal window. then you can just run the simulation. but this for openfoam linux version but I do not know for windows version. or as has been taught by marco, you should read allrun script.

(sorry for my english.. )
goen 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
How to work with constant pressure? Martin Siemens 2 February 25, 2009 14:23
Getting FoamX to work shaun OpenFOAM Installation 12 March 23, 2007 09:55
work related to brake study of a vehical aero Siemens 3 November 23, 2006 08:43
Why do the Plant library cases don't work? Alumna Phoenics 6 June 22, 2004 13:08
why my In-Form doesn't work? green Phoenics 2 May 27, 2004 22:03


All times are GMT -4. The time now is 06:30.