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

[blockMesh] Tutorials lacking blockMeshDict

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 15, 2011, 11:15
Default Tutorials lacking blockMeshDict
  #1
New Member
 
Join Date: Jul 2011
Posts: 8
Rep Power: 15
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, 17:52
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 05: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, 05:46
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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, 16: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 17:23. Reason: I found it out
PapaKoko is offline   Reply With Quote

Old   September 6, 2012, 17:15
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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

Old   May 9, 2018, 16:19
Default running the ,msh file
  #7
New Member
 
Chayanit Nigaltia
Join Date: Jan 2018
Posts: 29
Rep Power: 8
CHAYANIT is on a distinguished road
I can sucessfully run the simulation with blockMeshDict file.
But when I used the .msh created from the original blockMeshDict file and then run the simulation it is creating problem
CHAYANIT is offline   Reply With Quote

Reply

Tags
blockmeshdict, tutorials

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
openfoam tutorials folder mbask OpenFOAM Pre-Processing 2 March 24, 2019 10:38
[blockMesh] Creating an axisymmetric piston cylinder in blockMeshDict foadsf OpenFOAM Meshing & Mesh Conversion 9 August 23, 2018 08:54
Why a different enthalpy of water is used in the tutorials? yun_cn Fluent Multiphase 0 November 2, 2017 05:35
[BEGINNER] Problems running tutorials (incompressible) in OF 2.xx Jaro OpenFOAM Running, Solving & CFD 8 March 16, 2016 08:27
[Other] blockMeshDict not Matching Boundary HassanDarian OpenFOAM Meshing & Mesh Conversion 0 March 19, 2014 14:30


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