CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

3D cylinder

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By bigfootedrockmidget

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 19, 2024, 07:38
Default 3D cylinder
  #1
New Member
 
Ashish Mishra
Join Date: Jan 2024
Posts: 5
Rep Power: 2
aashishkmishra9 is on a distinguished road
Hello everyone,
I am currently trying to simulate boiling heat transfer phenomena and need to create a 3D cylinder. I have attempted to create the cylinder using a simple code, but the resulting meshes are not satisfactory. Could anyone kindly provide an alternative code or method to generate a 3D cylinder?
Thank you very much for your help.


my code:
scale 0.001;

vertices
(
(0 0 0) // vertex 0
(7.2 -7.2 0) // vertex 1
(7.2 7.2 0) // vertex 2
(-7.2 7.2 0) // vertex 3
(-7.2 -7.2 0) // vertex 4
(7.2 -7.2 3500) // vertex 5
(7.2 7.2 3500) // vertex 6
(-7.2 7.2 3500) // vertex 7
(-7.2 -7.2 3500) // vertex 8
(0 0 3500) // vertex 17


);

blocks
(
hex (1 2 3 4 5 6 7 8) (10 10 3500) simpleGrading (1 1 1) // block 1
);

edges
(
arc 1 2 (10.182337 0 0) // edge 1
arc 2 3 (0 10.182337 0) // edge 2
arc 3 4 (-10.182337 0 0) // edge 3
arc 4 1 (0 -10.182337 0) // edge 4
arc 5 6 (10.182337 0 3500) // edge 9
arc 6 7 (0 10.182337 3500) // edge 10
arc 7 8 (-10.182337 0 3500) // edge 11
arc 8 5 (0 -10.182337 3500) // edge 12
);
aashishkmishra9 is offline   Reply With Quote

Old   July 19, 2024, 15:28
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 596
Rep Power: 17
bigfootedrockmidget is on a distinguished road
alternative code:
Code:
gmsh.model.occ.addCylinder(-2 * R, 0, 0, 4 * R, 0, 0, Rs, 4)
aashishkmishra9 likes this.
bigfootedrockmidget 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
Flow past a 2D cylinder - High Re (1E+05) - Cd too high Pervispasco OpenFOAM Running, Solving & CFD 4 March 14, 2022 02:19
How to implement time-varying boundary conditions in an enclosed cylinder Alejandro-FA OpenFOAM Pre-Processing 0 May 14, 2020 06:29
Drag force coefficient too high for a flow past a cylinder using komega sst Scabbard OpenFOAM Running, Solving & CFD 37 March 21, 2016 16:16
Forces Acting on a Rotating Cylinder (Moving Mesh) dreamchaser CFX 5 April 25, 2015 06:01
[blockMesh] Specifying boundary faces failes in blockMesh blaise OpenFOAM Meshing & Mesh Conversion 0 May 10, 2010 03:56


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