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

[snappyHexMesh] Best way to create inlet/outlet out of STL files?

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

Like Tree2Likes
  • 2 Post By JR22

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 25, 2013, 08:28
Default Best way to create inlet/outlet out of STL files?
  #1
Senior Member
 
JR22's Avatar
 
Jose Rey
Join Date: Oct 2012
Posts: 134
Rep Power: 17
JR22 will become famous soon enough
Hi,

I am fairly new to OpenFoam (I am an ex-Comsol refugee). I am trying to use one of the pre-processing/meshing packages (Helyx-OS, Engrid, etc.) to model the internal flow of a contraption for which I have a surface file (STL). My problem is that I can't find a way of defining the inlet and outlet faces (boundaries) using such software. This has to be a common initial problem for beginners.

I have been trying to use a single STL of the whole contraption. Is there a surface-mesh format to use better than STL that allows definition of what faces are? I have been able to use Helyx-OS successfully to create a wind-tunnel type simulation. But this more basic one, purportedly simpler, is becoming kind of a pain.

Thank you very much,

Jose

Last edited by JR22; March 1, 2013 at 20:29.
JR22 is offline   Reply With Quote

Old   February 25, 2013, 23:49
Default
  #2
Senior Member
 
JR22's Avatar
 
Jose Rey
Join Date: Oct 2012
Posts: 134
Rep Power: 17
JR22 will become famous soon enough
I got it to work. This is what I did:

Using a combination of FreeCAD and MeshLab (both open source):
1. I erased the outlet faces from the STL and created a new STL with only the outlet faces. The STLs were aligned so that when I call both, the lid (outlet) falls in place. I didn't care for the inlet because I just cut the tube in the next step.
Using Helyx-OS (uses SnappyHexMesh):
2. I uploaded both STLs (body, outlet) as surfaces (not volumes).
3. I created a bounding box. Since one of the sides of the bounding box is orthogonal to the inlet tube, I just made the box small enough so it cut it. Set up my refining levels for boths surfaces. Nothing else used refinement.
4. In the last step of meshing I put the "material point" coordinate in a place where the flow will exist (within the contraption)
5. Ran the meshing
6. Reloaded the model
7. Went to the "Case Setup", and set my boundary conditions and parameters as in the youtube tutorial (http://www.youtube.com/watch?v=yJbFnFzDLqo).
...
After you get the results use within your run directory:
reconstructParMesh -constant followed by
reconstructPar
paraFoam

I've seen in this forum a blender script to create named STLs, however, i am not a blender user. Is there a readable mesh file that SnappyHexMesh can access which can contain names?
chegdan and ms.hashempour like this.
JR22 is offline   Reply With Quote

Reply

Tags
engrid, helyx-os, inlet and outlet, meshing 3d, stl format

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
[snappyHexMesh] Multiple unconnected stl files JulytoNovember OpenFOAM Meshing & Mesh Conversion 6 February 2, 2024 02:01
[OpenFOAM plus] How to create case files in windows? arussell92 OpenFOAM Pre-Processing 0 March 31, 2016 05:17
How to create inlet/outlet/wall STL files from a STL CAD model Gentible Mesh Generation & Pre-Processing 1 June 23, 2015 10:18
Create a video with HMF files Xavi FLUENT 0 October 8, 2008 04:17
Results saving in CFD hawk Main CFD Forum 16 July 21, 2005 20:51


All times are GMT -4. The time now is 16:31.