|
[Sponsors] |
[snappyHexMesh] Giving patch names within stl files |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Nik
Join Date: Oct 2010
Posts: 1
Rep Power: 0 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 694
Rep Power: 28 ![]() ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Noviyani Lim
Join Date: Oct 2010
Posts: 5
Rep Power: 14 ![]() |
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. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |