Difference between revisions of "Win10OpenSUSEShell by Stefan Radl"

From OpenFOAM Wiki
Jump to navigation Jump to search
Line 21: Line 21:
  
 
This section explains how to setup an OpenSUSE Leap 42 shell in Windows 10, and install OpenFOAM from source. The beautiful thing with such a "from source" installation is that you add libraries, solvers, external tools like CFDEM etc. as you need.
 
This section explains how to setup an OpenSUSE Leap 42 shell in Windows 10, and install OpenFOAM from source. The beautiful thing with such a "from source" installation is that you add libraries, solvers, external tools like CFDEM etc. as you need.
 +
 +
* Enable developer mode. E.g., see [https://www.howtogeek.com/292914/what-is-developer-mode-in-windows-10 HERE]
 +
* Enable the Windows Subsystem for Linux (this may require a restart). E.g., see [https://www.pcworld.com/article/3106463/windows/how-to-get-bash-on-windows-10-with-the-anniversary-update.html HERE]
 +
* Download and install OpenSUSE Leap 42 from the "Microsoft Store" in Win 10.
 +
* Start an OpenSUSE shell, and install missing libraries using zypper (i.e., as a superuser, do "zypper in openmpi", "zypper in openmpi-devel"). Note, the root password should be the same as that of the user.
 +
* Un-tar [https://cloud.tugraz.at/index.php/s/yWjdssxs6nEazQp THIS TAR FILE] with a pre-compiled version of OF 4.x into your newly available /opt/ directory of your OpenSUSE shell (you need root privileges there). Alternatively, check-out the source code of the OpenFOAM version of your choice, and compile from source.
  
 
=File Structure and Arrangement=
 
=File Structure and Arrangement=

Revision as of 14:06, 12 November 2018

Go back to Tips.

Go back to 3 weeks series.

Purpose and Intro

Having an OpenSUSE shell on Win10 with OpenFOAM installed is of great advantage for Windows users that do not want to have a dual-boot or virtual maschine installed. I recommend the "shell on Win10" solution especially for installations on laptops, and users that would like to run simple cases and do not care about performance too much. It is hence ideal for beginners, students, and instructors that work with Windows users.

Note, some Linux users prefer the Ubuntu distribution. You will find Win10 shell tutorials for Ubuntu for example HERE (Jozsef Nagy's work).

How to install OpenFOAM in Windows 10 using an OpenSUSE Leap 42 shell

This section explains how to setup an OpenSUSE Leap 42 shell in Windows 10, and install OpenFOAM from source. The beautiful thing with such a "from source" installation is that you add libraries, solvers, external tools like CFDEM etc. as you need.

  • Enable developer mode. E.g., see HERE
  • Enable the Windows Subsystem for Linux (this may require a restart). E.g., see HERE
  • Download and install OpenSUSE Leap 42 from the "Microsoft Store" in Win 10.
  • Start an OpenSUSE shell, and install missing libraries using zypper (i.e., as a superuser, do "zypper in openmpi", "zypper in openmpi-devel"). Note, the root password should be the same as that of the user.
  • Un-tar THIS TAR FILE with a pre-compiled version of OF 4.x into your newly available /opt/ directory of your OpenSUSE shell (you need root privileges there). Alternatively, check-out the source code of the OpenFOAM version of your choice, and compile from source.

File Structure and Arrangement

You need to be careful with the file structure, since this may mess up your OpenSUSE shell.

Suggested Workflow for Running and Postprocessing OpenFOAM runs