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.
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?
This peoblem is showing up for me: WslRegisterDistribution failed with error: 0x8007019e - in cmd after I opened the ubuntu :( Please can somebody help me?
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
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.
@@cfdforeveryone-nikl9742 I've got the same issue, already restarted the PC, line in 100% in the bash. However I am getting "-bash: /usr/lib/openfoam/openfoam2012/etc/bashrc: No such file or directory" along side "cp: cannot stat '/incompressible': No such file or directory" even though the line of code is 1000000% in the bashrc
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?
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?
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.
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!
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)
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.
@@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
@@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!
This video made me proud to be British. Just a straight up, no nonsense tutorial. Thanks a lot!
Bro! Great tutorial! been through so much and watched many tutorials with no results. Thank you very much
Thank you! I'm glad it was helpful.
Thank you for this paraview and openfoam explainer video. It was a very descriptive and fluent video. It was very useful.
I have just installed. Thank you for your clear explanation.
I wish I could give another like. This video is sooo helpful!
Thank you! More on the way soon (after exam season).
I installed OpenFoam sucessfully with your video. Thank you.
This tutorial is the best out of all that is ever made thank you so much.
Thank you very much, was finally able to get OpenFoam to work
Please go on for tutorial. Thanks!
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.
Excellent lesson
broooooo thanks a lot I wish I found this sooner
sir, u are the best. you should upload more videos.
everything works, thank you very much
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?
Very helpful tutorial!
thanks for sharing
Do you have any DNS tutorials for a 2D unsteady flow past an airfoil?
whenever I press “apply” I get a zoomed in screen of the coordinates and I can’t do anything..
This peoblem is showing up for me: WslRegisterDistribution failed with error: 0x8007019e - in cmd after I opened the ubuntu :( Please can somebody help me?
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
I have this same issue.
Ty for the tutorial
So what if you dont have the tutorials folder?
Ie, it disnt install one
I got an error message when I downloaded Ubuntu. How do I fix that?
hi, at 5:25 when i paste the third line, i've this answer ' cp: cannot stat '/incompressible': No such file or directory'
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.
@@cfdforeveryone-nikl9742 thank you, I'll try to follow theses indications
@@cfdforeveryone-nikl9742 I got the same error. Thanks to this comment, I solved the problem. Thank you.
@@cfdforeveryone-nikl9742 I've got the same issue, already restarted the PC, line in 100% in the bash. However I am getting "-bash: /usr/lib/openfoam/openfoam2012/etc/bashrc: No such file or directory" along side "cp: cannot stat '/incompressible': No such file or directory" even though the line of code is 1000000% in the bashrc
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 ?
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?
Did you restart your Ubuntu terminal?
@@cfdforeveryone-nikl9742 I did - also tried restarting my machine in case that was the issue.
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?
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.
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!
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)
no such file or directory . i am getting this message
Please see my reply to the other comment with a similar issue
is that installation for free??
open foam is not getting downloaded
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.
@@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
@@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!
whenever I press “apply” I get a zoomed in screen of the coordinates and I can’t do anything..