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

how to define patches with snappyHexMesh from a STL file ?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 9, 2011, 05:46
Default how to define patches with snappyHexMesh from a STL file ?
  #1
Cyp
Senior Member
 
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 230
Rep Power: 9
Cyp is on a distinguished road
Hi!

I had a mesh defined as a STL file. Let's say my geometry is a cylinder.

However my STL file only provides a default patche and I would like to define 3 different patches (inlet, outlet, wall). Do you know how can I do such a thing with snappyHexMesh (or another tool) ?


Best regards,
Cyp
Cyp is offline   Reply With Quote

Old   May 9, 2011, 08:14
Default
  #2
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 360
Rep Power: 12
romant is on a distinguished road
you can use names stl files, where the patches of your cylinder have names (check the motorbike tutorial for this)

or provide multiple stl files where each one contains the patch that is supposed to me meshed.
__________________
~roman
romant is offline   Reply With Quote

Old   March 14, 2012, 12:35
Default
  #3
Sof
New Member
 
Soufien T
Join Date: Nov 2011
Posts: 2
Rep Power: 0
Sof is on a distinguished road
Quote:
Originally Posted by Cyp View Post
Hi!

I had a mesh defined as a STL file. Let's say my geometry is a cylinder.

However my STL file only provides a default patche and I would like to define 3 different patches (inlet, outlet, wall). Do you know how can I do such a thing with snappyHexMesh (or another tool) ?


Best regards,
Cyp
Dear Cyp,

I know the thread is quite old but I wanted to ask the same question you already asked on the forum.

Did you manage to define inlet and outlet patches when using snappyhexmesh. If yes, could you please let me know how you did.

thank you
Sofiene
Sof is offline   Reply With Quote

Old   March 14, 2012, 20:08
Default
  #4
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 190
Blog Entries: 1
Rep Power: 7
mihaipruna is on a distinguished road
If you have one stl file with multiple solids defined one after another:

geometry

{

yourfile.stl

{

type triSurfaceMesh;

name whatever;

regions

{

solid1_name_in_stl_file

{

name whatever1;

}

solid2_name_in_stl_file

{

name whatever2;

}

.....
__________________
Mihai Pruna's Bio
mihaipruna is offline   Reply With Quote

Old   March 15, 2012, 12:30
Default
  #5
Senior Member
 
lore
Join Date: Mar 2010
Location: Italy
Posts: 463
Rep Power: 9
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
SnappyHexMesh with local refinement of ONE STLfile
lovecraft22 is offline   Reply With Quote

Old   March 16, 2012, 14:28
Default
  #6
Sof
New Member
 
Soufien T
Join Date: Nov 2011
Posts: 2
Rep Power: 0
Sof is on a distinguished road
thank you!!
Sof 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
GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM 300 October 29, 2014 19:00
snappyHexMesh stl file read problem joeholdsworth OpenFOAM Native Meshers: snappyHexMesh and Others 4 June 25, 2011 03:29
Version 15 on Mac OS X gschaider OpenFOAM Installation 120 December 2, 2009 11:23
OpenFOAM Install Script ljsh OpenFOAM Installation 82 October 12, 2009 11:47
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24


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