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

[blockMesh] blockMesh

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2020, 03:55
Default tried
  #21
Member
 
Deutschland
Join Date: Sep 2020
Posts: 69
Rep Power: 6
vava10 is on a distinguished road
Hey,

I tried blockMesh command using compressible/sonicFoam/laminar/forwardStep
and it worked.
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / 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 22 2020
Time : 09:51:34
Host : LAPTOP-A0NOGRUJ
PID : 604
I/O : uncollated
Case : /home/sam/OpenFOAM/OpenFOAM-v2006/tutorials/compressible/sonicFoam/laminar/forwwardStep_1
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

Creating block mesh from "system/blockMeshDict"
Creating block edges
No non-planar block faces defined
Creating topology blocks
Creating topology patches

Creating block mesh topology
--> FOAM Warning :
From Foam:olyMesh:olyMesh(const Foam::IOobject&, Foam:ointField&&, const cellShapeList&, const faceListList&, const wordList&, const Foam::PtrList<Foam::dictionary>&, const Foam::word&, const Foam::word&, bool)
in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 915
Found 6 undefined faces in mesh; adding to default patch defaultFaces

Check topology

Basic statistics
Number of internal faces : 2
Number of boundary faces : 14
Number of defined boundary faces : 14
Number of undefined boundary faces : 0
Checking patch -> block consistency

Creating block offsets
Creating merge list (topological search)...

Creating polyMesh from blockMesh
Creating patches
Creating cells
Creating points with scale 1
Block 0 cell size :
i : 0.024 .. 0.024
j : 0.02 .. 0.02
k : 0.1 .. 0.1

Block 1 cell size :
i : 0.024 .. 0.024
j : 0.02 .. 0.02
k : 0.1 .. 0.1

Block 2 cell size :
i : 0.024 .. 0.024
j : 0.02 .. 0.02
k : 0.1 .. 0.1


There are no merge patch pairs

Writing polyMesh with 0 cellZones
----------------
Mesh Information
----------------
boundingBox: (0 0 -0.05) (3 1 0.05)
nPoints: 10852
nCells: 5250
nFaces: 21175
nInternalFaces: 10325
----------------
Patches
----------------
patch 0 (start: 10325 size: 50) name: inlet
patch 1 (start: 10375 size: 40) name: outlet
patch 2 (start: 10415 size: 25) name: bottom
patch 3 (start: 10440 size: 125) name: top
patch 4 (start: 10565 size: 110) name: obstacle
patch 5 (start: 10675 size: 10500) name: defaultFaces

End

vava10 is offline   Reply With Quote

Old   September 22, 2020, 04:58
Unhappy
  #22
Member
 
Deutschland
Join Date: Sep 2020
Posts: 69
Rep Power: 6
vava10 is on a distinguished road
Hey.

I copied blockMeshDict from compressible/sonicFoam/laminar/forwardStep/system to wigleyHull/system and tried running blockMesh and it worked.

but when I tried to run the blockMeshDict from wigleyHull to (which I posted here) by copying it to forwardStep I got the same error

Do anyone have any guess why this might happen??
vava10 is offline   Reply With Quote

Old   September 22, 2020, 17:56
Thumbs up
  #23
Member
 
Deutschland
Join Date: Sep 2020
Posts: 69
Rep Power: 6
vava10 is on a distinguished road
hey everyone,

Thank you for your help. I solved it.

the issue was theblockMeshDict didn't have permission to be read.
when I changed it it worked.

hope this might help someone in future.

Best regards
vava10
Antimony likes this.
vava10 is offline   Reply With Quote

Old   February 13, 2021, 12:05
Default
  #24
Member
 
Bushra Rasheed
Join Date: Dec 2020
Posts: 97
Rep Power: 5
B_R_Khan is on a distinguished road
Quote:
Originally Posted by gouravjee View Post
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?
Hey!

I am getting the same error while making a blockMesh for cylinder ...except that mine says From int main(int, char**)
in file findBlockMeshDict.H at line 61.

Were you able to find any solution?


Edit: Found the solution by adjusting the header

Last edited by B_R_Khan; February 13, 2021 at 14:44.
B_R_Khan is offline   Reply With Quote

