|
[Sponsors] |
July 19, 2024, 08:38 |
3D cylinder
|
#1 |
New Member
Ashish Mishra
Join Date: Jan 2024
Posts: 3
Rep Power: 2 |
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 ); |
|
July 19, 2024, 16:28 |
|
#2 |
Senior Member
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 631
Rep Power: 18 |
alternative code:
Code:
gmsh.model.occ.addCylinder(-2 * R, 0, 0, 4 * R, 0, 0, Rs, 4) |
|
|
|
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 03:19 |
How to implement time-varying boundary conditions in an enclosed cylinder | Alejandro-FA | OpenFOAM Pre-Processing | 0 | May 14, 2020 07:29 |
Drag force coefficient too high for a flow past a cylinder using komega sst | Scabbard | OpenFOAM Running, Solving & CFD | 37 | March 21, 2016 17:16 |
Forces Acting on a Rotating Cylinder (Moving Mesh) | dreamchaser | CFX | 5 | April 25, 2015 07:01 |
[blockMesh] Specifying boundary faces failes in blockMesh | blaise | OpenFOAM Meshing & Mesh Conversion | 0 | May 10, 2010 04:56 |