CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Open Source Meshers: Gmsh, Netgen, CGNS, ...

Feature request: add boundary name to stl solid name

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 16, 2010, 01:51
Default Feature request: add boundary name to stl solid name
  #1
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 451
Rep Power: 15
linnemann will become famous soon enough
Hi.

I've posted a feature request on the netgen SF page and just added it here for interested people.

Add the possibility to use the assigned boundary conditions to add name for STL solids.

This way it can be used in SnappyHexMesh in OpenFOAM without having to split the STL file in seperate geometries and will allow for a fully defined surface without leaks.

example of ACSII STL file as it is now when exporting, only one triangle

Code:
solid
facet normal -0.9990862153 -0.03061211299 -0.02982671458
outer loop
vertex -4990.620641 -306.11373 0
vertex -5000 3.061616998e-13 8.333027861e-09
vertex -4991.095326 0 -298.2741069
endloop
endfacet
endsolid
wanted export from NG when one have assigned the BC's

Code:
solid Boundary_0
facet normal -0.9990862153 -0.03061211299 -0.02982671458
outer loop
vertex -4990.620641 -306.11373 0
vertex -5000 3.061616998e-13 8.333027861e-09
vertex -4991.095326 0 -298.2741069
endloop
endfacet
endsolid Boundary_0
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.

Last edited by linnemann; August 16, 2010 at 06:23.
linnemann is offline   Reply With Quote

Old   August 16, 2010, 02:26
Default
  #2
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 451
Rep Power: 15
linnemann will become famous soon enough
Hi all

as a temporarily workaround I found a way to do this.

Code:
surfaceMeshTriangulate --help
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.5-dev                               |
|   \\  /    A nd           | Revision: exported                              |
|    \\/     M anipulation  | Web:      http://www.OpenFOAM.org               |
\*---------------------------------------------------------------------------*/

Usage: surfaceMeshTriangulate <output file> [-case dir] [-parallel] [-patches (patch0 .. patchN)] [-excludeProcPatches]  [-help] [-doc] [-srcDoc]

So using this command I can extract the exact surface mesh from the OpenFOAM case which Netgen produced.

Code:
surfaceMeshTriangulate mesh.stl -patches "(inlet outlet blade spinner)"
It would although be cool if it where done directly from Netgen. This approach will give you a leak free surface which can be used for snappyHexMesh.

Best
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   August 19, 2010, 03:15
Default
  #3
Senior Member
 
Philippose Rajan
Join Date: Mar 2009
Location: Germany
Posts: 530
Rep Power: 16
philippose will become famous soon enough
Hello Linnemann :-)!

A very Good Morning!

So it was you who "anonymously" posted the feature request for the STL boundary export :-)!

Just wanted to inform you and the OpenFOAM community, that I have added this capability of exporting STL files with each boundary identified as an individual entity into the SVN version of Netgen.

The export is called "STL Extended Format" (in order to maintain backward compatibility), and can be selected as usual from the Export filetypes menu in Netgen.

As requested, each boundary is defined as a separate "solid":

solid Boundary_<bcnum>
....
....
....
endsolid Boundary_<bcnum>


Enjoy :-)!

Philippose
philippose is offline   Reply With Quote

Old   August 19, 2010, 03:22
Default
  #4
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 451
Rep Power: 15
linnemann will become famous soon enough
Hi

Yup that was me, forgot to login before posting :-)

That is super awesome, thanks man.

Best
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann 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
conjugateHeatFoam: Should solid and fluid have the same mesh at the coupled boundary? awacs OpenFOAM Running, Solving & CFD 6 September 22, 2009 22:58
Can we add extra solid mesh part to the analsis? Farhath Alam FLUENT 0 December 22, 2006 03:41
How to add a boundary condition with journal cmd Cyril FLUENT 1 May 26, 2006 03:28
How to add a boundary condition with journal cmds Cyril FLUENT 0 May 22, 2006 11:16
Forum Feature Request Fabian Main CFD Forum 0 June 24, 2005 03:37


All times are GMT -4. The time now is 13:43.