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

[snappyHexMesh] Giving patch names within stl files

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2010, 09:05
Default Giving patch names within stl files
  #1
New Member
 
Nik
Join Date: Oct 2010
Posts: 1
Rep Power: 0
Nik_ is on a distinguished road
Hi - I'm trying to build a mesh with snappy using an stl file. The following example builds a corner of a cube, but I also want to name the individual faces on the corner cube so I can apply an appropriate boundary condition at these (named) patches. Is this something I can do ?

Thanks for all your help in advance!

MANY THANKS TO Niklas for help with this... for the record:

solid cube_corner
facet normal 0.0 -1.0 0.0
outer loop
vertex 0.0 0.0 0.0
vertex 1.0 0.0 0.0
vertex 0.0 0.0 1.0
endloop
endfacet
facet normal 0.0 0.0 -1.0
outer loop
vertex 0.0 0.0 0.0
vertex 0.0 1.0 0.0
vertex 1.0 0.0 0.0
endloop
endfacet
facet normal 0.0 0.0 -1.0
outer loop
vertex 0.0 0.0 0.0
vertex 0.0 0.0 1.0
vertex 0.0 1.0 0.0
endloop
endfacet
facet normal 0.577 0.577 0.577
outer loop
vertex 1.0 0.0 0.0
vertex 0.0 1.0 0.0
vertex 0.0 0.0 1.0
endloop
endfacet
endsolid


becomes

solid cube_corner1
facet normal 0.0 -1.0 0.0
outer loop
vertex 0.0 0.0 0.0
vertex 1.0 0.0 0.0
vertex 0.0 0.0 1.0
endloop
endfacet
endsolid cube_corner1
solid cube_corner2
facet normal 0.0 0.0 -1.0
outer loop
vertex 0.0 0.0 0.0
vertex 0.0 1.0 0.0
vertex 1.0 0.0 0.0
endloop
endfacet
facet normal 0.0 0.0 -1.0
outer loop
vertex 0.0 0.0 0.0
vertex 0.0 0.0 1.0
vertex 0.0 1.0 0.0
endloop
endfacet
facet normal 0.577 0.577 0.577
outer loop
vertex 1.0 0.0 0.0
vertex 0.0 1.0 0.0
vertex 0.0 0.0 1.0
endloop
endfacet
endsolid cube_corner2

Last edited by Nik_; October 26, 2010 at 09:45. Reason: solution added
Nik_ is offline   Reply With Quote

Old   October 26, 2010, 09:36
Default
  #2
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
yes, your stl should look like this

solid patch1
...facets
endsolie patch1
solid patch2
...facets
endsolid patch2


at the moment all your facets are grouped together
niklas is offline   Reply With Quote

Old   October 27, 2010, 13:41
Default Using blender to name patches
  #3
New Member
 
Noviyani Lim
Join Date: Oct 2010
Posts: 5
Rep Power: 15
Novi is on a distinguished road
Hey, I did my stl file in solidworks and saved it in stl file. Then I assembled the parts in blender so I can name the patches. How exactly can i do that?
all i did was click at the body and then change the 'OB' field into the name that i wanted. Is it correct?
and also i tried to export it back as a single stl file, but it seems it wont produce the whole parts into one. it only generated an stl file with a single part.

can anyone help me with this?


thank you so much.
Novi 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
createPatch Segmentation Fault (CORE DUMPED) sam.ho OpenFOAM Pre-Processing 2 April 21, 2014 02:01
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 04:04
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 20:05.