Install OpenFOAM in Windows 10 and Mac OSX
https://www.openfoam.com/download/openfoam-installation-on-windows-10
Be careful. There is another version from openform.org at
https://openfoam.org/version/8/
I have installed the openform.com version, also for Mac OSX.
https://www.openfoam.com/download/openfoam-installation-on-mac-using-docker
The link below shows the discssions on their differences.
https://www.cfd-online.com/Forums/openfoam/197150-openfoam-com-versus-openfoam-org-version-use.html
One problem with Simflow iis that the free version restricts the mesh to just 200,000 so it cannot even run a simulation on a cube using the mesh setup used in the car tutorial, in a non-symmetrical way. Need to use symmetry to reduce the number of meshes.
Unfortunately, the symmetry halves the Coefficient of Drag values.
You can use the instructions in the above link but it does not tell you how to install Ubuntu in Windows 10.
You need to enable linux in Windows in the Windows Features setting first, before installing Ubuntu LTS from Windows Store. Use LTS because it is more reliable and will be automatically upgraded.
After installing Ubuntu, I just copy the commands in the tutorial to the Ubuntu terminal. Unfortunately, <ctrl> V does not work. Need to click on the orange button at the top left of the terminal and edit first to issue the paste command.
Make sure you replace the "user" to the correct username that you use to login to Windows.
sudo apt install bison flex m4 failed.
However the tutorial appeared to work but I cannot find the case file.
We can install bison and m4 by using the install command separately.
sudo apt install bison
sudo apt install m4
But flex failed.
I tried the update command first:
sudo apt-get update
and then redo the command:
sudo apt install m4
It worked. You test whether you have installed properly or not by typing their names.
bison
m4
flex
If the terminal requests for input, it means that the program is installed.
Exit the request for input by type <ctrl> c.
This tutorial did not work. It puts it into Windows user directory, called tutorial.
After running the icoFoam, there is no output at all despite showing no error message.
The tutorial below does not work.
paraFoam is not installed and cannot be instaled.
External Windows ParaView cannot be used because there is no output mesh.
https://www.openfoam.com/documentation/tutorial-guide/2-incompressible-flow/2.1-lid-driven-cavity-flow#x6-60002.1
You can try the video here but it is too long. It teaches you how to compile maybe.
Comments
Post a Comment