CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

How to declare a prism block in the blockMeshDict file

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 18, 2008, 11:23
Default Hi, I'm a beginner in CFD
  #1
New Member
 
sebastian callegari
Join Date: Mar 2009
Posts: 1
Rep Power: 0
callega is on a distinguished road
Hi,

I'm a beginner in CFD and obviously in OpenFOAM.
I had a lot of problems trying to convert FLUENT and ANSYS meshes files generated with ANSA, therefore I started to create a problemtype in GID which can generate blockMeshDict files for OpenFoam.

With the hexahedras blocks there is not probles, because in the manuals there are a lot of examples of declarations of this kind of element, but I'm having dificulties with the prism and tetrahedras blocks.

Following the syntax of hexahedron block,
hex (0 1 4 3 9 10 13 12) (10 10 1) simpleGrading (2 2 1)

I'm writing the prisms elements like this
prism (0 1 2 3 4 5) (10 10 1) simpleGrading (2 2 1)

but blockMesh is printing an error message:
"There are no non-lineal edges"

I think that the problem is in the declaration of the prism block. If someone knows how to declare this kind of block and the other kinds of blocks, diferents than the hexahedron, please help me!!!!

Regards

Sebastián
callega is offline   Reply With Quote

Old   April 18, 2008, 11:45
Default This should be in documentatio
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,762
Rep Power: 21
hjasak will become famous soon enough
This should be in documentation: Create a "hex" block, but re-use the vertices. For example:

hex (0 1 2 2 3 4 5 5)

Clear?

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   March 31, 2014, 07:37
Default Regarding prism cells division
  #3
Member
 
CFDUser
Join Date: Mar 2014
Posts: 55
Rep Power: 4
CFDUser_ is on a distinguished road
Quote:
Originally Posted by hjasak View Post
This should be in documentation: Create a "hex" block, but re-use the vertices. For example:

hex (0 1 2 2 3 4 5 5)

Clear?

Hrv
Dear Jasak,

Is it possible to make something like this (referred to attached picture)?

Regards
CFDUser
Attached Images
File Type: jpg prism.jpg (23.0 KB, 34 views)
CFDUser_ is offline   Reply With Quote

Old   April 3, 2014, 02:55
Default
  #4
Senior Member
 
Vangelis Skaperdas
Join Date: Mar 2009
Location: Thessaloniki, Greece
Posts: 165
Rep Power: 9
vangelis is on a distinguished road
Hi Sebastian,

If you have ANSA why not output directly in OpenFOAM format
than try to output Fluent mesh and convert it?
You should not have any problem to output an OpenFOAM mesh from ANSA

Regards

Vangelis
vangelis is offline   Reply With Quote

Old   May 21, 2015, 05:44
Default
  #5
New Member
 
Elisa Lafforgue
Join Date: May 2015
Location: France
Posts: 12
Rep Power: 2
Elisa-L is on a distinguished road
Quote:
Dear Jasak,

Is it possible to make something like this (referred to attached picture)?

Regards
CFDUser
Attached Thumbnails

Hello,

I have to make something like this on openFoam for my job and I have a lot of troubles trying to do it, since I am new on openFoam. Could anyone help?
Elisa-L is offline   Reply With Quote

Old   May 26, 2015, 07:37
Default
  #6
Senior Member
 
Join Date: Mar 2015
Posts: 135
Rep Power: 2
KateEisenhower is on a distinguished road
Quote:
Originally Posted by callega View Post
Hi,

I'm a beginner in CFD and obviously in OpenFOAM.
I had a lot of problems trying to convert FLUENT and ANSYS meshes files generated with ANSA, therefore I started to create a problemtype in GID which can generate blockMeshDict files for OpenFoam.

With the hexahedras blocks there is not probles, because in the manuals there are a lot of examples of declarations of this kind of element, but I'm having dificulties with the prism and tetrahedras blocks.

Following the syntax of hexahedron block,
hex (0 1 4 3 9 10 13 12) (10 10 1) simpleGrading (2 2 1)

I'm writing the prisms elements like this
prism (0 1 2 3 4 5) (10 10 1) simpleGrading (2 2 1)

but blockMesh is printing an error message:
"There are no non-lineal edges"

I think that the problem is in the declaration of the prism block. If someone knows how to declare this kind of block and the other kinds of blocks, diferents than the hexahedron, please help me!!!!

Regards

Sebastián
Hi Sebastián,

I may be wrong but I think blockMesh doesn't support prisms with 6 vertices.
Quote:
Originally Posted by OpenFOAM User Guide
The principle behind blockMesh is to decompose the domain geometry into a set of 1 or more three dimensional, hexahedral blocks.
I would create the domain from your last post manually with gmsh and export the mesh to OpenFOAM afterwards.

Best regards,

Kate
KateEisenhower is offline   Reply With Quote

Old   June 1, 2015, 12:38
Default
  #7
New Member
 
Hannah Dietterich
Join Date: Mar 2015
Posts: 1
Rep Power: 0
hdietterich is on a distinguished road
Quote:
Originally Posted by Elisa-L View Post
Hello,

I have to make something like this on openFoam for my job and I have a lot of troubles trying to do it, since I am new on openFoam. Could anyone help?
It is as hjasak says. You can make a prism block by simply reusing the vertices in a hex block description. You can do the same thing when defining the faces. It is described in the documentation here:

http://cfd.direct/openfoam/user-guid...25-1500005.3.3
hdietterich is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with viewing mesh block by block James CFX 0 January 22, 2008 13:11
Trouble with my first blockMeshDict file osimonsimon OpenFOAM Native Meshers: blockMesh 1 October 13, 2006 14:32
How to declare a symmetric tensor or calculate Huke formula haibinli OpenFOAM Running, Solving & CFD 0 July 28, 2006 10:24
error opening multi-block grid file GIOVANNI VIELMA Phoenics 0 April 5, 2006 17:18
DEFINE_ON_DEMAND UDF: How to declare A[ND_ND], etc jx FLUENT 1 November 6, 2003 18:23


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