How to install and use OpenFOAM | Beginner tutorial series #1

UPDATE 3:06 - Make sure to run the following two commands immediately after you first start Ubuntu.
sudo apt update
sudo apt upgrade
The wiki page shown in the video is here: wiki.cusf.co.uk/OpenFOAM_inst...
A video guide for installing ParaView, Ubuntu with WSL, and OpenFOAM on Windows 10. The majority of the instructions are also applicable to native Ubuntu installation.
Chapters:
0:00 Install ParaView
0:47 Add paraview.exe to Path
1:53 Install Ubuntu via WSL
3:06 Install OpenFOAM on Ubuntu
3:53 Edit ~/.bashrc
5:01 Run a tutorial case
5:42 View the results in ParaView

Пікірлер: 45

  • @Nsvnss
    @Nsvnss4 ай бұрын

    Thank you for this paraview and openfoam explainer video. It was a very descriptive and fluent video. It was very useful.

  • @sss_Shazam
    @sss_Shazam Жыл бұрын

    This tutorial is the best out of all that is ever made thank you so much.

  • @konstantinostsikitikos8988
    @konstantinostsikitikos89882 жыл бұрын

    Bro! Great tutorial! been through so much and watched many tutorials with no results. Thank you very much

  • @cfdforeveryone-nikl9742

    @cfdforeveryone-nikl9742

    2 жыл бұрын

    Thank you! I'm glad it was helpful.

  • @nuraykayakol7947
    @nuraykayakol7947 Жыл бұрын

    I installed OpenFoam sucessfully with your video. Thank you.

  • @selahattinkaracay9951
    @selahattinkaracay99514 ай бұрын

    I have just installed. Thank you for your clear explanation.

  • @omarbuentello4258
    @omarbuentello4258 Жыл бұрын

    Thank you very much, was finally able to get OpenFoam to work

  • @DonnyHadden
    @DonnyHadden2 жыл бұрын

    I wish I could give another like. This video is sooo helpful!

  • @cfdforeveryone-nikl9742

    @cfdforeveryone-nikl9742

    2 жыл бұрын

    Thank you! More on the way soon (after exam season).

  • @samuelashaju
    @samuelashaju Жыл бұрын

    Very helpful tutorial!

  • @Tommybotham
    @Tommybotham8 ай бұрын

    This video made me proud to be British. Just a straight up, no nonsense tutorial. Thanks a lot!

  • @bantam1961
    @bantam1961 Жыл бұрын

    everything works, thank you very much

  • @Slowhand4106
    @Slowhand41067 ай бұрын

    Excellent lesson

  • @Zsktnc
    @Zsktnc7 ай бұрын

    Hi, thanks for instructions it was very helpful. I want to study DSMC. Do you have any idea for setup of DSMC? Should I download it or what should I do?

  • @shemafonso3206
    @shemafonso3206 Жыл бұрын

    Ty for the tutorial

  • @Nazmul--hc3sr
    @Nazmul--hc3sr Жыл бұрын

    sir, u are the best. you should upload more videos.

  • @user-id3mn2ih4y
    @user-id3mn2ih4y7 ай бұрын

    thanks for sharing

  • @reinhardt0731
    @reinhardt07313 ай бұрын

    broooooo thanks a lot I wish I found this sooner

  • @royalezking4366
    @royalezking4366 Жыл бұрын

    i am stuck at the instalation of ubuntu , a windows of instalation ubuntu wsl open but stuck at "unpacking the distro" someone can help me please ?

  • @sametkiymet9622
    @sametkiymet96222 жыл бұрын

    Please go on for tutorial. Thanks!

  • @cfdforeveryone-nikl9742

    @cfdforeveryone-nikl9742

    2 жыл бұрын

    I'm glad it was helpful! I'm trying to find all the time I can to continue the tutorial series, but I've got a lot of other commitments (university degree etc) that are taking a lot of time. I'm also trying to improve my video-making workflow first. So hopefully once summer break comes, I will be able to make more videos quickly.

  • @FormulaJake
    @FormulaJake Жыл бұрын

    How do I run cases? I can run the single case that we copied at the end, but how do I run everything that is located in usr/lib/openfoam etc... Do I need to copy everything else over?

  • @cfdforeveryone-nikl9742

    @cfdforeveryone-nikl9742

    Жыл бұрын

    If you want to run a different tutorial case, you should make a copy of it in the same way as with the cavity case. Most tutorial cases come with a script called "Allrun" - if you run that script, it will run the simulation. For the cavity case (and a few other cases), there is no ready-made script to run the sim for you, so you have to know what commands to run and type them in manually (in the cavity case, it was blockMesh, checkMesh, and icoFoam). If you want to create your own simulation, I highly recommend starting from a similar tutorial case, making small changes to it as appropriate (e.g. change the geometry, boundary conditions, etc), and then running it in the same way as with the original tutorial case.

  • @kyrondesign
    @kyrondesign5 ай бұрын

    I got an error message when I downloaded Ubuntu. How do I fix that?

  • @Shshsjs-ij7yi
    @Shshsjs-ij7yi Жыл бұрын

    whenever I press “apply” I get a zoomed in screen of the coordinates and I can’t do anything..

  • @fatimafatima-bg9hh
    @fatimafatima-bg9hh2 жыл бұрын

    hi, at 5:25 when i paste the third line, i've this answer ' cp: cannot stat '/incompressible': No such file or directory'

  • @cfdforeveryone-nikl9742

    @cfdforeveryone-nikl9742

    2 жыл бұрын

    The fix is to make sure you've edited (and saved) the ~/.bashrc file as I did in the video. After that is done, make sure you have restarted your Ubuntu terminal. Then try running the command again. If that still doesn't work, try restarting your computer. This happens because your Ubuntu doesn't know what the $FOAM_TUTORIALS variable is. So it replaces $FOAM_TUTORIALS in the "cp -r $FOAM_TUTORIALS/incompressible ..." command with nothing. So the command becomes "cp -r /incompressible ...", and Ubuntu then tries to look in the folder "/incompressible", which doesn't exist.

  • @fatimafatima-bg9hh

    @fatimafatima-bg9hh

    2 жыл бұрын

    @@cfdforeveryone-nikl9742 thank you, I'll try to follow theses indications

  • @Nsvnss

    @Nsvnss

    4 ай бұрын

    @@cfdforeveryone-nikl9742 I got the same error. Thanks to this comment, I solved the problem. Thank you.

  • @mariarosales3535
    @mariarosales3535 Жыл бұрын

    Good day! I got this error, do you know how to patch v2112? --> FOAM FATAL ERROR: (openfoam-2112 patch=220610) cannot find file "/home/mmrc20/system/controlDict" From virtual Foam::autoPtr Foam::fileOperations::uncollatedFileOperation::readStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 542. FOAM exiting Thank you!

  • @cfdforeveryone-nikl9742

    @cfdforeveryone-nikl9742

    Жыл бұрын

    Hi there, sorry for the late reply - from what it looks like, you've tried to run OpenFoam from a folder which does not contain a simulation case. Specifically, it cannot find the file "controlDict". It appears that your OpenFoam installation is ok, if it gives that error message. Make sure you've copied a tutorial case from the $FOAM_TUTORIALS directory, and have navigated into it before running any OpenFoam program (you should be running from a directory where `ls` prints out the "0", "constant", and "system" directories)

  • @stenogamer
    @stenogamer8 ай бұрын

    This peoblem is showing up for me: WslRegisterDistribution failed with error: 0x8007019e - in cmd after I opened the ubuntu :( Please can somebody help me?

  • @veyronf1

    @veyronf1

    7 ай бұрын

    had this problem myself. go into cmd again as administrator and run these: "wsl --install dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart wsl --set-default-version 2" not all at once ofc, each line is its own command

  • @kyrondesign

    @kyrondesign

    5 ай бұрын

    I have this same issue.

  • @user-rj2bf9iw9z
    @user-rj2bf9iw9z3 ай бұрын

    I added the paraview executable to my system path, but still get "paraview.exe: command not found" when I try to run it in Ubuntu. Anyone know what could have gone wrong?

  • @cfdforeveryone-nikl9742

    @cfdforeveryone-nikl9742

    3 ай бұрын

    Did you restart your Ubuntu terminal?

  • @user-rj2bf9iw9z

    @user-rj2bf9iw9z

    3 ай бұрын

    @@cfdforeveryone-nikl9742 I did - also tried restarting my machine in case that was the issue.

  • @pratikdangar8389
    @pratikdangar83892 жыл бұрын

    no such file or directory . i am getting this message

  • @cfdforeveryone-nikl9742

    @cfdforeveryone-nikl9742

    2 жыл бұрын

    Please see my reply to the other comment with a similar issue

  • @ajaijoy1860
    @ajaijoy18602 жыл бұрын

    open foam is not getting downloaded

  • @cfdforeveryone-nikl9742

    @cfdforeveryone-nikl9742

    2 жыл бұрын

    Is this the "curl" step that is failing, or the "sudo apt-get install" step? Make sure you've done "sudo apt update" and "sudo apt upgrade" before either of those steps. Also try restarting your Ubuntu prompt and/or your computer. I'm afraid I can't help you without more details.

  • @ajaijoy1860

    @ajaijoy1860

    2 жыл бұрын

    @@cfdforeveryone-nikl9742 sorry for the delay to reply, this is my last line after i run "sudo apt-get install" command E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? i noticed connection timed out phrase above it i ran both "sudo apt update" , "sudo apt upgrade " before installing. what i am i missing.my installation is always failing no matter which installation i follow. pls help

  • @cfdforeveryone-nikl9742

    @cfdforeveryone-nikl9742

    2 жыл бұрын

    ​@@ajaijoy1860 From what I can tell, Ubuntu is struggling to update itself when running sudo apt update / upgrade. More specifically, you are unable to download update archives from the internet for some reason. If this is indeed what is happening, it is not an OpenFOAM issue, but an issue with Ubuntu itself. Somehow you need to figure out why it's not letting you install updates to your Ubuntu. Sometimes this is caused by security certificate issues where Ubuntu doesn't trust the security certificates your internet connection provides. Potential fixes you could try (not sure if any will fix it): restarting your PC / trying a different internet connection / reinstalling Ubuntu. You might find further clues by checking the outputs for sudo apt update / upgrade and ensuring they do not have any errors. If there are errors, you might be able to google the error message and find a stack overflow page with a fix. Good luck!

  • @Shshsjs-ij7yi
    @Shshsjs-ij7yi Жыл бұрын

    whenever I press “apply” I get a zoomed in screen of the coordinates and I can’t do anything..

Келесі