Old   February 13, 2021, 12:08
Default
  #25
Member
 
Bushra Rasheed
Join Date: Dec 2020
Posts: 97
Rep Power: 5
B_R_Khan is on a distinguished road
Hey!

I am getting the same error while making a blockMesh for cylinder ...except that mine says From int main(int, char**)
in file findBlockMeshDict.H at line 61.

Were you able to find any solution?
B_R_Khan is offline   Reply With Quote

Old   February 14, 2021, 06:19
Default
  #26
Member
 
Deutschland
Join Date: Sep 2020
Posts: 69
Rep Power: 6
vava10 is on a distinguished road
Hey,

I am really new to OpenFOAM. So I am not exactly sure. I tried to google your error. I could not find anything.

I resolved my issue by making sure all the syntax was correct. And I also had an issue with permission for the file. If I make corrections using notepad and then try to run the file in Linux first it wouldn't work. so I had to give permission to the file using chmod +rwx filename

Best regards
Vava10
B_R_Khan likes this.
vava10 is offline   Reply With Quote

Old   December 1, 2021, 09:47
Default
  #27
New Member
 
Ali Can
Join Date: Apr 2021
Posts: 28
Rep Power: 5
Ryuzaki is on a distinguished road
Hello sir,
Can you please give more detail about it? What do you mean adjusting the header? I have the same issue :/


Quote:
Originally Posted by B_R_Khan View Post
Hey!

I am getting the same error while making a blockMesh for cylinder ...except that mine says From int main(int, char**)
in file findBlockMeshDict.H at line 61.

Were you able to find any solution?


Edit: Found the solution by adjusting the header
Ryuzaki is offline   Reply With Quote

Old   March 12, 2023, 08:10
Default Facing Similar issue
  #28
New Member
 
US
Join Date: Mar 2023
Posts: 4
Rep Power: 3
Trojan1804 is on a distinguished road
I am facing a similar error while running the simulation file.

Error:

HTML Code:
--> 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 'uncompressed', using compression off
--> FOAM Warning :
    From bool Foam::IOobject::readHeader(Foam::Istream&)
    in file db/IOobject/IOobjectReadHeader.C at line 111
    Reading "/home/shruti_g/OpenFOAM/shruti_g-v2012/run/double_pipe_heat_exchanger/system/blockMeshDict" at line 1
    First token could not be read or is not the keyword 'FoamFile'

Check header is of the form:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       IOobject;
    location    "system";
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //



--> FOAM FATAL ERROR: (openfoam-2012)
"/home/shruti_g/OpenFOAM/shruti_g-v2012/run/double_pipe_heat_exchanger/system/blockMeshDict"


    From int main(int, char**)
    in file findBlockMeshDict.H at line 61.

FOAM exiting
I have also attached blockmeshdict.zip file also.
Can anyone please have a look.
Attached Files
File Type: zip blockMeshDict.zip (1.7 KB, 1 views)
Trojan1804 is offline   Reply With Quote

Old   March 26, 2023, 14:56
Default
  #29
New Member
 
Prithvi
Join Date: Mar 2022
Location: Darmstadt
Posts: 6
Rep Power: 4
prinux is on a distinguished road
Hi Trojan,

You missed the following lines at the header in the blockMeshDict file:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ///*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
I've added them at the start and it seems to work fine now, although I had to interrupt in-between.
Attached Files
File Type: zip blockMeshDict.zip (2.0 KB, 0 views)
prinux 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
[OpenFOAM.org] blockMesh issue on openfoam6 startup - ubuntu 16.04 bjdarrer OpenFOAM Installation 7 August 25, 2020 19:15
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 14:53
[blockMesh] External flow around cube with blockMesh Woody8 OpenFOAM Meshing & Mesh Conversion 0 March 31, 2015 14:54
[blockMesh] set of xyz data in blockMesh psk OpenFOAM Meshing & Mesh Conversion 12 August 27, 2013 08:37
Blockmesh cavity error message tonitoney OpenFOAM Installation 2 March 17, 2008 11:59


All times are GMT -4. The time now is 23:26.