How to install OpenFOAM and run a simulation in Windows 10 in 2020 - tutorial

Поділитися
Вставка
  • Опубліковано 28 січ 2025

КОМЕНТАРІ • 337

  • @jbredy87
    @jbredy87 3 роки тому +1

    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.

  • @gonzalopulido
    @gonzalopulido 3 роки тому

    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.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому

      Great! I hope the videos help. Extend the study group to a local user meeting one or twice a year! In Austria works well.

  • @bryanwoode317
    @bryanwoode317 4 роки тому +7

    Thank you! Your tutorial was thorough, clear, and easy to follow. This helped me a lot!

  • @akshaykurade49
    @akshaykurade49 2 роки тому +1

    Thankyou very much!❤️
    I have watched multiple videos but only you kept it simple and compact 🤞🏽

  • @kelkelkasaurus653
    @kelkelkasaurus653 4 роки тому +1

    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.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому

      Great way to figure out things yourself. You will like OpenFOAM, I am sure.

  • @foamer2706
    @foamer2706 3 роки тому

    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!!!

  • @gustavoarmandogamarrahorna6569
    @gustavoarmandogamarrahorna6569 4 роки тому +4

    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!

    • @JEROCOPA
      @JEROCOPA 4 роки тому +1

      Hola, te puedo contactar si tengo algún problema? Te escribo desde Mexico

  • @andrebusch404
    @andrebusch404 4 роки тому +1

    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.

  • @crisppyy_bacon3784
    @crisppyy_bacon3784 3 роки тому

    Wow awesome video. I followed the directions on OpenFOAM website and they were not correct. But your instructions were spot on!

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому

      I am glad it helped!

    • @crisppyy_bacon3784
      @crisppyy_bacon3784 3 роки тому

      @@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

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому

      @@crisppyy_bacon3784 Do you use the Windows version of Paraview?

  • @AdelKnight1
    @AdelKnight1 3 роки тому +2

    Thank you for this procedure it is generalized for different of OpenFOAM and Ubuntu versions. I used the Paraview and looks good.

  • @dr.zuhaibakram3926
    @dr.zuhaibakram3926 3 роки тому +1

    Thank You József Nagy. I have learned how to install on Windows 10. I make a successful attempt.

  • @levelthree4699
    @levelthree4699 3 роки тому +1

    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.

  • @pavansainarasimha6741
    @pavansainarasimha6741 4 роки тому +3

    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.

    • @oh_hershey
      @oh_hershey 4 роки тому

      same

    • @leobazin9478
      @leobazin9478 3 роки тому

      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 ?

    • @ubadekemerli
      @ubadekemerli 3 роки тому

      in the editor, use "source ~/OpenFOAM/OpenFOAM-v2012/etc/bashrc" don't write it in the extended way.

  • @anthonymoschella859
    @anthonymoschella859 4 роки тому

    Great video! I got everything working without a hitch. Appreciate all your videos.

  • @irvinolchondra2210
    @irvinolchondra2210 4 роки тому +1

    Very clear presentation. This video really helps me. Thanks!

  • @arnoldquispehuarancca8285
    @arnoldquispehuarancca8285 3 роки тому +1

    Did Work !! , thanks from Peru :)

  • @theludvigmaxis1
    @theludvigmaxis1 4 роки тому +2

    Goodness you saved me. My thesis chair wanted me to get this program but I couldn't get it work from anywhere else online.

  • @MatiasSimonelli
    @MatiasSimonelli 4 роки тому

    Great Tutorial, I have never used Ubuntu and your tutorial was simple and very noob friendly, thanks!

  • @piotrmecht2500
    @piotrmecht2500 4 роки тому +4

    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

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому

      Thank you for your input!

    • @francootaola9172
      @francootaola9172 4 роки тому

      could you expand a little bit more? what is various aliases?

    • @piotrmecht2500
      @piotrmecht2500 4 роки тому +1

      @@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

  • @atxlax
    @atxlax 4 роки тому +3

    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?

    • @narayanlondhe6147
      @narayanlondhe6147 4 роки тому

      yeah same error with me !

    • @angrycutie9875
      @angrycutie9875 4 роки тому

      @@narayanlondhe6147 same with me too... or is it the problems it Ubuntu itself? but i dunno, can't figure anything..

  • @ИгорЏуковски
    @ИгорЏуковски 4 роки тому +4

    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?

  • @damianofranchini1908
    @damianofranchini1908 4 роки тому

    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

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому

      Where is our installation locted? Use the your path instead.

  • @thierrydaoud3458
    @thierrydaoud3458 2 роки тому +1

    Thank you for this video. It was really helpful!

  • @hunky-dory2735
    @hunky-dory2735 4 роки тому

    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

  • @JARC99_
    @JARC99_ 4 роки тому

    Thanks a lot it still works for the newest ubuntu and OpenFOAM versions :-)

  • @shahrozkhan4683
    @shahrozkhan4683 4 роки тому

    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!

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому

      There are several tutorials on first simulations on my channel.

  • @x.y.8707
    @x.y.8707 3 роки тому +1

    The tutorial works for my windows 10 home edition to install openfoam-v2012.

  • @TheBadpav
    @TheBadpav 4 роки тому

    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

    • @TheBadpav
      @TheBadpav 4 роки тому

      I copied the files to another directory and had success. I wonder why I couldn't write to that directory?

    • @ramgupta7697
      @ramgupta7697 3 роки тому

      Have you resolved the issue? Or is this issue necessary to resolve?
      Any kind of reply will be helpful.
      Thanks

  • @luorisluo3634
    @luorisluo3634 3 роки тому +1

    Thank you! This video truly helps me a lot! thanks, sincerely.

  • @shaikhassan4033
    @shaikhassan4033 4 роки тому

    Sir jozsef it shows block mesh is not installed at 18:09 could u help me with that.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому

      Maybe you did not save the one line in bashrc correctly.

    • @shaikhassan4033
      @shaikhassan4033 4 роки тому +1

      @@OpenFOAMJozsefNagy I'll surely try that sir. I am thankful for your reply

  • @thatsound7057
    @thatsound7057 4 роки тому

    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
      @OpenFOAMJozsefNagy  4 роки тому

      What is the path to your OpenFOAM-v2012?

    • @thatsound7057
      @thatsound7057 4 роки тому +1

      @@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.

  • @fawzanalfawzan1574
    @fawzanalfawzan1574 4 роки тому +1

    Thank you very much for the well detailed tutorial.

  • @77347469
    @77347469 3 роки тому

    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.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому

      I don't know contact the github account of microsoft and there is a forum for wsl.

  • @xingangli9791
    @xingangli9791 4 роки тому +1

    I really like your video. It helps a lot! Thank you!

  • @AbhishekSingh-yh7ce
    @AbhishekSingh-yh7ce 3 роки тому +1

    Awesome video❤️❤️😍😍

  • @hamzaa.8082
    @hamzaa.8082 4 роки тому

    Thank you for the detailed explanation. Everything went as you explained.

  • @miguelangelampuerosuarez8985
    @miguelangelampuerosuarez8985 4 роки тому

    Dear József, many thanks for sharing this video, it was very helpful for me! Thanks so much!!

  • @920602145509
    @920602145509 Рік тому

    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?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  Рік тому

      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.

  • @maxdarner5672
    @maxdarner5672 3 роки тому +1

    Great tutorial. I applaud you.

  • @vishalsethi4331
    @vishalsethi4331 4 роки тому

    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.

  • @mak8070
    @mak8070 4 роки тому +2

    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?

    • @sahilmahajan9018
      @sahilmahajan9018 4 роки тому

      Hello Merve. I have the same problem. Please let me know if you have found the solution for it. Thanks!

    • @mak8070
      @mak8070 4 роки тому

      Hi@@sahilmahajan9018, when I update my Windows 10, the problem fixed automatically. That is to say, the problem is related to operating system.

  • @amishabhaskar9728
    @amishabhaskar9728 4 роки тому +3

    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
      @amishabhaskar9728 4 роки тому

      Please help me out, I need to start working on a project and I'm stuck with this from yesterday

    • @amishabhaskar9728
      @amishabhaskar9728 4 роки тому

      Using explorer.exe?

    • @amishabhaskar9728
      @amishabhaskar9728 4 роки тому +1

      Even after sudo apt install openFOAM
      I'm getting the message file not found at the location

    • @jonathanbradley150
      @jonathanbradley150 4 роки тому +2

      @@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).

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому +1

      Yes, it is important to save the .bashrc file correctly.

  • @engineeringarts4509
    @engineeringarts4509 3 роки тому

    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.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому

      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.

    • @engineeringarts4509
      @engineeringarts4509 3 роки тому

      @@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??

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому

      @@engineeringarts4509 View your results in Paraview in decomposed mode instead of reconstructed mode. This works also in default paraview. You do not need parafoam

  • @priyamsareen2566
    @priyamsareen2566 4 роки тому

    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'

  • @alvaromaricio2242
    @alvaromaricio2242 3 роки тому +1

    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

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому +1

      You access the Windows files via /mnt/d/Users/10/Documents/etc...

    • @alvaromaricio2242
      @alvaromaricio2242 3 роки тому +1

      @@OpenFOAMJozsefNagy thanks, it's working now

  • @extremskfurious
    @extremskfurious 4 роки тому

    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 !

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому

      Then your OpenFOAM folder must be in a different location. Where is OpenFOAM-v2012 located? Is the path correct?

  • @toyayaone5258
    @toyayaone5258 4 роки тому +3

    Hello ? Thanks for this great video. I have an issue, when I write blockMesh, it says "Command not found", can anybody help me please?

    • @leonfevanggunn
      @leonfevanggunn 4 роки тому +4

      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")

    • @samreeder6680
      @samreeder6680 4 роки тому

      Leon fevang-gunn Same exact thing happened to me, thanks for the tip 👍

    • @eminsf
      @eminsf 3 роки тому

      @@leonfevanggunn Thanks a lot!

  • @lilythecute8153
    @lilythecute8153 4 роки тому

    Thank U so much, this video is very helpful for learning how to use OpenFOAM!!!

  • @danyboy773
    @danyboy773 3 роки тому +1

    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

    • @DogZy9
      @DogZy9 3 роки тому

      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!!

    • @danyboy773
      @danyboy773 3 роки тому

      @@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

  • @eventhatsme
    @eventhatsme 4 роки тому

    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
      @OpenFOAMJozsefNagy  4 роки тому

      You may try the tool VcXsrc instead of XMing.

    • @eventhatsme
      @eventhatsme 3 роки тому +1

      @@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

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому

      @@eventhatsme Great!

  • @huanzhang9502
    @huanzhang9502 4 роки тому

    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.?

  • @jorgearcos4808
    @jorgearcos4808 3 роки тому

    Hello József.
    what about the minimal System requirements
    tx

  • @abhijitpal7202
    @abhijitpal7202 4 роки тому +1

    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

  • @Fulcrum-27
    @Fulcrum-27 3 роки тому

    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.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому

      I live in Austria. It works for me with Norton, so I am not sure what the problem with Avira is.

  • @stewiegriffin6388
    @stewiegriffin6388 4 роки тому +1

    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

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому

      I guess you'd have to google it. Sorry.

    • @thangasivam
      @thangasivam 4 роки тому

      docs.microsoft.com/en-us/windows/wsl/install-manual

  • @ChristianSchubert1
    @ChristianSchubert1 4 роки тому +1

    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!

  • @vivianlen
    @vivianlen 4 роки тому +1

    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 .

  • @khaledebraheem
    @khaledebraheem 3 роки тому

    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.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому +1

      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.

  • @jagadeeshmallela2952
    @jagadeeshmallela2952 4 роки тому

    Thanks very much for such a detailed explanation

  • @basarhuzni4308
    @basarhuzni4308 3 роки тому +1

    Working 100% thanks

  • @bhootmehra
    @bhootmehra 4 роки тому +1

    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

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому +1

      Did you enter the one line into your bashrc and save it?

    • @bhootmehra
      @bhootmehra 4 роки тому

      @@OpenFOAMJozsefNagy yes, thank you. its working fine

  • @nishamahmed7081
    @nishamahmed7081 4 роки тому

    Very clear instructions. Thank you. :)

  • @metinbastug653
    @metinbastug653 3 роки тому

    How do you display cases,mesh etc in Paraview? I can't seem to find the files I want to view in Paraview.

  • @roibaruch462
    @roibaruch462 2 роки тому

    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?

  • @denghongzhou3785
    @denghongzhou3785 3 роки тому

    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.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому +1

      In wsl it is difficult. For now use the Windows version. Once WSLg is out this should be easier.

    • @denghongzhou3785
      @denghongzhou3785 3 роки тому

      @@OpenFOAMJozsefNagy thanks for the reply.

  • @Looisrey
    @Looisrey 4 роки тому +1

    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

  • @clecle2602
    @clecle2602 4 роки тому +1

    Thank you very much, great video

  • @deorasprabhudharwadkar8729
    @deorasprabhudharwadkar8729 4 роки тому

    Excellent demo. Thank you.

  • @mmss2658
    @mmss2658 2 роки тому

    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,

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  2 роки тому +1

      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.

  • @danielpineda2998
    @danielpineda2998 4 роки тому

    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

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому +1

      The documentation might help or the phd thesis of Henrik Rusche.

  • @BombermanOfComet
    @BombermanOfComet 4 роки тому

    Thank you for this well made tutorial

  • @CryDima
    @CryDima 4 роки тому +1

    Thank you
    József!

  • @BlackDoll0708
    @BlackDoll0708 4 роки тому

    Thank you for this Video.
    Is there an easy option just to update the installed OpenFoam Version 1906 to the 1912 version? Thank you.

  • @MrHumourTumour
    @MrHumourTumour 4 роки тому +1

    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!

  • @AhsanKhanPhD
    @AhsanKhanPhD 4 роки тому

    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?

    • @AhsanKhanPhD
      @AhsanKhanPhD 4 роки тому

      OK I got it...
      it was: ln -s
      Thank you again :)

  • @bravadoland2434
    @bravadoland2434 4 роки тому

    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.

  • @rongmaoli5740
    @rongmaoli5740 4 роки тому

    Very useful. Thank you very much !

  • @firebolltt
    @firebolltt 3 роки тому

    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?

  • @mohammadhoseinrivandi5657
    @mohammadhoseinrivandi5657 Рік тому

    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?

  • @hirenjoshi2198
    @hirenjoshi2198 4 роки тому +1

    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.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому

      You cannot have spaces in Linux in the path names.

    • @holmes0025
      @holmes0025 4 роки тому

      I am also having the same problem, have no spaces

  • @abdulmuizkhan2357
    @abdulmuizkhan2357 2 роки тому

    6:40 what is 1s ?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  2 роки тому +1

      It is ls. Not 1s. It is a linux command. It lists the content of your directory. Please google basic linux commands.

  • @krishnabiloni
    @krishnabiloni 3 роки тому

    this really helps to installed
    thanks sir

  • @mep1111
    @mep1111 4 роки тому

    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
      @OpenFOAMJozsefNagy  4 роки тому

      Run the cases in your on your Windows file system under /mnt/c.

    • @mep1111
      @mep1111 4 роки тому

      ​@@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.

  • @wiktorkawala6298
    @wiktorkawala6298 4 роки тому +1

    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?

  • @johnk9621
    @johnk9621 4 роки тому

    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

  • @muhammedensarsenturk4896
    @muhammedensarsenturk4896 3 роки тому

    i tried to install v2112 version but this is the type of exe doc so i couldnt use tar xf please help me

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому

      Try my more recent video here: ua-cam.com/video/w0bBOWlVlvA/v-deo.html

  • @weevilinabox
    @weevilinabox 4 роки тому

    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 :-)

    • @weevilinabox
      @weevilinabox 4 роки тому

      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.)

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому +1

      @@weevilinabox ThirdParty is now in OpenFOAM-v2012.

  • @1995costas
    @1995costas 4 роки тому

    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?

  • @ahsan4076
    @ahsan4076 4 роки тому

    what do u think is been installed or not

  • @jorgemolinagonzalez4492
    @jorgemolinagonzalez4492 4 роки тому

    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.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому

      Then just start it by clicking it in Windows, not from the terminal.

  • @arun7425
    @arun7425 2 роки тому

    at 12.53 seconds , not able to get Thirdparty-v2012 (letest) , omly had OpenFOAM-v2012 , please guide how to get thirdparty their. thanks

  • @sumitzanje9660
    @sumitzanje9660 3 роки тому

    Which option gives faster performance?:
    1) OF on ubuntu linux system
    2) OF on windows subsystem

  • @rahulreddy7682
    @rahulreddy7682 3 роки тому

    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
      @OpenFOAMJozsefNagy  3 роки тому

      Where did you download it from?

    • @rahulreddy7682
      @rahulreddy7682 3 роки тому

      @@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

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому

      @@rahulreddy7682 Try using the link for v2012

  • @mith3700
    @mith3700 4 роки тому

    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?

  • @simayldzdogan6951
    @simayldzdogan6951 3 роки тому

    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!

    • @simayldzdogan6951
      @simayldzdogan6951 3 роки тому

      I am using Ubuntu 20.04, maybe that is the problem?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому

      @@simayldzdogan6951 Try to run it in your home. Not in /opt

    • @simayldzdogan6951
      @simayldzdogan6951 3 роки тому

      @@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.

    • @simayldzdogan6951
      @simayldzdogan6951 3 роки тому

      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/"

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому

      @@simayldzdogan6951 Yes, this may be. Please ask you teacher.

  • @dhanishgola1222
    @dhanishgola1222 2 роки тому +1

    i am getting Foam Fatal Error what's the solution?

  • @mohamedtahaelbachirtahri2525
    @mohamedtahaelbachirtahri2525 4 роки тому

    What is the different between this installation in 2020 and your installation in 2014?

  • @ashutoshsingh-et7vm
    @ashutoshsingh-et7vm 4 роки тому +1

    Sir will this procedure will remove my existing file and folders on window

    • @Robberbarron27
      @Robberbarron27 4 роки тому

      No, This version of ubuntu is run inside of windows. It is just like any other program.

  • @danniel9660
    @danniel9660 4 роки тому

    Great vid, thank you very much!