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

Giving patch names within stl files

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

Reply
 
LinkBack Thread Tools 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: 19
niklas 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: 6
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
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
Multi region meshing & recovering the original patch names fluidpath OpenFOAM Native Meshers: snappyHexMesh and Others 4 May 19, 2013 19:13
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03:01
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 06:53.