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

[blockMesh] Cannot open mesh description file

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Antimony

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 24, 2014, 08:27
Default Cannot open mesh description file
  #1
New Member
 
Javad
Join Date: Mar 2014
Posts: 14
Rep Power: 12
javadrasooli is on a distinguished road
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
javadrasooli is offline   Reply With Quote

Old   September 27, 2014, 11:21
Default
  #2
New Member
 
Join Date: Jul 2014
Posts: 22
Rep Power: 11
jokerito is on a distinguished road
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
jokerito is offline   Reply With Quote

Old   October 1, 2014, 10:11
Default
  #3
New Member
 
Javad
Join Date: Mar 2014
Posts: 14
Rep Power: 12
javadrasooli is on a distinguished road
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
Quote:
Originally Posted by jokerito View Post
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
javadrasooli is offline   Reply With Quote

Old   October 2, 2014, 03:15
Default
  #4
New Member
 
Join Date: Jul 2014
Posts: 22
Rep Power: 11
jokerito is on a distinguished road
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
jokerito is offline   Reply With Quote

Old   October 7, 2014, 06:06
Default
  #5
New Member
 
Javad
Join Date: Mar 2014
Posts: 14
Rep Power: 12
javadrasooli is on a distinguished road
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:
Originally Posted by jokerito View Post
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
javadrasooli is offline   Reply With Quote

Old   October 7, 2014, 08:20
Default
  #6
New Member
 
Join Date: Jul 2014
Posts: 22
Rep Power: 11
jokerito is on a distinguished road
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
jokerito is offline   Reply With Quote

Old   October 9, 2014, 04:17
Default
  #7
New Member
 
Javad
Join Date: Mar 2014
Posts: 14
Rep Power: 12
javadrasooli is on a distinguished road
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
(
);

// ************************************************************************* //
Quote:
Originally Posted by jokerito View Post
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

Last edited by wyldckat; November 1, 2014 at 13:26. Reason: Added [CODE][/CODE]
javadrasooli is offline   Reply With Quote

Old   October 31, 2014, 14:10
Default
  #8
New Member
 
Chris Hagen
Join Date: Oct 2014
Posts: 4
Rep Power: 11
CHagen is on a distinguished road
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...
CHagen is offline   Reply With Quote

Old   November 1, 2014, 14:27
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 to all!

Quote:
Originally Posted by CHagen View Post
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...
Knowing that you're running a Ubuntu live installation does make it a bit easier to isolate the problem. I've quickly tried out using a live Ubuntu 13.10 in a VM with only 2GB of RAM and was not able to install OpenFOAM 2.3.0 from Deb packages, because it ran out of RAM for the virtual on-memory disk.
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
Best regards,
Bruno
__________________

Last edited by wyldckat; November 2, 2014 at 06:29. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   November 2, 2014, 01:03
Default
  #10
New Member
 
Chris Hagen
Join Date: Oct 2014
Posts: 4
Rep Power: 11
CHagen is on a distinguished road
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
CHagen is offline   Reply With Quote

Old   May 9, 2016, 14:15
Default
  #11
Member
 
Divyaprakash
Join Date: Jun 2014
Posts: 69
Rep Power: 11
Divyaprakash is on a distinguished road
I think u need to add in the preamble
location "folderName";
Divyaprakash is offline   Reply With Quote

Old   March 6, 2019, 08:21
Default
  #12
New Member
 
Tanveer
Join Date: Sep 2018
Posts: 6
Rep Power: 7
tanveerfathima is on a distinguished road
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.
tanveerfathima is offline   Reply With Quote

Old   March 6, 2019, 19:32
Default
  #13
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
@tanveerfathima: Quoting myself from a few posts above:
Quote:
Originally Posted by wyldckat View Post
[...] try running the following commands and let us know what it outputs:
Code:
ls -l .
ls -l constant
ls -l constant/polyMesh
wyldckat is offline   Reply With Quote

Old   March 6, 2019, 23:46
Default
  #14
New Member
 
Tanveer
Join Date: Sep 2018
Posts: 6
Rep Power: 7
tanveerfathima is on a distinguished road
@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
tanveerfathima is offline   Reply With Quote

Old   March 7, 2019, 01:50
Default
  #15
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

You have done a
Code:
ls -l
of
Code:
constant/Polymesh
instead of
Code:
constant/polyMesh
. The case matters a great deal.

Cheers,
Antimony
wyldckat likes this.
Antimony is offline   Reply With Quote

Old   March 7, 2019, 05:36
Default
  #16
New Member
 
Tanveer
Join Date: Sep 2018
Posts: 6
Rep Power: 7
tanveerfathima is on a distinguished road
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
tanveerfathima is offline   Reply With Quote

Old   March 7, 2019, 17:24
Default
  #17
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
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
Why are you using OpenFOAM 2.3.0? The tutorial case that you are using, at least the latest version, was designed to work with OpenFOAM-v1812 and OpenFOAM 6.
wyldckat is offline   Reply With Quote

Old   March 29, 2019, 05:15
Default
  #18
New Member
 
Tanveer
Join Date: Sep 2018
Posts: 6
Rep Power: 7
tanveerfathima is on a distinguished road
Thanks a lot @wyldckat . I installed OpenFOAM 6 and it worked!
tanveerfathima is offline   Reply With Quote

Reply


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
[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


All times are GMT -4. The time now is 18:59.