CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Native Meshers: snappyHexMesh and Others

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

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

Like Tree1Likes
  • 1 Post By JR22

Reply
 
LinkBack Thread Tools Display Modes
Old   February 25, 2013, 09: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: 126
Rep Power: 8
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 21:29.
JR22 is offline   Reply With Quote

Old   February 26, 2013, 00:49
Default
  #2
Senior Member
 
JR22's Avatar
 
Jose Rey
Join Date: Oct 2012
Posts: 126
Rep Power: 8
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 likes this.
JR22 is offline   Reply With Quote

Reply

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

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple unconnected stl files JulytoNovember OpenFOAM Native Meshers: snappyHexMesh and Others 4 December 13, 2012 23:13
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
ParaView 3.6.1 & 3.7.0: Can't view STL files johannes OpenFOAM Paraview & paraFoam 2 December 3, 2009 15:07
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 22:12.