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

[Netgen] Feature request: add boundary name to stl solid name

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 555
Rep Power: 27
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: 555
Rep Power: 27
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: 552
Rep Power: 25
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: 555
Rep Power: 27
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


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
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 18:02
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 10:00
Out File does not show Imbalance in % Mmaragann CFX 5 January 20, 2017 10:20
Convective Heat Transfer - Heat Exchanger Mark CFX 6 November 15, 2004 15:55


All times are GMT -4. The time now is 14:58.