blockMesh
Hi everyone!
I'm new to this forum... I have started to work with OpenFoam for a week. but as I want to generate my Mesh by running blockMesh in terminal, I get this error: From function blockMesh in file blockMeshApp.C at line 148 even I tried to run the Cavity example in tutorial and i did all right step by step, but I get the same error. Is there someone who knows why it happens??? |
Please post the full output of the error message, this message does not tell anything. put the error message into the code block feature in the editor when posting it. it is the little "#" at the top of the editor.
|
Thanks Roman for your reply... after I run it on the terminal, I get this error:
fluid@fluid-desktop:~/OpenFOAM/fluidvt-2.0.1/run/example1$ blockMesh/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.0.1 | | \\ / A nd | Web: www.OpenFOAM.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.0.1-51f1de99a4bc Exec : blockMesh Date : Dec 07 2011 Time : 14:48:17 Host : fluid-desktop PID : 6835 Case : /home/fluid/OpenFOAM/fluidvt-2.0.1/run/example1 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/fluid/OpenFOAM/fluidvt-2.0.1/run/example1/constant/polyMesh/blockMeshDict" From function blockMesh in file blockMeshApp.C at line 148. FOAM exiting |
Quote:
You have to check that the file is there when you want to run blockMesh |
I checked it so many times, it is there!!!
I run the command "blockMesh" under the folder "example1", so it should find the file "blockMeshDict", because it's in subfolder "/constant/polyMesh".... |
You said you have the same error in a freshly installed OpenFOAM under the tutorials as well?
|
when i run the cavity example under tutorial folder, it works perfectly. but when i try to create the cavity example in another folder, i get the error...i type everything exactly the same as written in cavity files, i checked again and again all my files which i created in all the folders 0, constant and system....i don't find any typing mistake... but i cannot run it because of the error....
|
no one has any idea??? I still have the same problem!!!:(
|
Quote:
|
In case anyone has the same problem, do make sure that the folder is called polyMesh. I had accidentally called it blockMesh!
|
I got this error message when I accidentally tried to run blockMesh from a directory other than the main case directory (I was in the polyMesh directory)
|
problem with blockMesh
Quote:
I have been trying to make a simple cylinder geometry using blockMesh but i get the following error. # --> FOAM FATAL ERROR: "/home/gourav/Desktop/mymesh/system/blockMeshDict" From function int main(int, char**) in file blockMesh.C at line 149. FOAM exiting /# can you tell me what might be wrong? |
Hi,
There is insufficient information here for anyone to help you with. At the very least post your blockMeshDict. Cheers, Antimony |
Quote:
Code:
--> FOAM FATAL ERROR: Code:
// blockMesh : Block mesh description file |
Hi,
I tried your case and it runs fine. So it isn't an issue related to blockMeshDict (by and large). What version of OF are you running? How do you call blockMesh? Considering that you are getting FOAM FATAL ERROR, I should think that you have sourced your OF correctly... Cheers, Antimony |
same issue
/*---------------------------------------------------------------------------*\
| ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v2006 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : _b45f8f6f58-20200629 OPENFOAM=2006 Arch : "LSB;label=32;scalar=64" Exec : blockMesh Date : Sep 20 2020 Time : 13:50:34 Host : LAPTOP-A0NOGRUJ PID : 536 I/O : uncollated Case : /home/sam/OpenFOAM/OpenFOAM-v2006/tutorials/wigleyHull nProcs : 1 trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time --> FOAM Warning : From static Foam::IOstreamOption::compressionType Foam::IOstreamOption::compressionEnum(const Foam::word&, Foam::IOstreamOption::compressionType) in file db/IOstreams/IOstreams/IOstreamOption.C at line 115 Unknown compression specifier 'compressed', using compression off --> FOAM Warning : From blockMesh in file findBlockMeshDict.H at line 36 Using the old blockMeshDict location: "constant/polyMesh/blockMeshDict" instead of the default location: "system/blockMeshDict" --> FOAM FATAL ERROR: "/home/sam/OpenFOAM/OpenFOAM-v2006/tutorials/wigleyHull/constant/polyMesh/blockMeshDict" From int main(int, char**) in file findBlockMeshDict.H at line 61. FOAM exiting Did anyone find the solution for the error?? |
Hi,
Do you have a blockMeshDict? If so, where is it? Can you post your blockMeshDict here? Cheers, Antimony |
blockMeshDict
1 Attachment(s)
hey,
its path is wigleyhull/constant/polymesh Regards vava10 |
I've tried it with OpenFOAM 8 (I don't have v2006.) at both locations (system/blockMeshDict and constant/polyMesh/blockMeshDict) and it works fine.
If you take a look at findBlockMeshDict.H, line 61 it seems to be a problem with the header (not 100 % sure about that), but I can't find one. Have you ever used blockMesh before? If not, please run blockMesh in a tutorial (e. g. tutorials/incompressible/simpleFoam/pitzDaily) to rule out that it is due to a failed installation of OpenFOAM. |
Hi,
OK. So a quick look at your blockMeshDict seems to indicate it is OK. However, based on the error message you posted and what is described here (https://www.openfoam.com/documentati...8H_source.html), it seems like there is something wrong with the header. However, I tested your file on my machine and it works (OpenFOAM-v2006). So you might just want to make sure that the file you sent is the same that you tried (and the header is consistent with the rest of the tutorials!) Hope this helps Cheers, Antimony |
All times are GMT -4. The time now is 19:05. |