Openfoam for Windows

After more than 15 years, the OpenFOAM for Windows project from CFD SUPPORT is retiring as a standalone project. What started as a simple Windows port gradually evolved into the foundations of TCAE-Lite and TCAE, where the project and its development continue further. Existing users are encouraged to continue with TCAE-Lite or TCAE depending on their workflow and support requirements.

OPENFOAM FOR WINDOWS

Free, natively compiled package for running OpenFOAM® in Windows

OpenFOAM® for Windows is a comprehensive CFD software package allowing to run OpenFOAM® (originally designed for Linux) in Microsoft Windows. OpenFOAM® for Windows is free of charge.

At CFD Support we understand the challenges of modern companies workflow. Our long term goal is building bridges between top-class development and real practice. In the past we have received many requirements on providing and supporting OpenFOAM® software under Microsoft Windows. As a result, we have delivered to the market OpenFOAM® for Windows.

OpenFOAM® for Windows goes well together with CFD Support’s other products and services: Turbomachinery CFD created to enable a quick and efficient design optimization of turbomachinery components. Turbo Blade Post created to enable an efficient visual postprocessing of turbomachinery.

We also recommend our OpenFOAM® Training which may help you to upgrade your OpenFOAM® skills to proper level.

OpenFOAM® for Windows is fully supported, see General OpenFOAM® Support. OpenFOAM® for Windows is maintained regularly updated together with latest OpenFOAM® versions.

OpenFOAM® for Windows was primarily tested in Wndows 10 and also quite well tested in Wndows 7 and Wndows 8.1. Installation instructions can be found here.

Technical Specifications & Software Features

OpenFOAM® for Windows includes:

Install OpenFOAM® for Windows

When running OpenFOAM® in Windows we recommend to use Cygwin software to keep the workflow consistent with Linux as much as possible. There are many other ways of using OpenFOAM® for Windows, depending on your previous experiences, preferred applications and other circumstances. This page describes just one of those ways.

After downloaded OpenFOAM® for Windows installation file, simply run it. We recommend to follow the installation default options.

Example 1 : first case run

  1. run OpenFOAM for Windows
  2.  $  mc  

    mc command runs midnight commander, which is truly powerful tool when working in terminal, note you can always switch by ctrl+o to command line to run commands and again ctrl+o back to manage files

  3.  $  run  

    run alias jumps to your working directory

  4.  $  cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity ./

    copy the cavity tutorial case here

  5.  $  cd cavity

    change directory to cavity

  6.  $  blockMesh.exe

    create the computational mesh

  7.  $  icoFoam.exe

    run the solver

  8.  $  paraFoam

    view results in ParaView

Example 2 : run OpenFOAM for Windows in parallel

  1. run OpenFOAM for Windows
  2.  $  mc  
  3.  $  run 
  4.  $  cp -r $FOAM_TUTORIALS/incompressible/simpleFoam/pitzDaily ./
  5.  $  cd pitzDaily
  6.  $  cp -r $FOAM_TUTORIALS/incompressible/simpleFoam/motorBike/system/decomposeParDict ./system/
  7.  $  blockMesh.exe
  8.  $  decomposePar.exe
  9.  $  mpiexec -n 6 simpleFoam -parallel
  10.  $  reconstructPar.exe
  11.  $  paraFoam

Example 3 : create new solver (compilation)

  1. run OpenFOAM for Windows
  2.  $  mc  
  3.  $  run
  4.  $  mkdir myFirstWindowsOpenFOAMSolver
  5.  $  cd myFirstWindowsOpenFOAMSolver
  6.  $  cp -r $FOAM_SOLVERS/incompressible/icoFoam/* ./
  7.  $  sed -i "s/\/icoFoam/\/myFirstWindowsOpenFOAMSolver/g" Make/files
  8.  $  wmake
  9.  $  run
  10.  $  cp -r $FOAM_TUTORIALS/incompressible/icoFoam/cavity/cavity ./
  11.  $  cd cavity/
  12.  $  blockMesh.exe
  13.  $  myFirstWindowsOpenFOAMSolver.exe
  14.  $  paraFoam

Example 4 : motorBike

  1. run OpenFOAM for Windows
  2.  $  mc  
  3.  $  run
  4.  $  cp -r $FOAM_TUTORIALS/incompressible/simpleFoam/motorBike ./
  5.  $  cd motorBike
  6.  $  find ./ -type f | xargs sed -i "s/WM_PROJECT_DIR/OPENFOAM_INSTALL_PATH/g"
  7.  $  ./Allrun
  8.  $  paraFoam

Download OpenFOAM for Windows

 

This offering is not approved or endorsed by OpenCFD Limited, producer and distributor of the OpenFOAM software and owner of the OPENFOAM® and OpenCFD® trade marks.