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

Boundary conditions on patches, from a stl file.

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 6, 2012, 09:18
Default Boundary conditions on patches, from a stl file.
  #1
Member
 
Join Date: Sep 2012
Posts: 30
Rep Power: 4
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, 46 views)
File Type: jpg tunnel2.jpg (28.1 KB, 45 views)
emirust is offline   Reply With Quote

Old   September 9, 2012, 00:25
Default
  #2
Member
 
Join Date: Nov 2010
Posts: 50
Rep Power: 6
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, 03:49
Default
  #3
Member
 
Join Date: Sep 2012
Posts: 30
Rep Power: 4
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, 04:36
Default
  #4
Member
 
Join Date: Nov 2010
Posts: 50
Rep Power: 6
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, 09:05
Default
  #5
Member
 
Ken
Join Date: Aug 2012
Posts: 61
Blog Entries: 1
Rep Power: 4
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
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
Defining boundary conditions STL file marco100 OpenFOAM Pre-Processing 7 May 23, 2012 08:06
2.0.x on Mac OSX niklas OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 74 March 28, 2012 16:46
Update boundary conditions calculated by an external program CedricVH OpenFOAM 2 January 15, 2010 12:55
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


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