CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Airfoil2D Error

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Bruno H

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 30, 2022, 03:18
Default Airfoil2D Error
  #1
New Member
 
Bruno H.
Join Date: Jun 2022
Posts: 3
Rep Power: 3
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:
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
Bruno H is offline   Reply With Quote

Old   June 30, 2022, 04:02
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,066
Rep Power: 26
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.

Cheers,
Yann
Yann is offline   Reply With Quote

Old   July 1, 2022, 13:13
Default
  #3
New Member
 
Bruno H.
Join Date: Jun 2022
Posts: 3
Rep Power: 3
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

Reply

Tags
airfoil, airfoil2d, error


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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 00:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 22:45.