CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Need some help getting the engineFoam demo to work (https://www.cfd-online.com/Forums/openfoam/90753-need-some-help-getting-enginefoam-demo-work.html)

 MrDomino July 20, 2011 00:34

Need some help getting the engineFoam demo to work

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

 goen July 20, 2011 06:08

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.

 MrDomino July 21, 2011 20:33

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?

 mturcios777 July 22, 2011 12:46

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.

 goen July 22, 2011 13:50

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.. )

 All times are GMT -4. The time now is 22:49.