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

[blockMesh] Pyramid using BlockMesh

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 9, 2010, 12:33
Default Pyramid using BlockMesh
  #1
New Member
 
Join Date: Aug 2010
Location: Chennai
Posts: 24
Rep Power: 15
ramhari is on a distinguished road
I want to mesh a pyramid shape...i am running the following blockMeshDict file but i am getting segmentation fault...can anyone help me !


/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7.0 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 1;

vertices
(
(0 0 0) //0
(1 0 0) //1
(1 1 0) //2
(0 1 0) //3
(0.5 0.5 0.5) //4

);

blocks
(
pyr 5(0 1 2 3 4) (10 10 10) simpleGrading (1 1 1)
);

edges
(
);

patches
(

);

mergePatchPairs
(
);

// ************************************************** *********************** //



Output :


Creating block mesh from
"/home/hariram/Desktop/cone/constant/polyMesh/blockMeshDict"


Creating blockCorners

Creating curved edges

Creating blocks
#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam171/lib/linuxGccDPOpt/libOpenFOAM.so"
#1 Foam::sigSegv::sigSegvHandler(int) in "/opt/openfoam171/lib/linuxGccDPOpt/libOpenFOAM.so"
#2 Uninterpreted:
#3
in "/opt/openfoam171/applications/bin/linuxGccDPOpt/blockMesh"
#4
in "/opt/openfoam171/applications/bin/linuxGccDPOpt/blockMesh"
#5
in "/opt/openfoam171/applications/bin/linuxGccDPOpt/blockMesh"
#6
in "/opt/openfoam171/applications/bin/linuxGccDPOpt/blockMesh"
#7
in "/opt/openfoam171/applications/bin/linuxGccDPOpt/blockMesh"
#8 __libc_start_main in "/lib/tls/i686/cmov/libc.so.6"
#9
in "/opt/openfoam171/applications/bin/linuxGccDPOpt/blockMesh"
Segmentation fault
ramhari is offline   Reply With Quote

Old   November 15, 2010, 12:50
Default Re : pyramid
  #2
New Member
 
Join Date: Aug 2010
Location: Chennai
Posts: 24
Rep Power: 15
ramhari is on a distinguished road
Hi,

I could do that using 'hex' keyword with 5 vertices instead of using 'pyr'.

Thanx, Hari
ramhari is offline   Reply With Quote

Old   February 14, 2012, 11:02
Default
  #3
New Member
 
Join Date: Jan 2012
Posts: 3
Rep Power: 14
gimmetwofingers is on a distinguished road
Hi,

I am also looking for a way to produce a pyramid in blockMesh. However for me it does not work to use the hex keyword with five entries. I also tried
hex (0 1 2 3 4 4 4 4)
However that also did not work. How can I get a nice pyramid?

Thanks!
gimmetwofingers is offline   Reply With Quote

Old   July 18, 2012, 14:57
Default
  #4
Member
 
Nikunj Raithatha
Join Date: Jul 2012
Location: Washington DC
Posts: 47
Rep Power: 13
Nikunj.R is on a distinguished road
just use 01234
Nikunj.R is offline   Reply With Quote

Old   February 5, 2017, 14:47
Default
  #5
New Member
 
Mehdi
Join Date: Jan 2017
Posts: 17
Rep Power: 9
mehdiataei is on a distinguished road
Could anyone fix it? I cannot create a pyramid neither with hex nor with pyr and I don't get why

vertices
(
(1 -0.0436 0.0436)
(1 0.0436 0.0436)
(1 0.0436 -0.0436)
(1 -0.0436 -0.0436)
(0 0 0)
);

blocks
(
pyr (0 1 2 3 4) (50 1 1) simpleGrading (1 1 1)
);
mehdiataei is offline   Reply With Quote

Old   February 5, 2017, 20:10
Default
  #6
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

For your given set of vertices, have you tried this?

hex (0 1 2 3 4 4 4 4) (nx ny nz) simpleGrading (s1 s2 s3)

where nx, ny, nz, s1, s2, s3 are all values that you want to input.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Reply

Tags
blockmesh, cone, pyramid

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[Other] mesh airfoil NACA0012 anand_30 OpenFOAM Meshing & Mesh Conversion 13 March 7, 2022 17:22
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 05:42
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00


All times are GMT -4. The time now is 20:46.