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

Problem creating mesh, quarter of cylinder

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2018, 09:09
Default Problem creating mesh, quarter of cylinder
  #1
New Member
 
Carlos
Join Date: May 2017
Posts: 16
Rep Power: 9
Ricardo1992 is on a distinguished road
Hi all,

I have problems creating a mesh (quarter of a cylinder). I tried to follow the user guide and other posts, but I am getting some problems. Could you please have a look at it?

I have attached an image which the vertices that I am trying to construct.


/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: plus |
| \\ / 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 0 0.002)
(0 0 0.008)
(0 0.008 0)
(0 0.002 0)

(0.01 0 0.008)
(0.01 0 0.002)
(0.01 0 0)
(0.01 0.002 0)
(0.01 0.008 0)

);


blocks
(


hex (0 4 1 0 7 8 6 7) (20 20 1200) simpleGrading (1 1 1)
hex (4 3 2 1 8 9 5 6) (20 20 1200) simpleGrading (1 1 1)

);

edges
(
arc 1 4 (0.70710678 1 0.70710678)
arc 2 3 (0.70710678 1 0.70710678)
arc 6 8 (0.70710678 1 0.70710678)
arc 5 9 (0.70710678 1 0.70710678)

);


patches
(

patch front
(
(0 1 6 7)
(1 2 5 6)
)
patch back
(
(0 4 8 7)
(4 3 9 8)
)
patch upper_wall
(
(2 3 9 5)
)
patch inlet
(
(0 1 4 0)
)
patch left_wall
(
(1 2 3 4)
)
patch outlet
(
(7 6 8 7)
(6 5 9 8)
)

);



mergePatchPairs
(
);

thanks in advance
Attached Files
File Type: pdf [Untitled].pdf (8.0 KB, 37 views)
Ricardo1992 is offline   Reply With Quote

Old   May 23, 2018, 16:38
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

is your drawing correct? It is not a simple geometry if I get your stuff correct.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   May 23, 2018, 16:59
Default
  #3
New Member
 
Carlos
Join Date: May 2017
Posts: 16
Rep Power: 9
Ricardo1992 is on a distinguished road
hello Tobi,

Thanks for getting back. The drawing is correct, two concentric cylinders, the vertices in the front are

0 1 4 for the smaller cylinder
0 2 3 for the bigger cylinder

the points for the back

7 6 8 for the smaller cylinder
7 5 9 for the bigger cylinder

Is it correct that I can do an arc between the vertices 5-9 and 2-3?

thanks in advance
Ricardo1992 is offline   Reply With Quote

Old   May 23, 2018, 17:29
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
I am sorry - I cannot get your picture with the points and how you want to build the blocks. It does not make sense to me - even if the drawing is correct.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   May 24, 2018, 06:55
Default
  #5
New Member
 
Join Date: Aug 2012
Posts: 15
Rep Power: 14
sweet_satan is on a distinguished road
Can you elaborate more on problem you want to solve? Do you want a baffle between those smaller and bigger cylinders?
sweet_satan is offline   Reply With Quote

Old   February 16, 2022, 23:20
Post
  #6
New Member
 
saeed sangchooly
Join Date: Feb 2022
Posts: 17
Rep Power: 4
saeed sangchooly is on a distinguished road
hi carlos
I'm dealing with the same geometry (two concentric cylinders) and i want a quarter of it like you. I used fluent mesh generator for meshing because i didn't know that it's possible to generate this kind of geometry with blockMesh.
did you managed to solve your problem with blockMesh?
saeed sangchooly is offline   Reply With Quote

Old   February 17, 2022, 06:51
Default
  #7
Senior Member
 
Josh Williams
Join Date: Feb 2021
Location: Scotland
Posts: 113
Rep Power: 5
joshwilliams is on a distinguished road
Quote:
Originally Posted by saeed sangchooly View Post
hi carlos
I'm dealing with the same geometry (two concentric cylinders) and i want a quarter of it like you. I used fluent mesh generator for meshing because i didn't know that it's possible to generate this kind of geometry with blockMesh.
did you managed to solve your problem with blockMesh?

I am not sure about this with blockMesh, but perhaps a better alternative than fluent meshing would be gmsh? Then you can use gmshToFoam?
joshwilliams is offline   Reply With Quote

Old   February 17, 2022, 09:19
Default
  #8
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
I would advice using Salome.
Took me approximately 3min from start to finish.
Attached Images
File Type: png 2022-02-17 14_18_54-SALOME 9.7.0 - [Study1].png (71.8 KB, 32 views)
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Reply

Tags
mesh 3d, opemfoam


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
FLUENT adding mesh nodes problem when importing 3D mesh from ICEM guxin7005 FLUENT 2 June 27, 2016 22:41
3-d mesh gambit (cylinder within a cylinder) Jason ANSYS Meshing & Geometry 29 October 30, 2015 09:59
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
Problem with building geometry - concentric cylinders Rhoddwen OpenFOAM Pre-Processing 9 December 17, 2014 11:02
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 10:38


All times are GMT -4. The time now is 07:59.