18
OpenFOAM® installation OpenFOAM® is a registered trademark of OpenCFD Ltd. 1

OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

OpenFOAM® installation

OpenFOAM® is a registered trademark of OpenCFD Ltd. 1

Page 2: OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

Download OpenFOAM®

• Go to: http://www.openfoam.com/download/install-windows.php

• Download software by clicking on the link

16.08.2016 2

Page 3: OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

Before installation

• Check the BIOS/EFI if virtualization is enabled. If not, turn on virtualization and reboot the PC.

example

16.08.2016 3

Page 4: OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

Before installation

• The correct configuration of the virtualization setting is checked• for Win8, Win10:

• Task manager (see picture)

• for Win 7, Win XP:• Download tool:

https://www.microsoft.com/en-us/download/details.aspx?id=592#filelist

16.08.2016 4

Page 5: OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

Before installation

• Check PowerShell version• Start PowerShell

• Type „get-host“ (no quotation marks)

• If the Version is ≥2.0, proceed to next step

• Update PowerShell if necessary

16.08.2016 5

Page 6: OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

Before installation

• We also recommend uninstalling the following Software (if present)• Git

• Docker

• Older Versions of OpenFOAM®

16.08.2016 6

Page 7: OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

Installing OpenFOAM®

• Open the downloaded file and continue clicking through the prompts.

• We recommend using the default installation directories to avoid problems

16.08.2016 7

Page 8: OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

Configuring the virtual machine

• Start Oracle VM VirtualBox

16.08.2016 8

Page 9: OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

Configuring the virtual machine

• Choose the „default“ virtual machine

• Click on the yellow gear to access the options

16.08.2016 9

Page 10: OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

Configuring the virtual machine

• Set the amount of RAM

• We recommend leaving some RAM to ensure the stability of the Windows host system (approx. 1GB)

16.08.2016 10

Page 11: OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

Configuring the virtual machine

• Increase the number of CPUs to the desired amount.

16.08.2016 11

Page 12: OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

Changing the shared directory (optional)

• If required the directory that links the virtual machine and the host system can be changed

• IMPORTANT: Name must be „c/users“ (no quotation marks), or you will get writing permission errors!

• The virtual machine will always create a new folder with your username inside the one you specify!

16.08.2016 12

Page 13: OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

First start of OpenFOAM®

• Download test case from following the link:• LINK

• Unpack the folder into shared directory

16.08.2016 13

Page 14: OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

First start of OpenFOAM®

• You now have 2 Shortcuts on your desktop:

16.08.2016 14

Page 15: OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

First start of OpenFOAM®

• Right-click „OF_Env_create“ and run „as administrator“

• IMPORTANT: This must only be done once after installation!

16.08.2016 15

Page 16: OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

First start of OpenFOAM®

• Start OpenFOAM® by double-clicking the shown icon

• Type: • cd workingDir

• cd mvrc_testCase2share

• bash runCase.sh

• The case should run and .log files should be generated in the shared directory

16.08.2016 16

Page 17: OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

Done!If the test runs successfully, you are ready to install MantinumWFlow!

17

Page 18: OpenFOAM installation for MVRC - Mantium Challenge · 16.08.2016 11. Changing the shared directory (optional) •If required the directory that links the virtual machine and the host

Troubleshooting

• If you have any questions, don‘t hesitate to ask in the F1Technical forum:• http://www.f1technical.net/forum/viewtopic.php?f=14&t=23201

• The CFD-online forum also provides helpful tips for the OpenFOAM® installation• http://www.cfd-online.com/Forums/openfoam-installation/

16.08.2016 18