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

[snappyHexMesh] Valve .stl format

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2018, 02:33
Default Valve .stl format
  #1
New Member
 
Join Date: Mar 2018
Posts: 16
Rep Power: 8
zizou1 is on a distinguished road
Hello everyone!
I'm looking for a butterfly valve or a gate valve in .stl format to put inside a cylindric pipe, preferably not completely closed/opened.
Can anyone help me?
Thank you,
Matteo
zizou1 is offline   Reply With Quote

Old   May 15, 2018, 03:39
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!

Download one model from grabCAD (maybe you can find one there in STEP format), and prepare your stl files. You can do it with salome for example.
simrego is offline   Reply With Quote

Old   May 15, 2018, 04:53
Default
  #3
New Member
 
Join Date: Mar 2018
Posts: 16
Rep Power: 8
zizou1 is on a distinguished road
Thank you simrego!
Actually I found various stl valves each of different diameters, but none of the diameter of my pipe: is this a problem for the snappy or is compatible anyway?
zizou1 is offline   Reply With Quote

Old   May 15, 2018, 06:49
Default
  #4
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
If you are doing it for fun, it can be more or less fine. But u could have problems during the snapping process due to the intersecting surfaces (if it is larger than your pipe).

But I still recommend you to find or make an appropriate CAD model and prepare your own .stl files. In salome (It is free, and there are a lot of videos, but you can use any cad software) you can easily extract your surfaces and export them as .stl
If you have a good stl, the snappyhexmesh will be more accurate and faster and etc. So you will be much happier!
simrego is offline   Reply With Quote

Old   May 15, 2018, 07:32
Default
  #5
New Member
 
Join Date: Mar 2018
Posts: 16
Rep Power: 8
zizou1 is on a distinguished road
Basically the advice is to import in salome the step file, scale it to the right dimensions and then export as stl file?
Sounds good anyway, thank you.
One more doubt: the diameter of the pipe has to coincide with the internal surface of the valve, hasn't it?
zizou1 is offline   Reply With Quote

Old   May 15, 2018, 07:49
Default
  #6
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Not really. My advice is to do something like this:
https://www.youtube.com/watch?v=5U7j...l4XW5l9VzlZdKv
Like this, you will have a nice, closed stl surface.
You can find many many examples about the preprocessing on the internet.
simrego is offline   Reply With Quote

Old   May 15, 2018, 08:44
Default
  #7
New Member
 
Join Date: Mar 2018
Posts: 16
Rep Power: 8
zizou1 is on a distinguished road
Lovely!
Thank you really helpful!
zizou1 is offline   Reply With Quote

Old   May 16, 2018, 01:49
Default
  #8
New Member
 
Join Date: Mar 2018
Posts: 16
Rep Power: 8
zizou1 is on a distinguished road
Now I've got the stl file, but when I open it with Notepad this is what comes out (attached image).
Do you know why?
Attached Images
File Type: jpg problema.jpg (199.8 KB, 6 views)
zizou1 is offline   Reply With Quote

Old   May 16, 2018, 02:02
Default
  #9
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
Phicau is on a distinguished road
Hi zizou1,

the STL is in binary format. You can convert it to ascii with a tool like meshlab.

I think that OpenFOAM can work with binary STLs.

Best,

Pablo
__________________
Check out my new project: olaFlow --> The olaFlow Support Thread
Phicau is offline   Reply With Quote

Old   May 16, 2018, 04:44
Default
  #10
New Member
 
Join Date: Mar 2018
Posts: 16
Rep Power: 8
zizou1 is on a distinguished road
Thank you Pablo!
zizou1 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
udf for valve closing a pipe using dynamic mesh chem engineer Fluent UDF and Scheme Programming 2 May 13, 2017 09:39
[CAD formats] .RAW to .stl format!! Saideep OpenFOAM Meshing & Mesh Conversion 5 September 1, 2015 12:15
Modelling an initially closed valve which a fluid opens siw CFX 1 April 26, 2014 06:32
Gate valve flow simulations... nikesh FloEFD, FloWorks & FloTHERM 5 January 28, 2014 01:31
[ICEM] best method to generate surfaces from a .stl file format snudurupati ANSYS Meshing & Geometry 2 July 23, 2009 10:21


All times are GMT -4. The time now is 19:53.