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

[Salome] How can I read and treat .stl files of Salome?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2020, 13:51
Default How can I read and treat .stl files of Salome?
  #1
New Member
 
david
Join Date: Apr 2020
Posts: 2
Rep Power: 0
falencio is on a distinguished road
When I try to convert my .stl files of Salome to .obj files, I have this error


/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
Build : 7-1ff648926f77
Exec : surfaceConvert -clean Inlet1.stl Inlet1.obj
Date : Apr 23 2020
Time : 18:45:55
Host : "francisc-VirtualBox"
PID : 4913
I/O : uncollated
Case : /home/franciscoboira/pipe
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 : "Inlet1.stl"


--> FOAM FATAL ERROR:
Cannot read "Inlet1.stl"

From function bool Foam::triSurface::read(const Foam::fileName&, const Foam::word&, bool)
in file triSurface/triSurface.C at line 304.

FOAM exiting









I don't know why. I cannot combine this kind of files neither, with



$ surfaceAdd Inlet1.obj Inlet2.stl pipe.stl


The same error its appeared.



However, if I do paraview, I can see the geometry, but I need to do the above actions but I have the error.


Thanks for your patience
falencio is offline   Reply With Quote

Old   April 24, 2020, 04:24
Default
  #2
Member
 
Join Date: Jun 2011
Location: Germany
Posts: 59
Rep Power: 15
Siassei is on a distinguished road
I'm putting the stl files in the constant directory and an geometry entry like
Code:
    mesh1
    {
        name "mesh1";
        type triSurfaceMesh;
        file "./constant/mesh.stl";

        regions
        {
            Inlet_1                // Named region in the STL file
            {
                name Inlet1;       // User-defined patch name
            }                      // otherwise given mesh.stl_Inlet_1
Siassei is offline   Reply With Quote

Reply

Tags
salome, snappy hex mesh


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



All times are GMT -4. The time now is 11:18.