How to install OpenFOAM in Windows 10 and Ubuntu - 2021 and 2022

Поделиться
HTML-код
  • Опубликовано: 16 янв 2025

Комментарии • 133

  • @theansatz
    @theansatz 3 года назад +12

    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.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 года назад +2

      What if you try only openfoam2106? Without -default

    • @nuubxiii5278
      @nuubxiii5278 3 года назад

      @@OpenFOAMJozsefNagy I have the same problem as the commenter above. I tried removing “-default” but it’s still says unable to locate package openfoam2106. I still really appreciate your help and your constant replies to people. Your help is much appreciated!

    • @saurabhtripathi2598
      @saurabhtripathi2598 3 года назад

      @@OpenFOAMJozsefNagy Sir I am also facing the same issue

    • @fritkot9987
      @fritkot9987 3 года назад +18

      I had the same issue and managed to solve it by first running "sudo apt install ca-certificates", then "apt-get update" and then " sudo apt-get install openfoam2106-default"

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 года назад

      @@nuubxiii5278 Even after running sudo apt update?

  • @dhrubojyoti2875
    @dhrubojyoti2875 Год назад +1

    Excellent! Very helpful. Searched all over internet on how to connect openfoam to matlab

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  Год назад +1

      I am glad.

    • @dhrubojyoti2875
      @dhrubojyoti2875 Год назад +1

      I managed to run k-omega SST to get some beautiful results! Btw, do you have a linkedin? Would love to stay connected @@OpenFOAMJozsefNagy

  • @sikandaryosufzai2790
    @sikandaryosufzai2790 Год назад +6

    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

  • @basaruoz7127
    @basaruoz7127 3 года назад +2

    Thankyou, I really appreciate your help.
    It works 100%

  • @Physics_Guru
    @Physics_Guru 3 года назад +8

    Hi
    i am getting this error
    E: Unable to locate package openfoam2106-default.
    Can anyone please tell me how to overcome this

    • @AhsanKhanPhD
      @AhsanKhanPhD 2 года назад

      I get the same error...

    • @rodgo265
      @rodgo265 2 года назад

      I got the same, later I tried a different Ubuntu version then it worked

  • @ruima3847
    @ruima3847 3 года назад +4

    Haha Love it. I have watch all three installation instructions

  • @inesmendes3763
    @inesmendes3763 Год назад +2

    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

  • @sumantyadav9783
    @sumantyadav9783 3 года назад +2

    Thanks a lot to you, your videos are very helpful for me to understand the basis of OpenFOAM, I like your way of explaining. Can you please make a video on "Laser DTRM"?

  • @nicolasgarcia1155
    @nicolasgarcia1155 5 месяцев назад

    Sir, you are the best. Thanks

  • @fatimafatima-bg9hh
    @fatimafatima-bg9hh 2 года назад +1

    svp après 7:41 ça ne marche pas pour moi?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  2 года назад

      Sorry for the English, but my French is not the best. You can open up the .bashrc file in any other text editor of your choice (emacs, vim, gedit, notepad++ in windows). I hope this helps.

    • @fatimafatima-bg9hh
      @fatimafatima-bg9hh 2 года назад

      @@OpenFOAMJozsefNagy merci beaucoup

  • @nac9494
    @nac9494 3 года назад +1

  • @abal1766
    @abal1766 3 года назад

    Hello, Thanks for the tutorial. Will you be posting the Windows 11 installation video soon?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 года назад

      First I have to purchase a Win11 Laptop to fully recreate the fresh install of WSL in Win11, so this will be in January. But all you really have to do is open the new "Windows terminal" (not cmd!) and type in "wsl --install". Then you will get a Ubuntu and can install openfoam just like I show here.

  • @DrNonuV
    @DrNonuV Год назад

    thanks joz.. that helps

  • @paulhoffman8155
    @paulhoffman8155 2 года назад +1

    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!

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  2 года назад

      Mine has a lot of info which grew historically, so differences are fine. Does it tell you that there is no bashrc file or no of installation?

  • @manray8513
    @manray8513 11 месяцев назад

    Hey man, kind of curious do this software use CPU or GPU for calculation?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  11 месяцев назад

      CPU, but the GPU implementation has been in works now for years.

  • @ayushparajuli1330
    @ayushparajuli1330 2 года назад +1

    How do we transfer results from Ubuntu to Windows for post-processing?

  • @alb8350
    @alb8350 Год назад

    Hi,
    How can I add openfoam in grasshopper rhino?
    Regards

  • @meeranaskar
    @meeranaskar 8 месяцев назад

    Hi József Nagy, after curl -s command , i get an error message

  • @akashjinish525
    @akashjinish525 Год назад

    hello i am facing an issue while installing, when i type in the simplefoam command it says "command not found"

  • @etienne7209
    @etienne7209 Год назад

    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!

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  Год назад

      You just need the tutorials: cp -r PATHTOTUTORIALS /home/YOURHOME

  • @mojtabamaali1127
    @mojtabamaali1127 Год назад

    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?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  Год назад

      Which file does not give you permission? bashrc? In this case you have to contact your administrator to get access to the file.

    • @mojtabamaali1127
      @mojtabamaali1127 Год назад

      @@OpenFOAMJozsefNagy Thank you for your reply!

  • @zoo9189
    @zoo9189 Год назад

    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.

    • @muratsbf
      @muratsbf Год назад

      hi, did you solve the problem? I also faced with this issue, please help me if you have any solution about that

  • @SuperThracian
    @SuperThracian 2 года назад

    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?

    • @rajinthss7732
      @rajinthss7732 2 года назад +2

      You should include the "." after your command (without the quotation marks), which tells the system to copy the files into your "current" path. Without it, you will get the missing destination error.

  • @nickelschwarz7133
    @nickelschwarz7133 2 года назад

    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

  • @matheus_ars
    @matheus_ars 3 года назад

    Hello József. Do you know any tutorial with the dispersion of a contaminant in the air? Im looking for it for many days and I dont find anything. Thank you.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 года назад +1

      We do offer it as part of the of-campus, which is a CFD training in Singapore. Now due to Covid it is online, so anyone can join. We plan it for January/February next year.

  • @vladvlad6246
    @vladvlad6246 3 года назад

    It is very nice and looks simple. There is a question that I cannot resove. How to organise the file exchange between Windows and Linux? Thank you for your assistance.

    • @majanorman4248
      @majanorman4248 3 года назад

      I'm facing the same issue, I would really appreciate some assistance.

  • @trksee1236
    @trksee1236 3 года назад

    Hello sir, thanks for this video, can you help me? why when i installed these three versions of openFOAM -v1912, v2006 and v2012 in ubuntu 18.04 the setExprFields does not exist in the system of that cases which are needed ?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 года назад

      If it is not in the tutorials you can create the file yourself.

  • @school771
    @school771 2 года назад

    Is OpenFoam available for free or its a paid software?

  • @trksee1236
    @trksee1236 3 года назад

    and also after installing openFOAM in ubuntu i can not run my case, when i type ./Allrun and enter it, i get this : ./Allrun command not found

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 года назад

      As it seems the script is not in the folder you try to execute it.

  • @youngjinjeon4609
    @youngjinjeon4609 2 года назад

    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.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  2 года назад +2

      Unfortunately in 2112 for some reason it was removed. The executable commands are available but not the tutorials or the user guide. You need v2012 to access them.

    • @youngjinjeon4609
      @youngjinjeon4609 2 года назад

      @@OpenFOAMJozsefNagy Thanks for the reply!

  • @luisandresmollericontitiri667
    @luisandresmollericontitiri667 3 года назад +1

    Thanks

  • @saifahmad5232
    @saifahmad5232 3 года назад

    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.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 года назад +1

      You have to navigate into the folder you want to start the simulation in. You are still in your home folder.

  • @formulaveepinetown
    @formulaveepinetown 8 месяцев назад

    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.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  8 месяцев назад

      It is better to copy the tutorial to your C drive and replace the STL s there.

    • @formulaveepinetown
      @formulaveepinetown 8 месяцев назад

      @@OpenFOAMJozsefNagy When i go to text editor i get access denied. Will not let me make changes

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  8 месяцев назад

      @@formulaveepinetown Not even on your C drive?

    • @formulaveepinetown
      @formulaveepinetown 8 месяцев назад

      @@OpenFOAMJozsefNagy No it blocks me there too.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  8 месяцев назад

      @@formulaveepinetown Thes you do not seem to have write permissions on your PC.

  • @AjayHudgeRA
    @AjayHudgeRA 2 года назад +1

    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?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  2 года назад +1

      I think you forgot the dot after your path.

    • @AjayHudgeRA
      @AjayHudgeRA 2 года назад +2

      @@OpenFOAMJozsefNagy My command line is "cp -r /usr/lib/openfoam/openfoam2112/tutorials/incompressible/simpleFoam/" there is no dot in this command at the end. The dot is in the next line after pitzDaily . Please help.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  2 года назад

      @@AjayHudgeRA It has to be all in one line.

    • @abdulmajeed2305
      @abdulmajeed2305 2 года назад

      Did you figure it out? Because I have the same problem

    • @royce4067
      @royce4067 2 года назад +1

      @@OpenFOAMJozsefNagy Hi sir, what you mean by all in one line? I am following closely with your video and there is no dot at the end of "cp -r /usr/lib/openfoam/openfoam2112/tutorials/incompressible/simpleFoam/"

  • @ManuAr-p1x
    @ManuAr-p1x 29 дней назад

    I need a download link

  • @romarssieverything9667
    @romarssieverything9667 2 года назад

    hi, mine is stuck at "running apt-get update". How can I resolve this?

  • @albertcallejoamat7837
    @albertcallejoamat7837 9 месяцев назад

    ls: cannot access 'usr/lib/openfoam': No such file or directory

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  9 месяцев назад

      Something went wrong during installation. Check your output.

  • @monsemedina6905
    @monsemedina6905 2 года назад

    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

  • @ingenieriapasoapaso310
    @ingenieriapasoapaso310 2 года назад

    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

  • @ingenieriapasoapaso310
    @ingenieriapasoapaso310 2 года назад

    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

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  2 года назад

      Old versions are always problematic. Try to download the WSL tgz file of v1812 the way I download the version 1912 in my other video here ruclips.net/video/cUbC0MrkiOA/видео.html

  • @simonshayan2032
    @simonshayan2032 3 года назад

    Hello everyone, my Ubuntu says E: Unable to locate package openfoam. What should i do? I am a complete newbie when it comes to Ubuntu and don't know what to do. I have built the first two steps as shown in the video. It's probably just something very simple that needs to be added. Thanks for the help

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 года назад

      Did you execute all the commands as described? Which version of Ubuntu do you use? Possibly the addition of the repository was not successful. Or "sudo apt update" may also help.

    • @simonshayan2032
      @simonshayan2032 3 года назад +1

      @@OpenFOAMJozsefNagy Yes Sir, thank You. I use Ubuntu 20.04 LTS. With sudo apt install ca-certificates and sudo apt update it works now. But i have problems with paraview. "qt.qpa.xcb: could not connect to display" appears :(

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 года назад

      @@simonshayan2032 If you use WSL in Windows run the Windows version. If you are running native Ubuntu, try an older version and contact Paraview support that the latest version is buggy.

    • @ChickenChopEnjoyer
      @ChickenChopEnjoyer 3 года назад

      @@OpenFOAMJozsefNagy Hello Jozsef! I followed your steps using ver 20.04 and change it as you mentioned. However, it still does not work out. Does it have something to do with my E: drive?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 года назад

      @@ChickenChopEnjoyer Difficult to say without the error. Where does the workflow fail?

  • @srinath4amis
    @srinath4amis 3 года назад

    Hello Sir, Thank you so Much For your videos, Sir it would be if you could explain tutorials on Bubble Generation in micro Channel simulation Thank you :)

  • @antoineatangana
    @antoineatangana Год назад +1

    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.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  Год назад

      Sorry about that. You can change the speed of the video, if you feel I am too fast.

    • @antoineatangana
      @antoineatangana Год назад

      @@OpenFOAMJozsefNagy I already do it, but you don't really show how you are progressing. at the beginning it's good but in the end, even with a speed of ×0.25 things go as it was a competition.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  Год назад

      @@antoineatanganaOk, sorry about the speed.

    • @antoineatangana
      @antoineatangana Год назад +1

      @@OpenFOAMJozsefNagy No problem, thank you

    • @miketaulbut7568
      @miketaulbut7568 Год назад

      @@OpenFOAMJozsefNagy i tell people that everyday on tutorials..haha

  • @spianny
    @spianny Год назад

    thanks!

  • @matthiassinger3288
    @matthiassinger3288 3 года назад +1

    Hello Jószef, thank you very much for your detailed installation guide. After I installed OpenFoam successfully I wanted to check the installation via the command foamInstallationTest. Although the base configuration is ok I receive 2 critical errors. Also, under "Software Components" it says that flex, make, wmake, gcc, g++ and icoFoam is not installed. Can I ignore these errors?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 года назад

      The question is, do you want to compile source code or just run cases? If blockMesh runs, it should be good for running cases. If you want to compile you need those packages.

    • @matthiassinger3288
      @matthiassinger3288 3 года назад

      @@OpenFOAMJozsefNagy Thanks for your reply. I also want to compile sources. The interesting thing is that I can compile sources, despite the fact that I get the errors. Yesterday noon I did some programming tutorials according to the video of Tom Smith ( ruclips.net/video/KB9HhggUi_E/видео.html ) and everything seemed to work fine. I was just confused at first that I did something wrong during the installation but OpenFoam seems to use wmake for compiling anyway.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 года назад

      @@matthiassinger3288 Ok great!

  • @HarshitSingh-fv6sp
    @HarshitSingh-fv6sp 3 года назад

    In ubuntu 20.04 LTS "Unable to locate package openfoam2106-default" this error is showing up. What should I do?

  • @amrragheb3461
    @amrragheb3461 2 года назад

    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.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  2 года назад

      It says it in the error message:
      keyword direction is undefined in dictionary "/home/aragheb/FOAM_RUN/tutorials/incompressible/simpleFoam/pitzDaily/system/controlDict/functions/streamlines
      Entry "direction" undefined in the streamlines function.

    • @dev4shah__
      @dev4shah__ 2 года назад

      @@OpenFOAMJozsefNagy same issue, i did not understanf your sol for this
      actually it works if u follow every step, before writing simplefoam use the usr line first as shown in video

  • @ghadaabderrahim9921
    @ghadaabderrahim9921 2 года назад

    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.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  2 года назад

      You need a dot to indicate where you want to copy. Please refer to my Linux commands playlist for basic commands in Linux.

  • @mehmetdelikan4687
    @mehmetdelikan4687 2 года назад

    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.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  2 года назад

      The dot at the end is missing. Search the web on how to copy directories in the Linux terminal.

  • @luisandresmollericontitiri667
    @luisandresmollericontitiri667 3 года назад +1

    Thanks