|
[Sponsors] |
[blockMesh] Cannot open mesh description file |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 24, 2014, 08:27 |
Cannot open mesh description file
|
#1 |
New Member
Javad
Join Date: Mar 2014
Posts: 14
Rep Power: 12 |
Hi every one,
I copied one interFoam file and then edited it. When I was trying to make blockMesh file I faced a problem that says: " --> FOAM FATAL ERROR: Cannot open mesh description file "/home/dell-2014-d/Learning/ellipsoidal/constant/polyMesh/blockMeshDict" From function blockMesh in file blockMeshApp.C at line 137. FOAM exiting " Can you help me what the problem is? Since I am beginner in OpenFoam, any help will be useful. Best regards |
|
September 27, 2014, 11:21 |
|
#2 |
New Member
Join Date: Jul 2014
Posts: 22
Rep Power: 11 |
Hello javadrasooli,
the problem is, that there is no blockMeshDict file in the polyMesh folder. Have you checked it? I am not sure, but I think you have to work in the run folder of your OpenFoam installation. Best regards, Mike |
|
October 1, 2014, 10:11 |
|
#3 |
New Member
Javad
Join Date: Mar 2014
Posts: 14
Rep Power: 12 |
Hi Mike,
Thank you for your response. As I wrote, I copied the file so there is a "blockMeshDict" file in polyMesh folder, but I did not put it in to run folder. Is that also for Ubuntu 14.04 and OpenFoam 2.3.0? How should I put it on run folder. Best regards Javad |
|
October 2, 2014, 03:15 |
|
#4 |
New Member
Join Date: Jul 2014
Posts: 22
Rep Power: 11 |
Hello javad,
I tried to reproduce your error and when my working directory is in the run directory and I had no blockMeshDict file in the polyMesh folder, the same error 137 occured. But when I execute the program with a copy for example in my documents directory another error ocurred (can't find file... line 73...) So my suggestion would be, to copy the program in the run directory, which is in my case: /home/mike/OpenFOAM/mike-2.3.0/run/ You have to look where your OF installation is installed. Btw I am also working with Ubuntu 14.04 and OF 2.3.0 From the terminal you have access to the run directory after the of230 command just with run and then you switch to your test case. Ah, have you made the last step Getting started http://www.openfoam.org/download/source.php during the installation? There it is said to make the run folder... Hope it works. Mike |
|
October 7, 2014, 06:06 |
|
#5 | |
New Member
Javad
Join Date: Mar 2014
Posts: 14
Rep Power: 12 |
Dear Mike,
Thank you so much for your attention. I've put it into run folder and the problem is the same!! --> FOAM FATAL ERROR: Cannot open mesh description file "/home/dell-2014-d/OpenFOAM/dell-2014-d-2.3.0/run/ellipsoidal/constant/polyMesh/blockMeshDict" From function blockMesh in file blockMeshApp.C at line 137. FOAM exiting best regards Javad Quote:
|
||
October 7, 2014, 08:20 |
|
#6 |
New Member
Join Date: Jul 2014
Posts: 22
Rep Power: 11 |
Hello,
Hmm... Strange, could you upload your BlockMeshDict file, so I could try to reproduce the error and can try to fix it? best regards, Mike |
|
October 9, 2014, 04:17 |
|
#7 |
New Member
Javad
Join Date: Mar 2014
Posts: 14
Rep Power: 12 |
Hi, I don't know if it is possible to attach a file in forum, so I send the whole file:
Code:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // /*AxiSymmetric Mesh! x=R*cos (theta/2) y=R*sin (theta/2) theta=angle!!! R=1, theta 5 degree // **********// convertToMeters 0.012; vertices ( (0 0 0) //0 (0.999 0.04362 0) //1 (0.999 0.04362 5) //2 (0 0 5) //3 (0.999 -0.04362 0) //4 (0.999 -0.04362 5) //5 ); blocks ( hex (0 4 1 0 3 5 2 3) (40 1 200) simpleGrading (1 1 1) ); edges ( ); boundary ( front { type wedge; faces ( (0 1 2 3) ); } back { type wedge; faces ( (0 3 5 4) ); } fixedWall { type wall; faces ( (1 4 5 2) ); } top { type patch; faces ( (3 2 5 3) ); } bottom { type patch; faces ( (0 4 1 0) ); } axis { type empty; faces ( (0 3 3 0) ); } ); mergePatchPairs ( ); // ************************************************************************* // Last edited by wyldckat; November 1, 2014 at 13:26. Reason: Added [CODE][/CODE] |
|
October 31, 2014, 14:10 |
|
#8 |
New Member
Chris Hagen
Join Date: Oct 2014
Posts: 4
Rep Power: 11 |
I have been having the same issue although I am on Ubuntu 13.10 Saucy. It is as though the file is overlooked. I am running Ubuntu live as well...
|
|
November 1, 2014, 14:27 |
|
#9 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
Quote:
Soooo... my question is: are you perhaps using a live USB installation? In addition, knowing the exact commands/steps you've used to make the copy would help isolate the problem. Last but not least, try running the following commands and let us know what it outputs: Code:
ls -l . ls -l constant ls -l constant/polyMesh edit: I've tried with a live Ubuntu 13.10 with persistent capabilities, similar to a USB mechanism, and I was not able to reproduce the same error. A few additional commands to help diagnose the problem: Code:
df -h ./ pwd Bruno
__________________
Last edited by wyldckat; November 2, 2014 at 06:29. Reason: see "edit:" |
||
November 2, 2014, 01:03 |
|
#10 |
New Member
Chris Hagen
Join Date: Oct 2014
Posts: 4
Rep Power: 11 |
It is a USB live and its on a 4GB.
I have been moving so I will try to get to the rest of what you asked as soon as I can. Just wanted to touch base and let you know Im working on it. I appreciate the help |
|
May 9, 2016, 14:15 |
|
#11 |
Member
Divyaprakash
Join Date: Jun 2014
Posts: 69
Rep Power: 11 |
I think u need to add in the preamble
location "folderName"; |
|
March 6, 2019, 08:21 |
|
#12 |
New Member
Tanveer
Join Date: Sep 2018
Posts: 6
Rep Power: 7 |
Hai,
I am a new user as well and I am having the same problem. --> FOAM FATAL ERROR: Cannot open mesh description file "/home/nit/OpenFOAM/nit-2.3.0/run/fillingOfTank/mesh/constant/polyMesh/blockMeshDict" From function blockMesh in file blockMeshApp.C at line 137. FOAM exiting Please let me know how to rectify it. |
|
March 6, 2019, 23:46 |
|
#14 |
New Member
Tanveer
Join Date: Sep 2018
Posts: 6
Rep Power: 7 |
@wyldckat,
nit@nit-HP-Compaq-Elite-8300-SFF:~/OpenFOAM/nit-2.3.0/run/fillingOfTank/mesh$ ls -l total 16 drwx------ 4 nit nit 4096 Mar 6 23:38 constant -rw------- 1 nit nit 163 Mar 6 23:38 foam.foam -rw------- 1 nit nit 131 Mar 6 23:38 setUpMesh.sh drwx------ 2 nit nit 4096 Mar 7 00:06 system nit@nit-HP-Compaq-Elite-8300-SFF:~/OpenFOAM/nit-2.3.0/run/fillingOfTank/mesh$ ls -l constant total 8 drwxrwxr-x 2 nit nit 4096 Mar 6 23:38 extendedFeatureEdgeMesh drwx------ 2 nit nit 4096 Mar 6 23:38 triSurface nit@nit-HP-Compaq-Elite-8300-SFF:~/OpenFOAM/nit-2.3.0/run/fillingOfTank/mesh$ ls -l constant/Polymesh ls: cannot access constant/Polymesh: No such file or directory I followed this tutorial: https://www.youtube.com/watch?v=c23jKs1AAKg&t=1175s |
|
March 7, 2019, 01:50 |
|
#15 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 15 |
Hi,
You have done a Code:
ls -l Code:
constant/Polymesh Code:
constant/polyMesh Cheers, Antimony |
|
March 7, 2019, 05:36 |
|
#16 |
New Member
Tanveer
Join Date: Sep 2018
Posts: 6
Rep Power: 7 |
Anitimony, I have corrected. Still getting the same result.
nit@nit-HP-Compaq-Elite-8300-SFF:~/OpenFOAM/nit-2.3.0/run/fillingOfTank/mesh$ ls -l total 16 drwx------ 4 nit nit 4096 Mar 6 23:38 constant -rw------- 1 nit nit 163 Mar 6 23:38 foam.foam -rw------- 1 nit nit 131 Mar 6 23:38 setUpMesh.sh drwx------ 2 nit nit 4096 Mar 7 00:06 system nit@nit-HP-Compaq-Elite-8300-SFF:~/OpenFOAM/nit-2.3.0/run/fillingOfTank/mesh$ ls -l constant total 8 drwxrwxr-x 2 nit nit 4096 Mar 6 23:38 extendedFeatureEdgeMesh drwx------ 2 nit nit 4096 Mar 6 23:38 triSurface nit@nit-HP-Compaq-Elite-8300-SFF:~/OpenFOAM/nit-2.3.0/run/fillingOfTank/mesh$ ls -l constant/polyMesh ls: cannot access constant/polyMesh: No such file or directory |
|
March 7, 2019, 17:24 |
|
#17 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Quick answer @tanveerfathima: OK, the tutorial case you are using has the "blockMeshDict" file located in the folder "system". That means that you will either have to move the file from "system" to "constant/poyMesh", or run it like this:
Code:
blockMesh -dict system/blockMeshDict |
|
March 29, 2019, 05:15 |
|
#18 |
New Member
Tanveer
Join Date: Sep 2018
Posts: 6
Rep Power: 7 |
Thanks a lot @wyldckat . I installed OpenFOAM 6 and it worked!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 | ordinary | OpenFOAM Installation | 19 | September 3, 2019 18:13 |
polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 09:07 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 13:59 |
[swak4Foam] funkySetFields compilation error | tayo | OpenFOAM Community Contributions | 39 | December 3, 2012 05:18 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 19:08 |