[OLD] Windows 10 Installation Notes - ladybug-tools/butterfly GitHub Wiki

Installing OpenFoam on a PC using Windows 10

  1. Install OpenFOAM 1.612. Do NOT run OF_Env_Create yet!

  2. Uninstall Oracle VM VirtualBox 5.1 and install Oracle VM VirtualBox 5.2.22 instead.

  3. Find "Docker Quick Start Terminal" on your desktop and double click on it. If you get an error message, right click and select "Run as administrator". You should see a black window with "Start interactive shell" in white text. Once you have this window, type the following commands and hit enter after each line item:

cd \c\
cd ..
cd ..
cd 'Program Files (x86)'
cd ESI/OpenFOAM/1612/Windows/Scripts
docker load -i of_v1612plus_centos66.tar

For version 1706+ the last line will be

docker load -i of_v1706_centos73.tar
  1. Keep Docker Quick Start Terminal open, then go to your desktop and find an icon for OF_Env_Create. Right click on OF_Env_Create and select Run as administrator. A new terminal will open which sets up the environment.

  2. Finally run OpenFOAM_Start as an admin and you should see a terminal similar to image below.

OpenFOAM for Windows

  1. Now that OpenFOAM is running successfully you can install Butterfly plugin for Dynamo and Grasshopper.

Other Helpful Tips

  1. Rhino units should be set to "meters". Butterfly converts the units however it is recommended to keep the units in meters.

  2. Note that you must select "OpenFOAM_start" on your desktop and right-click to "Run as Administrator" after each computer restart. You must have OpenFoam running in the background prior to running a CFD simulation using Rhino/Dynamo and Butterfly.

  3. In case you have an issue that Hype-V is running and Virtual Machine can not start please use this trick to switch it off:

run cmd.exe as administrator and execute this command:

bcdedit /set {current} hypervisorlaunchtype off

If you need Hyper-V again, use this command:

bcdedit /set {current} hypervisorlaunchtype auto