View Issue Details

IDProjectCategoryView StatusLast Update
0003860OpenFOAMFeaturepublic2022-07-13 13:13
Reportercgoessni Assigned Tohenry  
PrioritynoneSeverityfeatureReproducibilityrandom
Status closedResolutionsuspended 
Platformamd64OSCentOSOS Version7
Product Versiondev 
Summary0003860: binary STL files have more than one patch
DescriptionWhenever I want to use binary STL files in OpenFOAM, there are two patches created, one is empty, and one contains the actual data (note that binary STL files should always only yield a single patch), e.g. when running surfaceCheck:

$ surfaceCheck CA128.8_EV_intake.stl
/*---------------------------------------------------------------------------*\
  ========= |
  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
   \\ / O peration | Website: https://openfoam.org
    \\ / A nd | Version: git
     \\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : git-eb7b8763c4ea
Exec : surfaceCheck CA128.8_EV_intake.stl
Date : Jul 13 2022
Time : 12:09:28
Host : "fvkmb176"
PID : 141539
I/O : uncollated
Case : /home/goessnitzer/OpenFOAM/goessnitzer-git/run/TCC_III
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Reading surface from "CA128.8_EV_intake.stl" ...

Statistics:
Triangles : 25966
Vertices : 12981
Bounding Box : (-0.178 -0.0356893 -3.7402e-05) (-0.00432637 0.0356893 0.0725)

Region Size
------ ----
patch0 0
patch1 25966
***********************

Surface has no illegal triangles.

Triangle quality (equilateral=1, collapsed=0):
    0 .. 0.05 : 0.0235308
    0.05 .. 0.1 : 0.024301
    0.1 .. 0.15 : 0.0103982
    0.15 .. 0.2 : 0.00897327
    0.2 .. 0.25 : 0.0139798
    0.25 .. 0.3 : 0.0222214
    0.3 .. 0.35 : 0.0277671
    0.35 .. 0.4 : 0.0419009
    0.4 .. 0.45 : 0.0502965
    0.45 .. 0.5 : 0.0640068
    0.5 .. 0.55 : 0.0648926
    0.55 .. 0.6 : 0.0737888
    0.6 .. 0.65 : 0.0886929
    0.65 .. 0.7 : 0.115805
    0.7 .. 0.75 : 0.188631
    0.75 .. 0.8 : 0.159247
    0.8 .. 0.85 : 0.00750982
    0.85 .. 0.9 : 0.00412077
    0.9 .. 0.95 : 0.00423631
    0.95 .. 1 : 0.00569976

    min 5.1237e-05 for triangle 1818
    max 0.999571 for triangle 11420

Edges:
    min 1.92364e-05 for edge 3013 points (-0.131447 1.07e-18 0.0724989)(-0.131428 2.49814e-06 0.0724989)
    max 0.043964 for edge 4726 points (-0.178 -0.0101127 0.0526527)(-0.134056 -0.0108253 0.05375)

Checking for points less than 1e-6 of bounding box ((0.173674 0.0713787 0.0725374) metre) apart.
Found 0 nearby points.

Surface is closed. All edges connected to two faces.

Number of unconnected parts : 1

Number of zones (connected area with consistent normal) : 3
More than one normal orientation.


End
Steps To ReproduceRun any OpenFOAM tool which takes binary STL files, one is attached
Additional InformationAccording to https://www.cfd-online.com/Forums/openfoam-meshing/242541-snappyhexmesh-makes-too-many-patches-stl.html, OpenFOAM sometimes creates much more than two patches
TagsNo tags attached.

Activities

cgoessni

2022-07-13 11:11

reporter  

CA128.8_EV_intake.stl (1,298,384 bytes)

henry

2022-07-13 12:35

manager   ~0012676

The triangles in the surface in your STL file all have attribute 1, i.e. patch1 and the patch numbering starts from 0 resulting in two patches, patch0 being empty. Why are your triangles labelled 1 rather than 0?

If you need to handle binary STL files with arbitrary attributes then the handling of the patches would need to be re-written to not be contiguous which would take a day or so and require funding.

cgoessni

2022-07-13 12:50

reporter   ~0012677

Thanks for the explanation. The attributes seem to be written by the Python tool that I use for STL handling.

Conferning funding: I will talk to my management.

Please close for now.

henry

2022-07-13 13:13

manager   ~0012678

Feature request pending funding

Issue History

Date Modified Username Field Change
2022-07-13 11:11 cgoessni New Issue
2022-07-13 11:11 cgoessni File Added: CA128.8_EV_intake.stl
2022-07-13 12:35 henry Note Added: 0012676
2022-07-13 12:50 cgoessni Note Added: 0012677
2022-07-13 13:12 henry Priority normal => none
2022-07-13 13:12 henry Severity minor => feature
2022-07-13 13:12 henry Category Bug => Feature
2022-07-13 13:13 henry Assigned To => henry
2022-07-13 13:13 henry Status new => closed
2022-07-13 13:13 henry Resolution open => suspended
2022-07-13 13:13 henry Note Added: 0012678