|
[Sponsors] |
[snappyHexMesh] Best way to create inlet/outlet out of STL files? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 25, 2013, 09:28 |
Best way to create inlet/outlet out of STL files?
|
#1 |
Senior Member
Jose Rey
Join Date: Oct 2012
Posts: 134
Rep Power: 18 |
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. |
|
February 26, 2013, 00:49 |
|
#2 |
Senior Member
Jose Rey
Join Date: Oct 2012
Posts: 134
Rep Power: 18 |
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? |
|
Tags |
engrid, helyx-os, inlet and outlet, meshing 3d, stl format |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Multiple unconnected stl files | JulytoNovember | OpenFOAM Meshing & Mesh Conversion | 6 | February 2, 2024 03:01 |
[OpenFOAM plus] How to create case files in windows? | arussell92 | OpenFOAM Pre-Processing | 0 | March 31, 2016 06:17 |
How to create inlet/outlet/wall STL files from a STL CAD model | Gentible | Mesh Generation & Pre-Processing | 1 | June 23, 2015 11:18 |
Create a video with HMF files | Xavi | FLUENT | 0 | October 8, 2008 05:17 |
Results saving in CFD | hawk | Main CFD Forum | 16 | July 21, 2005 21:51 |