I am starting with OpenFoam learning today. It's great to have you on UA-cam. Thank you for such a great video!! I will make sure to watch the rest of the tutorial videos.
Thanks! We are starting an OpenFOAM study group in Panama. First task: to install OF in Windows 10. Using your tutorial it was very easy. We are going to watch your other OF videos to keep going forward.
Worked perfectly, but two very important distinctions to make if you're a first time Linux user like me: 1. When navigating to the platforms/ [key smash] /bin folder, the [key smash] folder ends with "Opt" with a capital O, not "0pt" with a zero. Good news: typing it wrong doesn't break anything, it just means the install doesn't complete until you go back and type it properly. Seems like a simple mistake to avoid, but I was (ironically) too stressed out worrying about whether I'd accidentally ruin the install if I mistyped something that I didn't notice the lack of a characteristic zero slash. 2. The username in the /mnt/c/users/ file path is your Windows username where your downloads folder goes, whereas the username in the /home/ [username] /OpenFOAM file path is your Linux username. The man in the video uses the same username for both, so I didn't notice the difference at first (good news, again: nothing breaks if you use your Windows user name in the /home/ [username] /OpenFOAM file path, it just doesn't complete install properly so you can go back and try again just fine). This might also seem like a simple mistake to avoid, but thought I'd mention it. Before I notice that I did those two mistakes, my bash was returning messages like: "Command 'blockMesh' not found, but can be installed with: sudo apt install openfoam" at the end rather than showing the OpenFOAM header. "ls: cannot access 'OpenFOAM/OpenFOAM-v2012/platforms/linux64Gcc63DPInt320pt/bin/': No such file or directory" when I tried navigating to the [key smash] folder to troubleshoot "-bash: /home/Windows/OpenFOAM/OpenFOAM-v2012/etc/bashrc: No such file or directory" at the top of the bash window when I reopened it And yeah, now, the last two make sense now that I know what my mistakes were, but if you're a nervous first-time Linux user like me, they didn't make much sense in the moment.
Very thank you! Write from Peru, and learning how to use this powerful CFD program. I've been using ANSYS in the student version, but don't allow me to use so much cells. Wait to see more videos about it. Thanks again!
Jozsef! Amazing video. I would like you to make more open foam videos like these. I'd recommend many people to subscribe your tutorial. Keep up the great work.
Hi József Nagy At 18:04 I am getting an error command "blockmesh" not found but can be installed with : sudo apt install OpenFoam. Please help me with this.
Same so I tried to enter this : "sudo apt install openfoam" But this error appears "E: unable to locate package openfoam". Did someone managed to solve this problem ?
It is worth to mention that you can also edit .bashrc file to make various aliases for your commands, by adding another lines, like: alias notepad='/mnt/c/Program\ Files\ \(x86\)/Notepad++/notepad++.exe' so you can run your text editor/paraview/blender the linux way [notepad system/*]. I think there is a tutorial on this topic somewhere on this channel. Your linux files are hidden somewhere at (might depend on ubuntu version): C:\Users\WINDOWS_USERNAME\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState ootfs\home\LINUX_USERNAME I'd recommend adding this directory to your quick access menu
@@francootaola9172 normally, in order to run windows application from ubuntu console you would have to provide full path to proper exe file each time, which is not very comfortable: /mnt/c/fullPathToAppDirectory/myApp.exe myFile.stl (opens myFile.stl with myApp.exe) Alias is basically your command that can substitute i.e. very long command, with your custom name. In the example above I've introduced my notepad command, which runs notepad++. You define your aliases in .bashrc file
I installed the Ubuntu 20.24 LTS. When following video at 7:23 mark, I enter ls /mnt/c/Users and get a cannot read symbolic link...Permission denied message. Help?
Hi Jozsef, thanks for the video. It's explained amazingly. I had an issue on 18:00 when you run again ubuntu and after typing ls like you did, instead of openfoam it showed bashrc.save. Can you help me?
After the nano procedure 17:37, when I restart Ubuntu there is a line " -bash: /home/Utente/OpenFOAM/OpenFOAM-v2006/etc/bashrc: No such file or directory" ... so I can't find any BlockMesh or following the rest part of the video. I've tried with v2006 and Ubuntu 18.04
I'm at the 7:27 mark and I'm using the 20.04 version of Ubuntu, but I get after inputing ls /mnt/c/Users/ I don't get the jnagy/ in the window, instead I get patri. When I use patri(b/c jnagy does not exist) I get a list of all the files I have downloaded. It seems to be changing things b/c I cannot open the OpenFoam file
I'm afraid I'm getting a strange error upon execution of the blockMesh command @18:58. It runs same as your example, but notes a permission error stating that write permission isn't allowed in the parent directory (see below) any idea what I might be screwing up here? polyMesh does not show up under $ ls in the constant directory -------------------------------------- Writing polyMesh with 0 cellZones --> FOAM FATAL ERROR: The parent directory does not allow write permission to the process, or one of the directories in "/home/paulv/OpenFOAM/OpenFOAM-v1912/tutorials/incompressible/simpleFoam/pitzDaily/constant/polyMesh" did not allow search (execute) permission. From function bool Foam::mkDir(const Foam::fileName&, mode_t) in file POSIX.C at line 585. FOAM exiting
Hi Jozsef thank you for this video but I havean issue and don2T know waht to do. In 17:48 when I restart it says -bash: /home/DESKTOP-I5QHHC3/OpenFOAM/OpenFOAM-v2012/etc/bashrc: No such file or directoryy, how can I solve this? Thank you.
@@OpenFOAMJozsefNagy Thank you for asking Jozsef. After couple hours of searching I found bluecfd and I think I solved the issue. Now I can open de paraview or tutorials.
Thanks for the precious information. I am curious about how to do this without internet connection. Can I do each and every step manually. For instance is it possible to download ubuntu application from windows market in another computer and setup in the one that does not have internet connection.
Hi, thank you for the helpful video. I have one question regarding running OpenFOAM via WSL on a Windows machine. I am thinking of buying a workstation. But I am not too familiar with ubuntu OS. So I just wondering what the limitation or difference when running OpenFOAM in WSL windows and pure ubuntu machines is?
Read and write speed is slower than in native Linux and there is a bit of an overhead in simulations, but not much. Other than that there is not much difference in performance.
Can anyone help me with this - I have installed Ubuntu 20.04 LTS on windows 10 home single language. I don't know what is being told. I am unfamiliar with Ubuntu/Linux.. so I am just following blindly. As shown in the video at 7:02 .. I am writing the same command "1s" or "1s /mnt/c/" in the terminal but I am getting output as "command not found" What shall I do? I will be very thankful if anyone could halp me with this. And thanks József sir for your efforts. I got to know about you from LinkedIn.
Hello sir, I did all the steps up to the 'explorer.exe .' part as you showed in the video. But when I type the command 'explorer.exe .', the file "C: \ Windows \ System32" opens and there are no files like " 0, 100, 200, ..., postProcessing, system" in this address. How can I fix this problem?
At 18:02 I'm getting error at that step When I type blockMesh The message Command 'blockMesh' not found, but can be installed with: Sudo apt install openFOAM
@@amishabhaskar9728 I spent a couple of hours with this problem. It turned out to be down to the bashrc files. Make sure you go back to the home directory and add the source line in the '.bashrc' file (nothing in the 'bashrc' file in the OpenFOAM/etc directory as I was doing).
hi József, I've been using both the ESI's OF (.com version) and the Openfoam Foundation's OF (.org version) on WSL for some time. I have two problems associated with the use of paraFoam in WSL that I still couldn't find a solution: 1. I couldn't use "paraFoam" or "paraFoam -builtin" (which has its own useful built-in functions) in the .com version, since paraview is not an dependence of OF. My trick is to switch into .org version when I need "paraFoam" where paraview has been originally integrated into OF. My question is: how to install / use paraFoam for .com version in WSL? (Indeed, the cfmesh is .com version attracts me sticking with it.) 2. Python calculator can be very useful in paraview. But, it looks even I use the .org version OF on WSL, I don't know why I can't use that. I tried to install a vanilla paraview on Windows, and use "touch a.foam" to open it in paraview. Python calculator works well. But, the point is that, paraview can't use "paraFoam" function meaning the loss of its powerful built-in function e.g. directly processing the decomposed parallel running results. Hope you can help on the above questions. If you can give a video about that, it could help lots of users on WSL.
Especially the recent versions of Paraview (=ParaFoam) need libraries, which are not available in the WSL versions of Ubuntu. Did you try VcXsrv instead of Xming as an X-server? I alway suggest to use the Windows version fo Paraview, when you run WSL.
@@OpenFOAMJozsefNagy Thank you very much for your reply. I used Xming as X-server. Would it be different when using VcXsrv? Using Windows version of Paraview is good, but again my problem is it doesn't allow using paraFoam - meaning the loss of some powerful built-in functions. In fact, why I'd like to use paraFoam for processing decomposed results - because reconstructPar is really slow without parallel computing!! Any suggestion from you regarding the way to processing decomposed results in WSL??
@@engineeringarts4509 View your results in Paraview in decomposed mode instead of reconstructed mode. This works also in default paraview. You do not need parafoam
thanks for uploading can you tell whether or not open foam can be used for gas flow simulation means knowing pressure and temperature at inlet and getting both at exit'
Hello, I've already installed OpenFOAM and write it bashrc, but I get this error: Command 'blockMesh' not found, but can be installed with, I know I have to change my directory, just no idea how to, any help? My OpenFOAM version is 2012 and it is in D:\Users\10\Documents\Maestria\CURSOS\OPENFOAM thanks! I'm very exciting for starting to learn this model
I have all the same to you until 17:30. When I restart Ubuntu I have : -bash : ~/OpenFOAM/OpenFOAM-v2012/etc/bashrc: No such file or directory And thus when I type blockMush it says that blockMesh is not install, and when I write sudo apt install openfoam it says E: enable to locate package openfoam Thanks for help !
I had the wrong username in the source line that you save in "nano .bashrc". So where he writes jnagy, use the username you made for ubuntu, not your username on the computer (for example the one used in "ls /mnt/c/Users/jnagy/Downloads")
Exactly my problem. Have you made it or are you still waiting for the answer? Windows 11 user here. I type in ls /mnt/c/Users/______/Downloads/ and get the above message. Lost a whole day on this!!
Thank you for the update! It appears that the "export DISPLAY=:0" trick from your tips and tricks video is no longer working for displaying linux graphical content through XMing. Probably due to the change to WSL2? Any tips on how to resolve this?
@@OpenFOAMJozsefNagy VcXsrc did not work better than XMing, but adding these lines to ~/.bashrc did: export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0 export LIBGL_ALWAYS_INDIRECT=1
Thank you very much for your video! I want to know is there any difference between running in the windows and linux systems? such as running speed etc.?
When I change the directory to subdirectory of simpleFoam like pitzDaily or airFoil2D it shows no such files or directory. But when I list the files in simpleFoam it shows pitzDaily or airFoil2D. Please Help
lol you're German :D ? but you could maybe add the additional information that, if someone uses another antivir except windows antivir (for example Avira or 360 TS), then you cannot use ubuntu until youve uninstalled it. but now it works for me. thanks again.
Im wondering is there any other way to download the ubuntu from the windows store? My windows store won't install or download anything and I still can't fix this error until today
Thanks for the video. I really appreciate your content. I do not know if you have already, since I skipped some parts of the video, but do you also mention the possibility to use visual studio code (which is a great text editor btw - if it is installed on windows, with the wsl extension) with "code ." or "code filename" directly? I think it would be a nice addition, which also makes the use of terminal editors completely unnecessary. Also (do not bother if you mentioned it) wsl2 should release soon (with Windows 10 2004), which should be a lot faster, especially for file operations, which should make the use of OpenFOAM a lot better. wsl2 can simply be upgraded from existing wsl1. Have a nice day!
Parabéns! Poderia me ajudar, neste erro que esta acontecendo? Não sei mais o que faço Everything works expect at the end when i put "source $HOME/.bashrc" it says .... No such file or directory .
Hi. Thank you very much for your effort. It really helps us to a great deal. I have questions? 1- I have no clue about any of those bash lines you are writing? Am I missing something? Should I go through something first? or are they just for specific reason? 2- Is it the same to work on windows? or is it still better to work on Ubuntu as a stand-alone system? Thank you.
Hello M Nagy, thanks a lot, your video is really helpful. I was able to install and run few tutorials successfully, thanks to your video. However, after i restarted my PC and i tried doing some tutorials the error message came that openfoam is not installed and can be installed using "sudo apt install openfoam". But after executing this command, the installation could not go through and the error message came "unable to locate package OpenFoam". Thanks in advance for your help. Regards
thank you very much for the video!! I followed your video but in the last step when trying to run the blockMesh command I came across this error: "Command 'blockMesh' not found, but can be installed with: sudo apt install OpenFOAM" what might seem to be the problem?
Hi, József, thanks for the great video. I have an error and cannot start Paraview by "paraview &" or "paraFoam" in Ubuntu terminal. Do you have an idea what may be the cause? Thank you.
Hi Jozsef, thanks for the video. I’m trying to compile a new solver in OpenFOAM installed in windows 10. However, I could not access to rootfs directory and it said that: -bash: cd: rootfs/: Permission denied I also tried to use chmod to change permission of rootfs directory and it did not work. How can we compile new solver in windows? The installed OF version is 2112 and ubuntu version is 20.04. Regards,
Hello József, I am starting a project in OpenFOAM and for that i started looking fot the cietific guide but i cannot fin info about that, do you now where I can fin the scientific guide for OpenFOAM or specificly for interfoam
Hi! I was wondering if anyone could help as I am having issues in this tutorial early on. I am at the stage of typing; cp /mnt/c/Users//Downloads/OpenFOAM-v2006-windows10.tgz . But this returns; cp: missing destination file operand after '/mnt/c/Users//Downloads/OpenFOAM-v2006-windows10.tgz' Try 'cp --help' for more information. I think I understand that this is because I haven't specified a location for the file to be copied to, but nor does the tutorial. Any help would be much appreciated, thanks!
I installed openfoam according to your instructions. There was no .tgz file so i followed openfoam website instructions. I assume I installed correctly. However when i try to run a tutorial case and run blockmesh command I get this error. "The parent directory does not allow write permission to the process, or one of the directories in "/usr/lib/openfoam/openfoam2106/tutorials/incompressible/simpleFoam/pitzDaily/constant/polyMesh" did not allow search (execute) permission. From bool Foam::mkDir(const Foam::fileName&, mode_t) in file POSIX.C at line 585." I could not find any solution. Can you help me?
thanks a lot But I have a problem i can not use tutorials to run a simulation I checked their files and they exist but with the command you mentioned, it doesn't work it says no directory or file found What do i do?
When I am using ls command, it give me error: "cannot read symbolic link '/mnt/c/Documents and Settings': Permission denied". Do you know how to fix this.
Hello Josef, great video. But I have one problem, Paraview is installed in Windows, so to view the files I need to transfer them from Ubunto to Windows, unfortunately most of the time this transfer freezes. This seems to be a common problem for Ubuntu, so could you give me some advice to solve this? Is there a way to access from the Paraview in windows to the Ubunto folder directly, without transfer? Or, can you explain how to install Paraview in Ubuntu?
@@OpenFOAMJozsefNagy Great idea, Correction: I was struggling with it but I managed to get it with the command: cd /mnt/c/Users Also I would like to plot residuals while the simulation is runnig, maybe that is even worth a video. I think it should be possible with gnuplot, but I am struggling with it. I wonder if this is related to the special way how Ubuntu is integrated into Windows 10.
Hello! Great Tutorial! I stacked at the point where you open explorer.exe. I followed all steps but it keeps opening Windows/system32 and not the appropriate file of tutorials
I'm watching this on 02 Jan 2021. When I extracted the downloaded file (OpenFOAM-v2012-windows10.tgz), there was no "ThirdParty..." file, only "OpenFOAM-v2012". I ignored it, thinking it might not matter, but when I tried to run the simulation I hit the problem described by Tom Robinson (pinned comment). Of course, I can't apply his solution, because I don't have the "ThirdParty" folder to link into. Any help would be greatly appreciated. I'm old enough to have used MSDOS-so am comfortable in a command line environment-but I'm an ubuntu noob, so assume I know nothing more than is described in the video. Thanks for the clearly presented video, BTW. It was going really well until the 19 minute mark :-)
Okay, never mind. Having followed your video for installing ubuntu, I followed the instructions on OpenFOAM's "Installation on Windows 10" page. All seems fine now. (Though still no "ThirdParty..." folder.)
hey guys.I have an issue here. Some Openfoam files do not appear on Windows. For example , in the very simple tutorials of elbow or shock tube, windows do not read (?) polymesh, anyway i cannot see those files. any help?
First of all, thanks for the amazing video. It helped me a lot in the installation process. I have a question, try running the command "paraFoam" to open paraview. However I get the following message: Invalid $ PV_PLUGIN_PATH and -plugin-path = not defined No supplementary ParaView / OpenFOAM reader modules Using builtin reader: paraFoam -vtk Created temporary 'test2.foam' / home / jorgeamg7 / OpenFOAM / OpenFOAM-v2006 / bin / paraFoam: 420: paraview: not found The way I installed paraview was that I downloaded it and installed it on windows C disk.
hi jozsef first of all i thank you for your great efforts ,i followed your procedure but before installing openfoam i have downloaded .exe file , in your case it was .tar file i dont know how to proceed further
@@OpenFOAMJozsefNagy the same website you were using, now its updated to openfoamv2106 there exits an exe file . there were no older version of tar.gz files
Hello...I have installed OpenFOAM on windows (core i7) pc. But observed huge simulation time, hence I am planning to use GPU for OpenFOAM simulation.Any suggestions for OpenFOAM GPU toolbox?or any other options for faster simulation?
Hi! Thanks for this video. After running blockMesh, I get an error saying that the parent directory does not allow write permission to the process. How can I fix this? Thank you for your help!
@@OpenFOAMJozsefNagy Thank you for your answer. I also get the same error when I run in my home. It doesn't let me edit the files as well. I am using a computer in my school. Is it possible that this is an administrative problem? Thanks, your videos are very helpful.
I solved it by changing the permissions of each file that I run the simulation in. Maybe there is a smarter answer but this is what worked for me. The commands I used are: "sudo chmod 777 cavity/ %simulation file name sudo chmod 777 0/ sudo chmod 777 constant/ sudo chmod 777 system/"
I am starting with OpenFoam learning today. It's great to have you on UA-cam. Thank you for such a great video!! I will make sure to watch the rest of the tutorial videos.
were you able to install
im dying here
Thanks! We are starting an OpenFOAM study group in Panama. First task: to install OF in Windows 10. Using your tutorial it was very easy. We are going to watch your other OF videos to keep going forward.
Great! I hope the videos help. Extend the study group to a local user meeting one or twice a year! In Austria works well.
Thank you! Your tutorial was thorough, clear, and easy to follow. This helped me a lot!
Thankyou very much!❤️
I have watched multiple videos but only you kept it simple and compact 🤞🏽
Worked perfectly, but two very important distinctions to make if you're a first time Linux user like me:
1. When navigating to the platforms/ [key smash] /bin folder, the [key smash] folder ends with "Opt" with a capital O, not "0pt" with a zero. Good news: typing it wrong doesn't break anything, it just means the install doesn't complete until you go back and type it properly. Seems like a simple mistake to avoid, but I was (ironically) too stressed out worrying about whether I'd accidentally ruin the install if I mistyped something that I didn't notice the lack of a characteristic zero slash.
2. The username in the /mnt/c/users/ file path is your Windows username where your downloads folder goes, whereas the username in the /home/ [username] /OpenFOAM file path is your Linux username. The man in the video uses the same username for both, so I didn't notice the difference at first (good news, again: nothing breaks if you use your Windows user name in the /home/ [username] /OpenFOAM file path, it just doesn't complete install properly so you can go back and try again just fine). This might also seem like a simple mistake to avoid, but thought I'd mention it.
Before I notice that I did those two mistakes, my bash was returning messages like:
"Command 'blockMesh' not found, but can be installed with: sudo apt install openfoam" at the end rather than showing the OpenFOAM header.
"ls: cannot access 'OpenFOAM/OpenFOAM-v2012/platforms/linux64Gcc63DPInt320pt/bin/': No such file or directory" when I tried navigating to the [key smash] folder to troubleshoot
"-bash: /home/Windows/OpenFOAM/OpenFOAM-v2012/etc/bashrc: No such file or directory" at the top of the bash window when I reopened it
And yeah, now, the last two make sense now that I know what my mistakes were, but if you're a nervous first-time Linux user like me, they didn't make much sense in the moment.
Great way to figure out things yourself. You will like OpenFOAM, I am sure.
I have tired both the offical's installaion method and yours. I think yours is much more concise.IT's very easy and fast.THANK U so much!!!
I am glad!
Very thank you!
Write from Peru, and learning how to use this powerful CFD program. I've been using ANSYS in the student version, but don't allow me to use so much cells.
Wait to see more videos about it. Thanks again!
Hola, te puedo contactar si tengo algún problema? Te escribo desde Mexico
Done. Thank you. The only thing that was not clear was that the copy command requires a [dot] at the end of the command line. Still, well done.
Wow awesome video. I followed the directions on OpenFOAM website and they were not correct. But your instructions were spot on!
I am glad it helped!
@@OpenFOAMJozsefNagy however the one issue I have is that in ParaView I get an error that there are no timesteps for the pitzDaily.foam file
@@crisppyy_bacon3784 Do you use the Windows version of Paraview?
Thank you for this procedure it is generalized for different of OpenFOAM and Ubuntu versions. I used the Paraview and looks good.
Thank You József Nagy. I have learned how to install on Windows 10. I make a successful attempt.
Great!
Jozsef! Amazing video. I would like you to make more open foam videos like these. I'd recommend many people to subscribe your tutorial. Keep up the great work.
Thank you!
Hi József Nagy
At 18:04
I am getting an error
command "blockmesh" not found but can be installed with :
sudo apt install OpenFoam.
Please help me with this.
same
Same so I tried to enter this :
"sudo apt install openfoam"
But this error appears "E: unable to locate package openfoam". Did someone managed to solve this problem ?
in the editor, use "source ~/OpenFOAM/OpenFOAM-v2012/etc/bashrc" don't write it in the extended way.
Great video! I got everything working without a hitch. Appreciate all your videos.
Very clear presentation. This video really helps me. Thanks!
I am glad.
Did Work !! , thanks from Peru :)
Great.
Goodness you saved me. My thesis chair wanted me to get this program but I couldn't get it work from anywhere else online.
Great Tutorial, I have never used Ubuntu and your tutorial was simple and very noob friendly, thanks!
It is worth to mention that you can also edit .bashrc file to make various aliases for your commands, by adding another lines, like:
alias notepad='/mnt/c/Program\ Files\ \(x86\)/Notepad++/notepad++.exe'
so you can run your text editor/paraview/blender the linux way [notepad system/*]. I think there is a tutorial on this topic somewhere on this channel.
Your linux files are hidden somewhere at (might depend on ubuntu version):
C:\Users\WINDOWS_USERNAME\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState
ootfs\home\LINUX_USERNAME
I'd recommend adding this directory to your quick access menu
Thank you for your input!
could you expand a little bit more? what is various aliases?
@@francootaola9172 normally, in order to run windows application from ubuntu console you would have to provide full path to proper exe file each time, which is not very comfortable:
/mnt/c/fullPathToAppDirectory/myApp.exe myFile.stl
(opens myFile.stl with myApp.exe)
Alias is basically your command that can substitute i.e. very long command, with your custom name. In the example above I've introduced my notepad command, which runs notepad++. You define your aliases in .bashrc file
I installed the Ubuntu 20.24 LTS. When following video at 7:23 mark, I enter ls /mnt/c/Users and get a cannot read symbolic link...Permission denied message. Help?
yeah same error with me !
@@narayanlondhe6147 same with me too... or is it the problems it Ubuntu itself? but i dunno, can't figure anything..
Hi Jozsef, thanks for the video. It's explained amazingly.
I had an issue on 18:00 when you run again ubuntu and after typing ls like you did, instead of openfoam it showed bashrc.save. Can you help me?
After the nano procedure 17:37, when I restart Ubuntu there is a line " -bash: /home/Utente/OpenFOAM/OpenFOAM-v2006/etc/bashrc: No such file or directory" ... so I can't find any BlockMesh or following the rest part of the video. I've tried with v2006 and Ubuntu 18.04
Where is our installation locted? Use the your path instead.
Thank you for this video. It was really helpful!
I am glad.
I'm at the 7:27 mark and I'm using the 20.04 version of Ubuntu, but I get after inputing ls /mnt/c/Users/ I don't get the jnagy/ in the window, instead I get patri. When I use patri(b/c jnagy does not exist) I get a list of all the files I have downloaded. It seems to be changing things b/c I cannot open the OpenFoam file
jnagy is my user, use yours.
Thanks a lot it still works for the newest ubuntu and OpenFOAM versions :-)
Great!
Thanks for the video! Will be waiting now how to run my first simulation. A free surface simulation on ship hull will be great. Cheers!
There are several tutorials on first simulations on my channel.
The tutorial works for my windows 10 home edition to install openfoam-v2012.
I'm afraid I'm getting a strange error upon execution of the blockMesh command @18:58. It runs same as your example, but notes a permission error stating that write permission isn't allowed in the parent directory (see below) any idea what I might be screwing up here?
polyMesh does not show up under $ ls in the constant directory
--------------------------------------
Writing polyMesh with 0 cellZones
--> FOAM FATAL ERROR:
The parent directory does not allow write permission to the process,
or one of the directories in "/home/paulv/OpenFOAM/OpenFOAM-v1912/tutorials/incompressible/simpleFoam/pitzDaily/constant/polyMesh" did not allow search (execute) permission.
From function bool Foam::mkDir(const Foam::fileName&, mode_t)
in file POSIX.C at line 585.
FOAM exiting
I copied the files to another directory and had success. I wonder why I couldn't write to that directory?
Have you resolved the issue? Or is this issue necessary to resolve?
Any kind of reply will be helpful.
Thanks
Thank you! This video truly helps me a lot! thanks, sincerely.
Sir jozsef it shows block mesh is not installed at 18:09 could u help me with that.
Maybe you did not save the one line in bashrc correctly.
@@OpenFOAMJozsefNagy I'll surely try that sir. I am thankful for your reply
Hi Jozsef thank you for this video but I havean issue and don2T know waht to do. In 17:48 when I restart it says -bash: /home/DESKTOP-I5QHHC3/OpenFOAM/OpenFOAM-v2012/etc/bashrc: No such file or directoryy, how can I solve this? Thank you.
What is the path to your OpenFOAM-v2012?
@@OpenFOAMJozsefNagy Thank you for asking Jozsef. After couple hours of searching I found bluecfd and I think I solved the issue. Now I can open de paraview or tutorials.
Thank you very much for the well detailed tutorial.
Thanks for the precious information. I am curious about how to do this without internet connection. Can I do each and every step manually. For instance is it possible to download ubuntu application from windows market in another computer and setup in the one that does not have internet connection.
I don't know contact the github account of microsoft and there is a forum for wsl.
I really like your video. It helps a lot! Thank you!
Awesome video❤️❤️😍😍
Thank you for the detailed explanation. Everything went as you explained.
Dear József, many thanks for sharing this video, it was very helpful for me! Thanks so much!!
Hi, thank you for the helpful video. I have one question regarding running OpenFOAM via WSL on a Windows machine. I am thinking of buying a workstation. But I am not too familiar with ubuntu OS. So I just wondering what the limitation or difference when running OpenFOAM in WSL windows and pure ubuntu machines is?
Read and write speed is slower than in native Linux and there is a bit of an overhead in simulations, but not much. Other than that there is not much difference in performance.
Great tutorial. I applaud you.
I am glad I can help!
Can anyone help me with this -
I have installed Ubuntu 20.04 LTS on windows 10 home single language.
I don't know what is being told. I am unfamiliar with Ubuntu/Linux.. so I am just following blindly.
As shown in the video at 7:02 .. I am writing the same command "1s" or "1s /mnt/c/" in the terminal but I am getting output as "command not found"
What shall I do?
I will be very thankful if anyone could halp me with this.
And thanks József sir for your efforts. I got to know about you from LinkedIn.
it is ls not 1s
Hello sir,
I did all the steps up to the 'explorer.exe .' part as you showed in the video. But when I type the command 'explorer.exe .', the file "C: \ Windows \ System32" opens and there are no files like " 0, 100, 200, ..., postProcessing, system" in this address. How can I fix this problem?
Hello Merve. I have the same problem. Please let me know if you have found the solution for it. Thanks!
Hi@@sahilmahajan9018, when I update my Windows 10, the problem fixed automatically. That is to say, the problem is related to operating system.
At 18:02
I'm getting error at that step
When I type blockMesh
The message
Command 'blockMesh' not found, but can be installed with:
Sudo apt install openFOAM
Please help me out, I need to start working on a project and I'm stuck with this from yesterday
Using explorer.exe?
Even after sudo apt install openFOAM
I'm getting the message file not found at the location
@@amishabhaskar9728 I spent a couple of hours with this problem. It turned out to be down to the bashrc files. Make sure you go back to the home directory and add the source line in the '.bashrc' file (nothing in the 'bashrc' file in the OpenFOAM/etc directory as I was doing).
Yes, it is important to save the .bashrc file correctly.
hi József, I've been using both the ESI's OF (.com version) and the Openfoam Foundation's OF (.org version) on WSL for some time. I have two problems associated with the use of paraFoam in WSL that I still couldn't find a solution:
1. I couldn't use "paraFoam" or "paraFoam -builtin" (which has its own useful built-in functions) in the .com version, since paraview is not an dependence of OF. My trick is to switch into .org version when I need "paraFoam" where paraview has been originally integrated into OF. My question is: how to install / use paraFoam for .com version in WSL? (Indeed, the cfmesh is .com version attracts me sticking with it.)
2. Python calculator can be very useful in paraview. But, it looks even I use the .org version OF on WSL, I don't know why I can't use that. I tried to install a vanilla paraview on Windows, and use "touch a.foam" to open it in paraview. Python calculator works well. But, the point is that, paraview can't use "paraFoam" function meaning the loss of its powerful built-in function e.g. directly processing the decomposed parallel running results.
Hope you can help on the above questions. If you can give a video about that, it could help lots of users on WSL.
Especially the recent versions of Paraview (=ParaFoam) need libraries, which are not available in the WSL versions of Ubuntu. Did you try VcXsrv instead of Xming as an X-server? I alway suggest to use the Windows version fo Paraview, when you run WSL.
@@OpenFOAMJozsefNagy Thank you very much for your reply.
I used Xming as X-server. Would it be different when using VcXsrv?
Using Windows version of Paraview is good, but again my problem is it doesn't allow using paraFoam - meaning the loss of some powerful built-in functions. In fact, why I'd like to use paraFoam for processing decomposed results - because reconstructPar is really slow without parallel computing!!
Any suggestion from you regarding the way to processing decomposed results in WSL??
@@engineeringarts4509 View your results in Paraview in decomposed mode instead of reconstructed mode. This works also in default paraview. You do not need parafoam
thanks for uploading
can you tell whether or not open foam can be used for gas flow simulation
means knowing pressure and temperature at inlet and getting both at exit'
Yes you can
@@OpenFOAMJozsefNagy thanks sir but without knowing the velocity parameters .?
Hello, I've already installed OpenFOAM and write it bashrc, but I get this error: Command 'blockMesh' not found, but can be installed with, I know I have to change my directory, just no idea how to, any help? My OpenFOAM version is 2012 and it is in D:\Users\10\Documents\Maestria\CURSOS\OPENFOAM thanks! I'm very exciting for starting to learn this model
You access the Windows files via /mnt/d/Users/10/Documents/etc...
@@OpenFOAMJozsefNagy thanks, it's working now
I have all the same to you until 17:30. When I restart Ubuntu I have :
-bash : ~/OpenFOAM/OpenFOAM-v2012/etc/bashrc: No such file or directory
And thus when I type blockMush it says that blockMesh is not install, and when I write sudo apt install openfoam it says E: enable to locate package openfoam
Thanks for help !
Then your OpenFOAM folder must be in a different location. Where is OpenFOAM-v2012 located? Is the path correct?
Hello ? Thanks for this great video. I have an issue, when I write blockMesh, it says "Command not found", can anybody help me please?
I had the wrong username in the source line that you save in "nano .bashrc". So where he writes jnagy, use the username you made for ubuntu, not your username on the computer (for example the one used in "ls /mnt/c/Users/jnagy/Downloads")
Leon fevang-gunn Same exact thing happened to me, thanks for the tip 👍
@@leonfevanggunn Thanks a lot!
Thank U so much, this video is very helpful for learning how to use OpenFOAM!!!
when i put the commands in ubuntu it prints nothing for me and says no such file or directory. any help would be greatly appreciated
Exactly my problem. Have you made it or are you still waiting for the answer? Windows 11 user here. I type in ls /mnt/c/Users/______/Downloads/ and get the above message. Lost a whole day on this!!
@@DogZy9 still waiting on an answer bro, windows 10 user myself. Ye same I can't seem to find out what I've done wrong
Thank you for the update! It appears that the "export DISPLAY=:0" trick from your tips and tricks video is no longer working for displaying linux graphical content through XMing. Probably due to the change to WSL2? Any tips on how to resolve this?
You may try the tool VcXsrc instead of XMing.
@@OpenFOAMJozsefNagy VcXsrc did not work better than XMing, but adding these lines to ~/.bashrc did:
export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
export LIBGL_ALWAYS_INDIRECT=1
@@eventhatsme Great!
Thank you very much for your video! I want to know is there any difference between running in the windows and linux systems? such as running speed etc.?
Linux usually is a bit faster.
@@OpenFOAMJozsefNagy Got it! Thank you so much!
Hello József.
what about the minimal System requirements
tx
Difficult to say. Check the requirements for WSL.
When I change the directory to subdirectory of simpleFoam like pitzDaily or airFoil2D it shows no such files or directory. But when I list the files in simpleFoam it shows pitzDaily or airFoil2D. Please Help
Permission problems maybe?
lol you're German :D ?
but you could maybe add the additional information that, if someone uses another antivir except windows antivir (for example Avira or 360 TS), then you cannot use ubuntu until youve uninstalled it. but now it works for me. thanks again.
I live in Austria. It works for me with Norton, so I am not sure what the problem with Avira is.
Im wondering is there any other way to download the ubuntu from the windows store? My windows store won't install or download anything and I still can't fix this error until today
I guess you'd have to google it. Sorry.
docs.microsoft.com/en-us/windows/wsl/install-manual
Thanks for the video. I really appreciate your content.
I do not know if you have already, since I skipped some parts of the video, but do you also mention the possibility to use visual studio code (which is a great text editor btw - if it is installed on windows, with the wsl extension) with "code ." or "code filename" directly? I think it would be a nice addition, which also makes the use of terminal editors completely unnecessary.
Also (do not bother if you mentioned it) wsl2 should release soon (with Windows 10 2004), which should be a lot faster, especially for file operations, which should make the use of OpenFOAM a lot better. wsl2 can simply be upgraded from existing wsl1.
Have a nice day!
Thank you for your interesting inputs!
Parabéns! Poderia me ajudar, neste erro que esta acontecendo? Não sei mais o que faço
Everything works expect at the end when i put "source $HOME/.bashrc" it says .... No such file or directory .
Hi.
Thank you very much for your effort. It really helps us to a great deal.
I have questions?
1- I have no clue about any of those bash lines you are writing? Am I missing something? Should I go through something first? or are they just for specific reason?
2- Is it the same to work on windows? or is it still better to work on Ubuntu as a stand-alone system?
Thank you.
You just have to type it down once and that is it. This is Ubuntu in Window, so you don'T have to switch unless you prefer to do so.
Thanks very much for such a detailed explanation
Working 100% thanks
Hello M Nagy, thanks a lot, your video is really helpful. I was able to install and run few tutorials successfully, thanks to your video. However, after i restarted my PC and i tried doing some tutorials the error message came that openfoam is not installed and can be installed using "sudo apt install openfoam". But after executing this command, the installation could not go through and the error message came "unable to locate package OpenFoam". Thanks in advance for your help. Regards
Did you enter the one line into your bashrc and save it?
@@OpenFOAMJozsefNagy yes, thank you. its working fine
Very clear instructions. Thank you. :)
How do you display cases,mesh etc in Paraview? I can't seem to find the files I want to view in Paraview.
thank you very much for the video!! I followed your video but in the last step when trying to run the blockMesh command I came across this error: "Command 'blockMesh' not found, but can be installed with:
sudo apt install OpenFOAM"
what might seem to be the problem?
I think sourcing didn't work.
Hi, József, thanks for the great video. I have an error and cannot start Paraview by "paraview &" or "paraFoam" in Ubuntu terminal. Do you have an idea what may be the cause? Thank you.
In wsl it is difficult. For now use the Windows version. Once WSLg is out this should be easier.
@@OpenFOAMJozsefNagy thanks for the reply.
For some reason none of my commands in the Ubuntu portion of the video are the same as his, I cannot get to the Users portion of the video
Thank you very much, great video
Excellent demo. Thank you.
Hi Jozsef, thanks for the video.
I’m trying to compile a new solver in OpenFOAM installed in windows 10. However, I could not access to rootfs directory and it said that:
-bash: cd: rootfs/: Permission denied
I also tried to use chmod to change permission of rootfs directory and it did not work.
How can we compile new solver in windows?
The installed OF version is 2112 and ubuntu version is 20.04.
Regards,
Try it at a location, where you have write and read privilege. You don't have to compile it as root. At least in the usual case.
Hello József, I am starting a project in OpenFOAM and for that i started looking fot the cietific guide but i cannot fin info about that, do you now where I can fin the scientific guide for OpenFOAM or specificly for interfoam
The documentation might help or the phd thesis of Henrik Rusche.
Thank you for this well made tutorial
Thank you
József!
Thank you for this Video.
Is there an easy option just to update the installed OpenFoam Version 1906 to the 1912 version? Thank you.
Hi! I was wondering if anyone could help as I am having issues in this tutorial early on. I am at the stage of typing;
cp /mnt/c/Users//Downloads/OpenFOAM-v2006-windows10.tgz .
But this returns;
cp: missing destination file operand after '/mnt/c/Users//Downloads/OpenFOAM-v2006-windows10.tgz'
Try 'cp --help' for more information.
I think I understand that this is because I haven't specified a location for the file to be copied to, but nor does the tutorial.
Any help would be much appreciated, thanks!
Don't forget to add a stupid dot with one space in the end bro.. try it
Maybe you forgot the dot after the command
Sir, previously you also showed how to link a windows folder to ubuntu bash home, can you please tell me again how you did that?
OK I got it...
it was: ln -s
Thank you again :)
Hi, please how do I locate the .exe file for the Ubuntu LTS? I cant seem to find the file location for the executable file.
Should be in C:\Windows\System32
Very useful. Thank you very much !
I installed openfoam according to your instructions. There was no .tgz file so i followed openfoam website instructions. I assume I installed correctly. However when i try to run a tutorial case and run blockmesh command I get this error. "The parent directory does not allow write permission to the process,
or one of the directories in "/usr/lib/openfoam/openfoam2106/tutorials/incompressible/simpleFoam/pitzDaily/constant/polyMesh" did not allow search (execute) permission.
From bool Foam::mkDir(const Foam::fileName&, mode_t)
in file POSIX.C at line 585."
I could not find any solution. Can you help me?
Copy the tutorial folder "pitzDaily" to your $HOME.
thanks a lot
But I have a problem
i can not use tutorials to run a simulation
I checked their files and they exist but with the command you mentioned, it doesn't work
it says no directory or file found
What do i do?
Did you get an error?
@@OpenFOAMJozsefNagy no, but i just made a mistake, but then I solved and it's ok right now.
Thank you
When I am using ls command, it give me error: "cannot read symbolic link '/mnt/c/Documents and Settings': Permission denied". Do you know how to fix this.
You cannot have spaces in Linux in the path names.
I am also having the same problem, have no spaces
6:40 what is 1s ?
It is ls. Not 1s. It is a linux command. It lists the content of your directory. Please google basic linux commands.
this really helps to installed
thanks sir
Hello Josef, great video.
But I have one problem, Paraview is installed in Windows, so to view the files I need to transfer them from Ubunto to Windows, unfortunately most of the time this transfer freezes. This seems to be a common problem for Ubuntu, so could you give me some advice to solve this?
Is there a way to access from the Paraview in windows to the Ubunto folder directly, without transfer?
Or, can you explain how to install Paraview in Ubuntu?
Run the cases in your on your Windows file system under /mnt/c.
@@OpenFOAMJozsefNagy
Great idea,
Correction:
I was struggling with it but I managed to get it with the command:
cd /mnt/c/Users
Also I would like to plot residuals while the simulation is runnig, maybe that is even worth a video.
I think it should be possible with gnuplot, but I am struggling with it.
I wonder if this is related to the special way how Ubuntu is integrated into Windows 10.
Have you got any videos on how to open cases? I need to run an airfoil simulation and I have a case .tar.xz file. How do i do this in openfoam?
First you have to extract it with tar xvf case.tar.xz
Hello! Great Tutorial! I stacked at the point where you open explorer.exe. I followed all steps but it keeps opening Windows/system32 and not the appropriate file of tutorials
"explorer.exe ." don't forget the dot
i tried to install v2112 version but this is the type of exe doc so i couldnt use tar xf please help me
Try my more recent video here: ua-cam.com/video/w0bBOWlVlvA/v-deo.html
I'm watching this on 02 Jan 2021. When I extracted the downloaded file (OpenFOAM-v2012-windows10.tgz), there was no "ThirdParty..." file, only "OpenFOAM-v2012".
I ignored it, thinking it might not matter, but when I tried to run the simulation I hit the problem described by Tom Robinson (pinned comment). Of course, I can't apply his solution, because I don't have the "ThirdParty" folder to link into.
Any help would be greatly appreciated. I'm old enough to have used MSDOS-so am comfortable in a command line environment-but I'm an ubuntu noob, so assume I know nothing more than is described in the video.
Thanks for the clearly presented video, BTW. It was going really well until the 19 minute mark :-)
Okay, never mind. Having followed your video for installing ubuntu, I followed the instructions on OpenFOAM's "Installation on Windows 10" page. All seems fine now. (Though still no "ThirdParty..." folder.)
@@weevilinabox ThirdParty is now in OpenFOAM-v2012.
hey guys.I have an issue here. Some Openfoam files do not appear on Windows. For example , in the very simple tutorials of elbow or shock tube, windows do not read (?) polymesh, anyway i cannot see those files. any help?
what do u think is been installed or not
First of all, thanks for the amazing video. It helped me a lot in the installation process.
I have a question, try running the command "paraFoam" to open paraview. However I get the following message:
Invalid $ PV_PLUGIN_PATH and -plugin-path = not defined
No supplementary ParaView / OpenFOAM reader modules
Using builtin reader: paraFoam -vtk
Created temporary 'test2.foam'
/ home / jorgeamg7 / OpenFOAM / OpenFOAM-v2006 / bin / paraFoam: 420: paraview: not found
The way I installed paraview was that I downloaded it and installed it on windows C disk.
Then just start it by clicking it in Windows, not from the terminal.
at 12.53 seconds , not able to get Thirdparty-v2012 (letest) , omly had OpenFOAM-v2012 , please guide how to get thirdparty their. thanks
There is a video on new versions.
Which option gives faster performance?:
1) OF on ubuntu linux system
2) OF on windows subsystem
OF on any Linux Server Edition.
hi jozsef first of all i thank you for your great efforts ,i followed your procedure but before installing openfoam i have downloaded .exe file , in your case it was .tar file i dont know how to proceed further
Where did you download it from?
@@OpenFOAMJozsefNagy the same website you were using, now its updated to openfoamv2106 there exits an exe file . there were no older version of tar.gz files
@@rahulreddy7682 Try using the link for v2012
Hello...I have installed OpenFOAM on windows (core i7) pc. But observed huge simulation time, hence I am planning to use GPU for OpenFOAM simulation.Any suggestions for OpenFOAM GPU toolbox?or any other options for faster simulation?
Hi! Thanks for this video. After running blockMesh, I get an error saying that the parent directory does not allow write permission to the process. How can I fix this? Thank you for your help!
I am using Ubuntu 20.04, maybe that is the problem?
@@simayldzdogan6951 Try to run it in your home. Not in /opt
@@OpenFOAMJozsefNagy Thank you for your answer. I also get the same error when I run in my home. It doesn't let me edit the files as well. I am using a computer in my school. Is it possible that this is an administrative problem? Thanks, your videos are very helpful.
I solved it by changing the permissions of each file that I run the simulation in. Maybe there is a smarter answer but this is what worked for me. The commands I used are:
"sudo chmod 777 cavity/ %simulation file name
sudo chmod 777 0/
sudo chmod 777 constant/
sudo chmod 777 system/"
@@simayldzdogan6951 Yes, this may be. Please ask you teacher.
i am getting Foam Fatal Error what's the solution?
At which point?
@@OpenFOAMJozsefNagy after installing open foam
@@OpenFOAMJozsefNagy can u share your mail id so that i send screenshots
What is the different between this installation in 2020 and your installation in 2014?
Sir will this procedure will remove my existing file and folders on window
No, This version of ubuntu is run inside of windows. It is just like any other program.
Great vid, thank you very much!