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

[CAD formats] Problem exporting a STL-file from ProE

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2015, 16:18
Default Problem exporting a STL-file from ProE
  #1
New Member
 
Michael Schmitt
Join Date: Jul 2015
Location: Germany
Posts: 2
Rep Power: 0
masc is on a distinguished road
Hello Community,



I am quite new to OpenFoam. I have done some tutorials and simple Simulations on my own so far and had no problems.



But now I would like to use a CAD-geometry which I have in a PRT-format (ProE) for a simple inflow simulation. My Problem is that I am not able to export a STL-File with all the patches I would like to define, e.g. inlet, outlet and wall. For the meshing I would like to use snappyHexMesh, because I am going to simulate in OpenFoam and the mesh should have a boundary layer and several refinement zones.



So far I have found three ways using different tools to export the STL.

1. Exporting the whole geometry as a .STL-File from ProE and defining the patches by editing the STL (saved in ASCII-Format) in an editor. This is a simple and easy way as long as your CAD-geometry stays simple and you have nearly unlimited time to spend. But when it comes down to editing my case, I only see numbers and some words in a big STL and it is really exhausting to find all the faces of a patch. So this way seems to be useless or lets better say ineffective for me.
2. The other way is to export several STEP files from ProE (for all the different patches and all with the same reference coordinate system) and then importing them into FreeCAD. There I managed to export them as a STL. The problem in this case is, that the quality of the STL is not satisfying enough for sHM. Shortly saying there are holes in it. And if you try to close all the holes you get illegal faces. And I really tried out many things to improve the quality… but still nothing ...
3. The last way is at the moment also a dead end. Like in the second case I got a STEP out of ProE but in this case only one File is necessary. Then I use NETGEN to create a Mesh and to define my patches. This is really easy in NETGEN. And because everything seems to be perfect and easygoing, I exported the STL out of NETGEN. In my credulity I thought there will be my defined patches in the STL. But looking in it I was bitterly surprised, there are no patches only a single one including all the faces….
So still I have got nothing...
Here is a list of programs I can use (this is bit of a problem in my company … I can only use them. Others need an approval and this is a story which could be even longer then defining the patches manually in an editor…)

· ProE
· Editor/Notpad
· OpenFoam 2.3.1
· NETGEN
· FreeCAD


I think it can't so difficult but I do not the right and effective way to find all my patches...


Could somebody help me by telling me another way of creating a STL. I also appreciate if someone can correct the mistakes I possibly have made.



Thank you in advance.



Greetings

Michael
masc is offline   Reply With Quote

Old   July 22, 2015, 05:19
Default
  #2
New Member
 
Michael Schmitt
Join Date: Jul 2015
Location: Germany
Posts: 2
Rep Power: 0
masc is on a distinguished road
Well, I have manged to solve my problem.
I am using a Excel-VBA Makro to write out all the single facets to a defined patch.

Greetings
masc is offline   Reply With Quote

Old   August 3, 2015, 10:54
Default
  #3
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Hello Michael,

can you please explain this method in more detail?

Best regards,

Kate
KateEisenhower is offline   Reply With Quote

Reply

Tags
stl


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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 tlcoons OpenFOAM Installation 13 April 20, 2016 18:34
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 22:53
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 11:57


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