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

[snappyHexMesh] Boundary conditions on patches, from a stl file.

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 6, 2012, 10:18
Default Boundary conditions on patches, from a stl file.
  #1
Member
 
Join Date: Sep 2012
Posts: 30
Rep Power: 13
emirust is on a distinguished road
Hey Foamers!

I am trying to do some simulations on a tunnel of a water dam. It is a .stl file that has not been computer generated, but rather found by taking some measurements on site. Check out the attached picture.

What I do is first run blockMesh to create a rectangular box around the stl geometry, and then run snappyHexMesh to mesh my actual geometry.

My question concerns the boundary of my geometry (here inlet and outlet of water). Until now, I haven't found another way than creating my outer box so it cuts the tunnel at the entrance and exit (as seen in picture 2, for the last part of the tunnel). In my initial conditions, I would use the "inlet" and "outlet" patch from the outer box to set my initial and boundary conditions.

Do you guys have any idea on a better way to procede?

Would opening this stl file in a CAD software to manipulate it , and "explode" the geometry in three parts: inlet, outlet, tunnel, and somehow combine them in openFoam work?

So, if you skimmed through the post, my question is: how to create different patches from a stl files for boundary condtions. ;-)

Thanks!
Attached Images
File Type: jpg tunnel.jpg (46.8 KB, 92 views)
File Type: jpg tunnel2.jpg (28.1 KB, 90 views)
emirust is offline   Reply With Quote

Old   September 9, 2012, 01:25
Default
  #2
Member
 
Join Date: Nov 2010
Posts: 62
Rep Power: 15
Doug68 is on a distinguished road
In the absence of a learned reply I'll have a go...

I've yet to work out the detail of this myself (which is something I need to do). But I believe multiple ascii stl files can be combined into a single stl (with the name for each part of the stl being different) each part of the stl file can then become treated as a patch.

Once you have that I would think you define a patch as an inlet or outlet?
Doug68 is offline   Reply With Quote

Old   September 10, 2012, 04:49
Default
  #3
Member
 
Join Date: Sep 2012
Posts: 30
Rep Power: 13
emirust is on a distinguished road
So, how would you procede to make several stl files out of an original geometry?

I also found some tools for meshManipulation here:

http://www.openfoam.com/features/mesh-manipulation.php

Some interesting functions as "createPatch", that would help me I think.

Anyone know where I can find some informations about createPatch, faceSet etc... ?

Thanks!
emirust is offline   Reply With Quote

Old   September 10, 2012, 05:36
Default
  #4
Member
 
Join Date: Nov 2010
Posts: 62
Rep Power: 15
Doug68 is on a distinguished road
The process of creating separate STL files will depend on the software being used.
For me I'm using SolidEdge so instead of creating a single large file from an assembly I'd break this down by extracting the STL at sub-assembly or even part level if I wish.
Doug68 is offline   Reply With Quote

Old   October 23, 2012, 10:05
Default
  #5
Member
 
Join Date: Aug 2012
Posts: 68
Blog Entries: 1
Rep Power: 13
Nucleophobe is on a distinguished road
If you size your bounding box right in the blockMesh, you should be able to use it to create your patches.

You just need to define the patches you want in the blockMeshDict (i.e. inlet, outlet, etc.)

I've done this before. Let me know if you'd like to see an example dict file.

Good luck!
Nucleophobe is offline   Reply With Quote

Reply

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
Custom Thermophysical Properties wsmith02 OpenFOAM 4 June 1, 2023 15:30
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 22:53
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 06:18


All times are GMT -4. The time now is 07:26.