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

[snappyHexMesh] snappyHexMesh and boundary conditions

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 18, 2009, 13:54
Default snappyHexMesh and boundary conditions
  #1
Member
 
James Baker
Join Date: Dec 2009
Posts: 35
Rep Power: 16
fijinx is on a distinguished road
First and foremost, I am new to OpenFOAM, so this may be a silly question or one that has been brought up before. However, I am attempting to run a 2D nozzle problem and have a question on how to get empty on the front and back with snappyHexMesh. As I understand it boundary conditions are applied to patches, so if I apply a BC to the surface of an STL file that is smaller than the bounding box, it would be a 3D BC on the entire surface? I tried making the bounding box thinner than the STL file in the z direction, but came up with an error when trying to run SonicFoam about it not being 1D or 2D because the empty faces weren't divisible by the cells (or something to that effect). If anyone could shed some light on this It would be appreciated!
fijinx is offline   Reply With Quote

Old   December 18, 2009, 15:36
Default
  #2
Member
 
James Baker
Join Date: Dec 2009
Posts: 35
Rep Power: 16
fijinx is on a distinguished road
Actually I think I've figured out that the STL file itself needs to be broken up into the different surfaces, like in the motorBike tutorial example. I've searched all over the place, but can't seem to find a program that can make a multi-surface STL file. Could someone point me in the right direction?
fijinx is offline   Reply With Quote

Old   December 19, 2009, 04:40
Default
  #3
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
linnemann will become famous soon enough
Hi

Yes if you look here http://www.cfd-online.com/Forums/ope...y-patches.html

I have a brief description of how to do it with Salome.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   December 20, 2009, 17:17
Default
  #4
Member
 
James Baker
Join Date: Dec 2009
Posts: 35
Rep Power: 16
fijinx is on a distinguished road
I tried Salome and it works great for separating the Surfaces to apply BC's, however there are two problems.

1) there is no way to define the refinement of the exported STL

2) the different surfaces do not use the same edge points which creates holes at edges, which causes problems in meshing.

If anyone has a better solution, please tell!
fijinx is offline   Reply With Quote

Old   December 21, 2009, 02:53
Default
  #5
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27
linnemann will become famous soon enough
Hi

Forgot to mention that if you want the edges to align you need to create a surface mesh in the MESH module of Salome and then export to STL from there.

You can specify the number of mesh points of a given edge (1D) as a submesh to the surface mesh (2D). This can be done creating a geometry group of the edges in the GEO module and then use this group as a submesh input.

Create a face group(s) of the patches (like inlet, outlet etc.) in the GEO module and in the mesh module right click the mesh and select "create groups from geometry" and select the GEO face group(s) in the tree.

Cant remember if you can export separate groups from the MESH module, but I will make a quick geometry and test it out for you.

EDIT:

Just checked you can only export mesh to stl, not submesh or groups. You can although explode the 3D geometry into faces and use these as separate meshes (can be a tedious process). If some care is taken to the edge mesh (number of segments) you should be able to get a combined STL with no gaps in geometry.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.

Last edited by linnemann; December 21, 2009 at 03:16.
linnemann is offline   Reply With Quote

Old   January 15, 2010, 18:01
Default
  #6
Senior Member
 
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 17
idrama is on a distinguished road
Hey formers!

Could anybody tell what i am supposed to do with defaultPatches from the bounding box defined by the blockMeshDict. I have an internal flow and want to get rid of it.

kinda regards

claus
idrama is offline   Reply With Quote

Old   February 2, 2010, 05:43
Default
  #7
Member
 
Wolfram Kretzschmar
Join Date: Dec 2009
Posts: 71
Rep Power: 16
Wolle is on a distinguished road
Hi James,

Quote:
Originally Posted by fijinx View Post
I tried Salome and it works great for separating the Surfaces to apply BC's, however there are two problems.

1) there is no way to define the refinement of the exported STL
As far, as I followed your other postings, I want to mention the following:
I think you are using SolidWorks for geometry creation, right? So then you have to set the refinement options in SolidWorks, when exporting (to what by the way? IGES? STEP (AP214)?). Salome does only (and exact!) import the geometry that has been triangulated for export by SolidWorks!

Right now I'm working on some scripts for automated use of (SolidWorks produced) IGES files, Salome, converting to STL and finally snappyHexMesh.

Cheers
Wolle
Wolle is offline   Reply With Quote

Old   February 2, 2010, 05:44
Default
  #8
Member
 
Wolfram Kretzschmar
Join Date: Dec 2009
Posts: 71
Rep Power: 16
Wolle is on a distinguished road
Hi all,

Quote:
Originally Posted by idrama View Post
Could anybody tell what i am supposed to do with defaultPatches from the bounding box defined by the blockMeshDict. I have an internal flow and want to get rid of it.
I think I have just posted a very similar question:

http://www.cfd-online.com/Forums/ope...tml#post244544

Cheers
Wolle
Wolle 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
[snappyHexMesh] SnappyHexMEsh, boundary conditions, STL, failed solver claudeZHAW OpenFOAM Meshing & Mesh Conversion 1 November 25, 2017 06:26
[snappyHexMesh] snappyHexMesh Boundary Conditions Cyberholmes OpenFOAM Meshing & Mesh Conversion 10 July 10, 2017 22:05
Entrainment boundary conditions in a natural convection model emat OpenFOAM Running, Solving & CFD 1 March 28, 2017 09:37
Boundary conditions definition using uniformFixedValue SF_ OpenFOAM Pre-Processing 0 October 14, 2015 22:06
[Other] Internal Boundary with different boundary conditions ripudaman OpenFOAM Meshing & Mesh Conversion 0 August 23, 2013 19:48


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