CFD Online Logo CFD Online URL
Home > Forums > Special Topics > Mesh Generation & Pre-Processing

How to create the surface stl file of cylinder

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

LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2020, 23:04
Default How to create the surface stl file of cylinder
New Member
Join Date: Mar 2017
Posts: 28
Rep Power: 5
saatt is on a distinguished road
Hi all

How to create the surface file of cylinder, just the riser part, no bottom and top face.
How to create it in Gmsh or FreeCAD or others?
Please give me some suggestions.
saatt is offline   Reply With Quote

Old   July 24, 2020, 07:02
Tommaso M.
Join Date: Sep 2018
Location: Milan, Italy
Posts: 44
Rep Power: 3
TommyM is on a distinguished road
Hi Saatt,

You have to create the cylinder geometry with a CAD software (SolidWorks, FreeCAD, ...), for example simply extruding it from a circle. Then, you save it in .stl format and put it in the constant/triSurface folder of your case. After that, you create the mesh (blockMesh) and extract the geometry from the stl (surfaceFeatureExtract). Finally, you use snappyHexMesh to "adapt" the mesh to such geometry.

Anyway, in this way you will have a single patch, i.e. the cylinder (you cannot have, for example, bottom, top and lateral face patches). I think this is due to the way the cylinder is created by the CAD software.
I am looking for a way to create it as an "assembly of patches" in order to set different boundary conditions on each face. If anyone knows how to do it, I would appreciate your help.

TommyM is offline   Reply With Quote


stl file; gmsh; freecad

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] Installation Problem with OF 6 version Aurel OpenFOAM Community Contributions 9 November 30, 2018 10:20
OpenFoam "Permission denied" and "command not found" problems. OpenFOAM Running, Solving & CFD 11 January 2, 2018 06:47
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51
CFX4.3 -build analysis form Chie Min CFX 5 July 12, 2001 23:19

All times are GMT -4. The time now is 10:21.