CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: blockMesh

Tutorials lacking blockMeshDict

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 15, 2011, 10:15
Default Tutorials lacking blockMeshDict
  #1
New Member
 
Join Date: Jul 2011
Posts: 8
Rep Power: 5
DiracRules is on a distinguished road
Hello!

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

Old   July 19, 2011, 16:52
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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: https://github.com/OpenCFD/OpenFOAM-2.0.x - keep in mind that this repository keep getting improved... so some files might move in the mean time... or others added/removed...

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   September 1, 2012, 04:39
Default
  #3
New Member
 
Rob
Join Date: Sep 2012
Posts: 2
Rep Power: 0
PapaKoko is on a distinguished road
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
blockMesh

this produces the following fatal error:

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ 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



--> FOAM FATAL ERROR:
Cannot open mesh description file
"/home/robert/OpenFOAM/robert-2.1.1/run/tutorials/incompressible/icoFoam/elbow/constant/polyMesh/blockMeshDict"


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).
PapaKoko is offline   Reply With Quote

Old   September 1, 2012, 04:46
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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:
Code:
$FOAM_RUN/tutorials/incompressible/icoFoam/Allrun
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,
Bruno
wyldckat is offline   Reply With Quote

Old   September 6, 2012, 15:52
Default
  #5
New Member
 
Rob
Join Date: Sep 2012
Posts: 2
Rep Power: 0
PapaKoko is on a distinguished road
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
$FOAM_RUN/tutorials/incompressible/icoFoam/Allrun
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)

Last edited by PapaKoko; September 6, 2012 at 16:23. Reason: I found it out
PapaKoko is offline   Reply With Quote

Old   September 6, 2012, 16:15
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,251
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Rob,

OK, let me translate... here's what the script would look like if it were inside the "elbow" tutorial case:
Code:
#!/bin/sh
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:
Code:
fluentMeshToFoam elbow.msh > log.fluentMeshToFoam 2>&1

icoFoam > log.icoFoam 2>&1
foamMeshToFluent > log.foamMeshToFluent 2>&1
foamDataToFluent > log.foamDataToFluent 2>&1
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply

Tags
blockmeshdict, tutorials

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
Dynamic mesh tutorials atertiarch FLUENT 3 January 16, 2011 08:02
PLease somebody help:problem while changing blockMeshDict file vivek070176 OpenFOAM Installation 1 June 11, 2010 17:51
Install tutorials jonlemur OpenFOAM Installation 4 August 8, 2007 14:15
tutorials for icem-cfd v4.1 vince Main CFD Forum 0 August 23, 2003 15:25
Where can I find Airpak help doc. and tutorials? Hotlood Wong FLUENT 3 April 23, 2001 03:55


All times are GMT -4. The time now is 04:55.