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

[snappyHexMesh] how to define patches with snappyHexMesh from a STL file ?

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 1 Post By Cyp
  • 4 Post By mihaipruna

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2011, 06: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: 299
Rep Power: 18
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
PanPeter likes this.
Cyp is offline   Reply With Quote

Old   May 9, 2011, 09:14
Default
  #2
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 21
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: 195
Rep Power: 16
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;

}

.....
JTDN, granzer, engio and 1 others like this.
__________________
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: 460
Rep Power: 18
lovecraft22 is on a distinguished road
Send a message via Skype™ to lovecraft22
http://www.cfd-online.com/Forums/ope...e-stlfile.html
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


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
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 09:06
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 07:42
[swak4Foam] Error bulding swak4Foam sfigato OpenFOAM Community Contributions 18 August 22, 2013 13:41
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44


All times are GMT -4. The time now is 17:22.