|
[Sponsors] |
February 13, 2022, 16:10 |
How to open a STL Mesh file in Linux
|
#1 |
New Member
Join Date: Jan 2022
Posts: 20
Rep Power: 4 |
I am learning how snappyHexMesh works through a tutorial. I cannot share the PDF file due to copyright reasons, but I will provide you with all necessary details.
I am building up a mesh via defining a background mesh (using blockMesh) and snappyHexMesh I am dealing with the STL 2D Mesh surface (I cannot uploaded because it exceeds the limit of the site). My issue comes when I want to open it. When I run vi constant/triSurface/river.stl in the linux terminal I get the following messy output https://ibb.co/k2nqc71 This might be because I do not have an installed software (in Linux) to open the file. I looked up how to fix the problem (introducing the commands recommended in the most upvoted answer here: https://askubuntu.com/questions/2473...ning-stl-files) but it did not work. Any help is appreciated |
|
February 14, 2022, 04:31 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,200
Rep Power: 28 |
Hi,
STL can be written in ASCII or binary formats. From the screenshot you have posted, it looks like you have a binary STL file and this is why you cannot open it with vi. You can open your file directly into paraView. There are plenty of other softwares able to open STL files, such as Blender, FreeCAD, MeshLab.... Cheers, Yann |
|
February 14, 2022, 09:59 |
|
#3 |
New Member
Join Date: Jan 2022
Posts: 20
Rep Power: 4 |
Thank you Yann. I indeed used paraView and it worked (more details here: https://www.physicsforums.com/thread.../#post-6599700).
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] swak4foam for OpenFOAM 4.0 | mnikku | OpenFOAM Community Contributions | 80 | May 17, 2022 09:06 |
OpenFoam "Permission denied" and "command not found" problems. | iyidaniel@yahoo.co.uk | OpenFOAM Running, Solving & CFD | 11 | January 2, 2018 07:47 |
polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 10:07 |
what is swap4foam ?? | AB08 | OpenFOAM | 28 | February 2, 2016 02:22 |
ParaView Compilation | jakaranda | OpenFOAM Installation | 3 | October 27, 2008 12:46 |