CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Mesh Generation & Pre-Processing Software > Pointwise & Gridgen

Error importing .stl file from SU2

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2017, 06:00
Post Error importing .stl file from SU2
  #1
Zen
Member
 
Zeno
Join Date: Sep 2013
Location: Delft, The Netherlands
Posts: 63
Rep Power: 12
Zen is on a distinguished road
Hi all,

Below is a snipped of a.stl file which is the result of an optimization with SU2. I can open it in tecplot and it looks fine but when I try to import it into pointwise with File->Import->Database I get the error as shown in error.png.

Do you have any idea why?

Thanks in advance,

Code:
solid surface_mesh
  facet normal 0 1 4.44102e-16 
    outer loop
      vertex 0.75 -3.9746e-16 0.895 
      vertex 0.75 -3.81916e-16 0.86 
      vertex 0.745159 -3.81916e-16 0.859997 
      vertex 0.745 -3.9746e-16 0.895 
    endloop
  endfacet
  facet normal -1.17082e-19 1 4.44086e-16 
    outer loop
      vertex 0.75 -3.81916e-16 0.86 
      vertex 0.75 -3.64972e-16 0.821845 
      vertex 0.74533 -3.64972e-16 0.821843 
      vertex 0.745159 -3.81916e-16 0.859997 
    endloop
  endfacet
  facet normal -7.96476e-20 1 4.44095e-16 
    outer loop
      vertex 0.75 -3.64972e-16 0.821845 
      vertex 0.75 -3.4671e-16 0.780724 
      vertex 0.745517 -3.46714e-16 0.780729 
      vertex 0.74533 -3.64972e-16 0.821843 
    endloop
  endfacet
  facet normal -2.10285e-19 1 4.44087e-16 
[etc etc ...]
  endfacet
  facet normal -0.989661 0 0.143429 
    outer loop
      vertex 9.79667e-06 0.798573 6.7597e-05 
      vertex -1.57253e-16 0.798574 1.42499e-16 
      vertex -1.57253e-16 0.717292 1.42499e-16 
      vertex 9.79667e-06 0.717291 6.7597e-05 
    endloop
  endfacet
endsolid
tecplot.jpg

error.png
Zen is offline   Reply With Quote

Old   March 24, 2017, 09:19
Default
  #2
Senior Member
 
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14
dgarlisch is on a distinguished road
There are several reasons this could happen. A flaw in the file format. Non-manifold topology. Collapsed triangles. We will need more information to be sure.

Can you attach or otherwise provide the full STL file?

Please zip it first to reduce the file size.
dgarlisch is offline   Reply With Quote

Old   March 25, 2017, 04:57
Default
  #3
Zen
Member
 
Zeno
Join Date: Sep 2013
Location: Delft, The Netherlands
Posts: 63
Rep Power: 12
Zen is on a distinguished road
Hi David,

Thank you for your answer. Here is the compressed surface file:
https://www.dropbox.com/s/orniixz2iy...Grid1.zip?dl=0

Best,

Zeno
Zen is offline   Reply With Quote

Old   March 27, 2017, 11:07
Default
  #4
Senior Member
 
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14
dgarlisch is on a distinguished road
This file is invalid.

I did not notice it in your original post, but the facets have four vertices (quads) each.!

Valid STL files can only contain triangles.

I do not know how this file as generated, but it was exported incorrectly.

If you would like support for non-standard STL quads, you will need to log a feature request with Pointwise support.

FYI, the file also contains TWO solids that are coincident copies of the exact same mesh. This is probably not what you wanted.

Your file:
Code:
solid surface_mesh
  facet normal 0 1 4.44102e-16 
    outer loop
      vertex 0.75 -3.9746e-16 0.895 
      vertex 0.75 -3.81916e-16 0.86 
      vertex 0.745159 -3.81916e-16 0.859997 
      vertex 0.745 -3.9746e-16 0.895 
    endloop
  endfacet

  ..snip..

  facet normal -0.989661 0 0.143429 
    outer loop
      vertex 9.79667e-06 0.798573 6.7597e-05 
      vertex -1.57253e-16 0.798574 1.42499e-16 
      vertex -1.57253e-16 0.717292 1.42499e-16 
      vertex 9.79667e-06 0.717291 6.7597e-05 
    endloop
  endfacet
endsolid
solid surface_mesh
  facet normal 0 1 4.44102e-16 
    outer loop
      vertex 0.75 -3.9746e-16 0.895 
      vertex 0.75 -3.81916e-16 0.86 
      vertex 0.745159 -3.81916e-16 0.859997 
      vertex 0.745 -3.9746e-16 0.895 
    endloop
  endfacet

  ...snip...

  facet normal -0.989661 0 0.143429 
    outer loop
      vertex 9.79667e-06 0.798573 6.7597e-05 
      vertex -1.57253e-16 0.798574 1.42499e-16 
      vertex -1.57253e-16 0.717292 1.42499e-16 
      vertex 9.79667e-06 0.717291 6.7597e-05 
    endloop
  endfacet
endsolid
dgarlisch is offline   Reply With Quote

Reply

Tags
stl; import;


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 03:30
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 13:59
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


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