CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Airfoil2D Error

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Bruno H

LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2022, 04:18
Default Airfoil2D Error
New Member
Bruno H.
Join Date: Jun 2022
Posts: 2
Rep Power: 0
Bruno H is on a distinguished road
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:

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.

Bruno H is offline   Reply With Quote

Old   June 30, 2022, 05:02
Senior Member
Join Date: Apr 2012
Location: France
Posts: 575
Rep Power: 19
Yann will become famous soon enough
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.

Yann is offline   Reply With Quote

Old   July 1, 2022, 14:13
New Member
Bruno H.
Join Date: Jun 2022
Posts: 2
Rep Power: 0
Bruno H is on a distinguished road
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.
Yann likes this.
Bruno H is offline   Reply With Quote


airfoil, airfoil2d, error

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[] 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

All times are GMT -4. The time now is 14:02.