|
[Sponsors] |
June 30, 2022, 04:18 |
Airfoil2D Error
|
#1 |
New Member
Bruno H.
Join Date: Jun 2022
Posts: 3
Rep Power: 4 |
Hi, I'm new to OpenFOAM and I am having trouble with the airfoil2d tutorial.
I installed and run the OpenFOAM on WSL (using Ubuntu, latest version), and I use Paraview on Windows. When I tried to do the airfoil tutorial, I have a polyMesh file in the constant directory, but if I run blockMesh it gives FOAM FATAL ERROR: FOAM FATAL ERROR: "/airFoil2D/system/blockMeshDict" From int main(int, char**) in file findBlockMeshDict.H at line 78. If I try to run simpleFoam it also gives an error. This tutorial I've seen people use the paraFoam command to open paraview (when it's being run on linux as well) and it recognizes the mesh as done (it creates or recognizes a .foam file). It doesn't work in my case since I use paraview on Windows. Been reading a lot about it but haven't found a good way to solve the issue. Any ideas will be appreciated. Thanks |
|
June 30, 2022, 05:02 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,236
Rep Power: 29 |
Hi Bruno,
The easiest way to start is to use the Allrun script (type ./Allrun to run it) to run the case. Then you can have a look at the script and try to reproduce it step by step in order to understand what it does and then adjust it to your own needs. For the airFoil2D tutorial, there is no need to run blockMesh since the mesh already exists. As you already know, you cannot use paraFoam since you are running openfoam on WSL from windows. What you can do however, is to create a dummy file with the .foam extension (in your linux terminal, just type something like touch case.foam and it will create a case.foam empty file). Then open this file in paraview, it will load the case with ParaView's native openfoam reader and you will be able to visualize your case. Cheers, Yann |
|
July 1, 2022, 14:13 |
|
#3 |
New Member
Bruno H.
Join Date: Jun 2022
Posts: 3
Rep Power: 4 |
Thank you for the help Yann!
Had to re-copy the airFoil2D tutorial, but after doing that and going for the ./Allrun command and touch file.foam it worked fine. |
|
Tags |
airfoil, airfoil2d, error |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries | NickG | OpenFOAM Installation | 3 | December 30, 2019 01:21 |
[blockMesh] blockMesh with double grading. | spwater | OpenFOAM Meshing & Mesh Conversion | 92 | January 12, 2019 10:00 |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 19:00 |
OpenFOAM without MPI | kokizzu | OpenFOAM Installation | 4 | May 26, 2014 10:17 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |