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

[CAD formats] STL file meshing, refinement, BCs

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2015, 12:18
Question STL file meshing, refinement, BCs
  #1
New Member
 
Eaglebird's Avatar
 
Join Date: Jul 2015
Posts: 2
Rep Power: 0
Eaglebird is on a distinguished road
Greetings all,

I've been looking into using OpenFOAM for CFD simulation for a little over half a year now and have been slowly learning the setup for cases and simulations. Unfortunately I'm still a bit lost on how to take a model I've created and perform a simulation on it, or how to mesh it correctly.

As it stands, I have an STL file of a 3-D half-wing, created in CATIA V5, and a working installation of OpenFOAM (ran tutorial cases). I've tried using GmsH and enGrid to produce a mesh + boundary conditions but I cannot finish a mesh, to say the least.

EnGrid typically mangles my model, producing a noisy version of the wing where the top and bottom surfaces intersect randomly. Even if I can set boundary conditions, the geometry is useless as such. GmsH on the other hand I cannot figure out how to set boundary conditions nor do I know how to refine the mesh to be something other than the subdivision of the original mesh.

Furthermore, as related to boundary conditions, I do not know whether I should be adding "patches" in CATIA for a 'wind tunnel' or if I should simply model the wing alone and add patches in the meshing program.

tl;dr I have a CATIA STL file I need to mesh and simulate in OpenFOAM and I don't know where to start.
Eaglebird is offline   Reply With Quote

Old   August 3, 2015, 08:15
Default
  #2
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Hello,

I had pretty much the same questions, so don't worry. When you mesh a wing with enGrid, you have to make sure the upper and lower part of the wing are patched separately. Therefore you can use the stl you created in CATIA and patch it with Blender. How? -> https://github.com/enGits/engrid/wik...and-enGrid-1.2
Working with stl in gmsh isn't easy, I haven't figured it out completely yet. You can set boundary codes with physical entities.

Quote:
Furthermore, as related to boundary conditions, I do not know whether I should be adding "patches" in CATIA for a 'wind tunnel' or if I should simply model the wing alone and add patches in the meshing program
Either is possible. I prefer to create the wind tunnel in Blender or gmsh.

Best regards,

Kate
KateEisenhower is offline   Reply With Quote

Old   August 16, 2015, 18:48
Default
  #3
New Member
 
Eaglebird's Avatar
 
Join Date: Jul 2015
Posts: 2
Rep Power: 0
Eaglebird is on a distinguished road
The problem I'm having is more or less that I'm not sure how to name patches, walls, etc. from an STL geometry. Every time I port it into gmsh I can't select anything specific to add to a physical group, it's all or nothing. enGrid can separate and name the surfaces fine but it can never create a volume mesh. I'm still not sure if I should be trying to mesh the airfoil + the tunnel or if I should mesh the airfoil and add patches some other way.

I managed to get a box + airfoil meshed with the combination of blockmeshdict and snappyhexmesh, but the airfoil is inserted after time 0, and I'm fairly certain I'm not getting any results because there's no volume mesh to carry U over the airfoil

As it stands my STL looks something like this:

...with the airfoil surrounded by a box with a wall of symmetry at its root. I can change refinement levels fairly easily, whether in CATIA, gmsh, or enGrid, I just cannot for the life of me name boundaries.

At the very least, I can see a volume mesh exists in some way shape or form through gmsh. Whether it makes it to OpenFOAM I have no clue.


Beautiful I know
Eaglebird is offline   Reply With Quote

Reply

Tags
boundary condition, catia, openfoam, patch, stl


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
OpenFoam "Permission denied" and "command not found" problems. iyidaniel@yahoo.co.uk OpenFOAM Running, Solving & CFD 11 January 2, 2018 07:47
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 06:18
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 12:46


All times are GMT -4. The time now is 06:08.