|
[Sponsors] |
How to import single STL file to openfoam in Windows 10 |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 6 ![]() |
I am a Windows 10 user and have never used Linux before. Currently I am working on a final year project, which needs to generate a fluid flow simulation of track cycling. I have created a cyclist and bike model in SolidWorks, and I would like to export the model and use in OpenFOAM. I have installed OpenFOAM on my Windows 10 using Ubuntu. I followed the guide from https://openfoam.org/download/windows/ . By the way, I am a completely newbie in OpenFOAM and Ubuntu.
I first export the SolidWorks model to .stl file with in ASCII. And it is in a single file, namely Model.STL. And now I would like to do meshing on this STL model using SnappyHexMesh. However, I do not know how to import the STL file using OpenFOAM. I tried to find tutorial of this, but I couldn't find any using a single STL model. Could anyone help me to figure out what should I do? Thanks in advanced. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Join Date: Mar 2019
Posts: 2
Rep Power: 0 ![]() |
You have to put the stl file in the constant/triSurface-folder. SnappyHexMesh will then be able to read this stl file
|
|
![]() |
![]() |
![]() |
![]() |
#3 | |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 6 ![]() |
Quote:
-->FOAM FATAL ERROR cannot find file "/home/<username>/OpenFOAM/<username>-dev/run/system/controlDict" Thanks a lot. |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 649
Rep Power: 20 ![]() |
As shown in the output, you need a controlDict file in the systems folder. You could start with one of the files in the $FOAM_TUTORIALS subfolders which use snappyHexMesh, e.g. the motorBike tutorial:
https://github.com/OpenFOAM/OpenFOAM...Foam/motorBike |
|
![]() |
![]() |
![]() |
![]() |
#5 | |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 6 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#6 | |
Member
Joe lee
Join Date: Nov 2018
Posts: 59
Rep Power: 6 ![]() |
Quote:
If the above is true, how should I turn .stl into .stl.gz? Thanks. EDIT Nevermind. I put the wrong file in the triSurface folder. |
||
![]() |
![]() |
![]() |
Tags |
import cad, snappyhexmesh 3d, ubuntu 14.04 lts, windows 10 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[foam-extend.org] Problems installing foam-extend-4.0 on openSUSE 42.2 and Ubuntu 16.04 | ordinary | OpenFOAM Installation | 19 | September 3, 2019 18:13 |
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 | keepfit | ParaView | 60 | September 18, 2013 03:23 |
[swak4Foam] Error bulding swak4Foam | sfigato | OpenFOAM Community Contributions | 18 | August 22, 2013 12:41 |
2.0.x on Mac OSX | niklas | OpenFOAM Installation | 74 | March 28, 2012 16:46 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 01:24 |