CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Native Meshers: blockMesh (
-   -   Tutorials lacking blockMeshDict (

DiracRules July 15, 2011 10:15

Tutorials lacking blockMeshDict

Did I download badly, or is it normal that some tutorials lack the blockMeshDict file, while presenting the boudary file?

wyldckat July 19, 2011 16:52

Hi DiracRules,

When it comes to tutorials in OpenFOAM, always check the Allrun scripts in the folders of the cases and its parent folders!
If there isn't a blockMeshDict in the tutorial, its because the case doesn't need it and it was removed to avoid confusion. The boundary file sometimes is left after automatic clean-up, since some changes to the boundaries are reusable - although I haven't confirmed this properly...

But when in doubt about missing files, you can always browse the online git repository: - keep in mind that this repository keep getting improved... so some files might move in the mean time... or others added/removed...

Best regards,

PapaKoko September 1, 2012 04:39

Yeah, but how do u try these tutorials missing blockMeshDict-files?

im trying to run one called "elbow" :
cd $FOAM_RUN/tutorials/incompressible/icoFoam/elbow

this produces the following fatal error:

| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: |
| \\/ M anipulation | |
Build : 2.1.1-221db2718bbb
Exec : blockMesh
Date : Sep 01 2012
Time : 10:36:19
Host : "ubuntu"
PID : 3578
Case : /home/robert/OpenFOAM/robert-2.1.1/run/tutorials/incompressible/icoFoam/elbow
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

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

Cannot open mesh description file

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

FOAM exiting

Seems like it is looking for the blockMeshDict file but cant find it... So some tutorials are broken? Or am I missing something (im new to openfoam and linux in general).

wyldckat September 1, 2012 04:46

Greetings Rob and welcome to the forum!

Remember that I mention Allrun scripts? Look at the parent folder for the "elbow" case and you'll see such a script:

You can edit it with a text editor and you'll see the commands meant for running the "elbow" case; although keep in mind that the functions runApplication and runParallel will only work inside those scripts.

Best regards,

PapaKoko September 6, 2012 15:52

Hi and thanks for the reply, but I'm afraid I still don't get it to work.

So i checked the allrun file and I guess the text you are refering to is the following:

# elbow case for testing Fluent-FOAM conversion tools
runFluentMeshToFoam elbow elbow/elbow.msh
cd elbow || exit

runApplication `getApplication`
runApplication foamMeshToFluent
runApplication foamDataToFluent

Sorry but I don't understand how this is helping me. After running
How do i do the meshing? typing blockMesh doesn't work.
How do i run the calculations and open the tutorial in paraFoam?

Update: Sorry again but I found it out myself :) Here's how I did it in the terminal (for other noobs)
$FOAM_RUN/tutorials/incompressible/icoFoam/Allrun (running the Allrun script, it does meshing and calculations for all cases in the icoFoam folder - including elbow)
cd $FOAM_RUN/tutorials/incompressible/icoFoam/ (changing the directory)
paraFoam -case elbow (starts the viewer of the elbow case)

wyldckat September 6, 2012 16:15

Hi Rob,

OK, let me translate... here's what the script would look like if it were inside the "elbow" tutorial case:

cd ${0%/*} || exit 1    # run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

fluentMeshToFoam elbow.msh > log.fluentMeshToFoam 2>&1

runApplication `getApplication`
runApplication foamMeshToFluent
runApplication foamDataToFluent

Which in turn translates to running manually the following commands directly in the command line:

fluentMeshToFoam elbow.msh > log.fluentMeshToFoam 2>&1

icoFoam > log.icoFoam 2>&1
foamMeshToFluent > log.foamMeshToFluent 2>&1
foamDataToFluent > log.foamDataToFluent 2>&1

Best regards,

All times are GMT -4. The time now is 23:24.