Installation

This document describes the installation steps needed to get the XBeach MI (Multiple Instances) framework to work on a Windows machine (the screenshots may deviate slightly as they are from a Mac OS X machine). If you have a working XBeach installation you can skip step 1. If you have a working Python 2.7 installation with packages numpy, netCDF4, multiprocessing and mako installed, you can skip step 2.

1. Download XBeach

  1. Go to http://xbeach.org.
_images/image1.png
  1. Choose Downloads and Releases and source.
_images/image2.png
  1. Go to Daily builds and download XBeach rev. XXXX (with netCDF support). You need a recent version of XBeach (rev. >= 4748) that implements the Basic Model Interface (BMI).
_images/image3.png
_images/image4.png

2. Download Python

  1. Google for Python XY (or Anaconda).
_images/image5.png
  1. Follow the instructions to download Python XY (or Anaconda).
_images/image6.png
  1. Follow the instructions to install Python XY (or Anaconda). Do not forget to choose Full install and not the default installation configuration.

3. Download BMI and XBeach MI

  1. Go to http://github.com/openearth and search for bmi-python.
_images/image7.png
  1. Choose Download ZIP.
_images/image8.png
  1. Go back and search for xbeach-mi.
_images/image9.png
  1. Choose Download ZIP.
_images/image10.png

4. Install BMI and XBeach MI

  1. Unzip the downloaded bmi-python and xbeach-mi packages.
  2. Go to the command line (Start > cmd).
  3. Go to the download directory of the bmi-python package.
  4. Go to the directory that contains the setup.py file.
  5. Run the command python setup.py install.
_images/image11.png
  1. Go to the download directory of the xbeach-mi package that contains the setup.py file.
  2. Again, run the command python setup.py install.

5. Test XBeach MI

  1. Test the installation by running the command xbeach-mi --help.
_images/image12.png
  1. Go to the example directory in the xbeach-mi download directory.
  2. Run XBeach MI with the provided configuration file.
_images/image13.png
  1. Details on configuring and running XBeach MI can be found on the documentation website: Examples