|
[Sponsors] |
July 15, 2011, 11:15 |
Tutorials lacking blockMeshDict
|
#1 |
New Member
Join Date: Jul 2011
Posts: 8
Rep Power: 15 |
Hello!
Did I download badly, or is it normal that some tutorials lack the blockMeshDict file, while presenting the boudary file? |
|
July 19, 2011, 17:52 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
September 1, 2012, 05:39 |
|
#3 |
New Member
Rob
Join Date: Sep 2012
Posts: 2
Rep Power: 0 |
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). |
|
September 1, 2012, 05:46 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 Best regards, Bruno
__________________
|
|
September 6, 2012, 16:52 |
|
#5 |
New Member
Rob
Join Date: Sep 2012
Posts: 2
Rep Power: 0 |
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 |
|
September 6, 2012, 17:15 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 Code:
fluentMeshToFoam elbow.msh > log.fluentMeshToFoam 2>&1 icoFoam > log.icoFoam 2>&1 foamMeshToFluent > log.foamMeshToFluent 2>&1 foamDataToFluent > log.foamDataToFluent 2>&1 Bruno
__________________
|
|
May 9, 2018, 16:19 |
running the ,msh file
|
#7 |
New Member
Chayanit Nigaltia
Join Date: Jan 2018
Posts: 29
Rep Power: 8 |
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 |
|
Tags |
blockmeshdict, tutorials |
|
|
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 |