How to install COOLFluiD on the Windows Platform

Dependencies

  1. Install CMake for Windows (version 2.6 or better)
    1. Download from  http://www.cmake.org.
    2. Choose the Windows Win32 Installer, not the zip
    3. Choose to add CMake to the system PATH.
    4. Install to whatever dir (tipically to "C:\Program Files\CMake2.6")
  2. Install Visual Studio C++ 2008
    1. The Express Edition is for free for personal use and is enough for COOLFluiD. The professional version is also OK.
    2. You may install to whatever directory
  3. Install Boost library (minimum version is 1.39 but can be more recent)
    1. Recommended Build boost yourself from the sources in  http://www.boost.org (instructions  here )
      1. Unpack the sources to C:\TMP\boost
      2. cd tools\jam
      3. build_dist.bat vc9 (or vc8)
      4. cd ../..
      5. tools\jam\stage\bin.ntx86\bjam.exe --prefix="C:\Program Files\boost" --without-mpi --without-python link=shared toolset=msvc threading=multi variant=release stage install
    2. Alternative Download from  http://www.boostpro.com
      1. Go to Products > Free Downloads
      2. Get BoostPro_1.39.0_Installer.exe
      3. Select to install for Visual C++ 9.0 (Visual Studio 2008)
      4. Select Multithread, DLL and Multithread, DLL Debug
      5. Install all default libraries
      6. Install to "C:\Program Files\boost\boost_1_39_0"
  4. Install MPICH2 MPI parallel environment
    1. Download the Windows IA 32 binary from  http://www.mcs.anl.gov/research/projects/mpich2/
    2. Install to whatever dir (typically to "C:\Program Files\MPICH2"). You will need .NET framework >= 2.0 to be able to install MPICH2, if you don't have it, download it from Microsoft website.
  5. Install Subversion for Windows
    1. Either Tortoise Svn Client with GUI
      1. Download from  http://tortoisesvn.tigris.org/.
      2. Install to whatever dir (typically in "C:\Program Files\")
    2. OR get a command line tool from CollabNet (requires registration)
      1. Download from  http://www.collab.net/downloads/subversion/

Command line configuration

  1. Create a directory to house the coolfluid files. Ex: C:\Work\coolfluid
  2. Use Tortoise svn to checkout the latest version of the COOLFluiD kernel
  3. Create a builds directory inside the coolfluid source directory
  4. Open a terminal and go to that builds dir
  5. Run:
    $> cmake .. -G"Visual Studio 9 2008" -DCF_SKIP_FORTRAN:BOOL=1 -DCMAKE_BUILD_TYPE=DEBUG
    

GUI configuration

  1. Use CMake GUI to configure the project
    1. select the source dir
    2. select the build dir
    3. add a entry CF_SKIP_FORTRAN of type BOOL set to true
    4. Run Configure button
    5. If configure was successful (check log for no CMake errors) you may continue, else post error to the mailing list.
    6. Press configure again (afterward there should be no red entries in main window)
    7. The generate button should be active now so run Generate button

Compilation

Using any method, a Ms Visual Studio Solution project should have been created in the builds directory.

  1. Open it with Visual Studio
  2. Compile the ALL_BUILD target

Running the Solver executable

COOLFluiD libraries are built dynamic (DLL) by default. Therefore the executable must be provided with the place where to search for them. You can do this by setting the PATH environment variable.

For example:

$> set path=C:\Work\coolfluid;%path%

Note: don't place " characters in the path.