How to install OpenFOAM in Windows 10 and Ubuntu – 2021 and 2022
In this video you can learn, how you can install OpenFOAM in Windows 10 and Ubuntu in 2021 and 2022.
Commands:
curl -s https://dl.openfoam.com/add-debian-repo.sh | sudo bash
sudo apt install ca-certificates (in case package cannot be located)
sudo apt update
sudo apt-get install ca-certificates
sudo apt-get install openfoam2106-default
Thanks to Fritkot99 for the second command!
This material is published under the creative commons license CC BY (Attribution). If you plan to use it, please acknowledge it.
ubuntu
Hello Sir, I'm new in the Linux environment too. I'm having issues with the package installation of OpenFoam. I completed the first two steps (enable wls and install ubuntu). I installed Ubuntu 20.04 LTS. After the curl and wget commands i get "The repository is setup! You can now install packages." After that, I paste the command sudo and i get "E: Unable to locate package openfoam2106-default". I tried the "apt-get update" command too.
I honestly don't know what I'm missing, so I wish you could suggest me on how to solve this. Thank you for your videos, and your support.
Hello from South Africa.I have copied and pasted motorBike tutorial into openfoam2312 but it says access denied. I have done that in explorer.exe.I want to use my own stl file.Please can u advise.
Hi József Nagy, after curl -s command , i get an error message
ls: cannot access 'usr/lib/openfoam': No such file or directory
Hey man, kind of curious do this software use CPU or GPU for calculation?
hello i am facing an issue while installing, when i type in the simplefoam command it says "command not found"
thanks!
Il important d'avoir de la pédagogie, vous n'avez pas de pédagogie. Vous commencez bien à expliquer au debut mais à la fin vous etes extrêmement rapide. On dirait que vous etes en compétition de rapidité avec quelqu'un d'autre.
Excellent! Very helpful. Searched all over internet on how to connect openfoam to matlab
How would I go about copying the "Allwmake META-INFO ThirdParty applications bin etc platforms src tutorials wmake" line into my home? I believe this is why I am not able to run the tutorial you started at 09:20. I heard the phrase "copy to your home" a few times but I'm not sure how to actually do so. Any help would be much appreciated!
Hello. I am a mechanical engineer student and I am using openfoam in my master thesis. I followed this video at the end but I need to work with dsmcfoam. Can you tell me if this is included in the openfoam installed? I really need your help in this because I can't find this information in internet
Thank you very much for this great tutorial. In the part where we need to write the line /usr/lib/openfoam/openfoam2212/etc/bashrc into our bashrc I got confused and I am not sure if the installation has been successful, since I am receiving the message: Permission Denied. Could you please explain how you wrote this line into your bashrc?
thanks joz.. that helps
Hi,
How can I add openfoam in grasshopper rhino?
Regards
Dear Sir, I am using WSL Ubuntu22.04.2 on my Windows 10. I have downloaded the paraview from the official website to my home directory. However, when I run the 'paraview' command from Ubuntu for my .foam file, it does not work and give me an error of 'paraview: error while loading shared libraries: libQt5Core.so.5: cannot open shared object file: No such file or directory'. I tried to use the sudo apt-get command for the paraview installation as well and run the 'paraview' command again, but it is still not working. Wondering if you know the issues about this?
Appreciate for your guidance.
Dear sir, after installation openfoam in windows 10, the command( cp – /usr/lib/openfoam/openfoam2106/tutorials/incompressible/sipleFoam/ ) that you have used is not working, the answwer i got is ( No such file or directory) , then how to do tutorials guide me please
hi, mine is stuck at "running apt-get update". How can I resolve this?
Congratulations for the great video! I followed the proposed steps successfully up to 8:50 when I wrote: . /usr/lib/openfoam/openfoam2212/etc/bashrc^C, and the error message was: No such file or directory. I ignored this error and went on, until the point that I wrote: cp -r /usr/lib/openfoam/openfoam2212/tutorials/incompressible/simpleFoam/, and the error message was this time: cp: missing destination file operand after '/usr/lib/openfoam/openfoam2212/tutorials/incompressible/simpleFoam/' What should I do next given I am not experienced at all in Linux?
Hello Sir, I get this error when I create the block mesh on Windows MSYS2 terminal:
"FOAM FATAL IO ERROR: (openfoam-2106)
This code should not be executed by someone with administrator rights for security reasons.
It generates a shared library which is loaded using dlopen"
Thanks for your help
Hey! I'm new in Ubuntu. I have problems to create my user name, I followed the indications of the terminal but in the end the system kept asking me the username, help me please :c
Is OpenFoam available for free or its a paid software?
Hey Jozef, my bashrc file looks very different from yours and after pasting the line for the usr lib and saving it tells me there is no such file or directory.
Do you happen to know why they would look so different? im on ubuntu 20.04 and downloaded the 2106 open foam successfully.
Thanks for all the videos!
Firstly, i wanna thank you for this useful video. However, i have a problem. I could not pass this step. Can you help me ?
cp -r /usr/lib/openfoam/openfoam2206/tutorials/incompressible/simpleFoam/
cp: missing destination file operand after '/usr/lib/openfoam/openfoam2206/tutorials/incompressible/simpleFoam/'
Try 'cp –help' for more information.
svp après 7:41 ça ne marche pas pour moi?
Hello Sir , i m having this Error and i couldn't figure out the problem can you help me please?
cp -r /usr/lib/openfoam/openfoam2112/tutorials/incompressible/simpleFoam/
cp: missing destination file operand after '/usr/lib/openfoam/openfoam2112/tutorials/incompressible/simpleFoam/'
Try 'cp –help' for more information.
Hello, good afternoon, thanks for the videos, they are very good, hey, do you have a video about the installation of openFoam v4.1 in ubuntu, greetings
Hello, good afternoon, thanks for the videos, they are very good, hey, do you have a video about the installation of openFoam v1806 in ubuntu, greetings
Thank you for the very nice videos. I learn a lot from your videos. I installed openfoam in ubuntu in the same way you do, and I can not find the openfoam/module folder. In the previous video from yours, you told that user guide of cfmesh can be found here. I have searched in google and I haven't find any answer.
Hello sir, very happy with this video but I am getting an operand missing error while giving tutorial commands. it says "cp: missing destination file operand after '/usr/lib/openfoam/openfoam2112/tutorials/incompressible/simpleFoam/'
Try 'cp –help' for more information." Please look into this. What is the solution?
Hello Jozef,
When I write simpleFoam to start the simulation, I get this error. Could you please advise? (last couple of lines of what is actually displayed):
.
.
No MRF models present
No finite volume options present
Starting time loop
streamLine streamlines:
–> FOAM FATAL IO ERROR:
keyword direction is undefined in dictionary "/home/aragheb/FOAM_RUN/tutorials/incompressible/simpleFoam/pitzDaily/system/controlDict/functions/streamlines"
file: /home/aragheb/FOAM_RUN/tutorials/incompressible/simpleFoam/pitzDaily/system/controlDict/functions/streamlines from line 4 to line 20.
From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
in file db/dictionary/dictionary.C at line 799.
How do we transfer results from Ubuntu to Windows for post-processing?
After all this when I am trying to start simpleFoam then it shows Foam Fatal error ,cannot find file "/home/saif/system/controlDict"
Please help me solve this issue.