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

How to declare a prism block in the blockMeshDict file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2008, 12: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, 12:45
Default This should be in documentatio
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
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, 08:37
Default Regarding prism cells division
  #3
Member
 
CFDUser
Join Date: Mar 2014
Posts: 59
Rep Power: 13
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, 79 views)
CFDUser_ is offline   Reply With Quote

Old   April 3, 2014, 03:55
Default
  #4
Senior Member
 
Vangelis Skaperdas
Join Date: Mar 2009
Location: Thessaloniki, Greece
Posts: 287
Rep Power: 21
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, 06:44
Default
  #5
New Member
 
Elisa Lafforgue
Join Date: May 2015
Location: France
Posts: 13
Rep Power: 11
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, 08:37
Default
  #6
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
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, 13:38
Default
  #7
New Member
 
Hannah Dietterich
Join Date: Mar 2015
Posts: 8
Rep Power: 11
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


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
problems with viewing mesh block by block James CFX 0 January 22, 2008 13:11
[blockMesh] Trouble with my first blockMeshDict file osimonsimon OpenFOAM Meshing & Mesh Conversion 1 October 13, 2006 15:32
How to declare a symmetric tensor or calculate Huke formula haibinli OpenFOAM Running, Solving & CFD 0 July 28, 2006 11:24
error opening multi-block grid file GIOVANNI VIELMA Phoenics 0 April 5, 2006 18: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 16:39.