If you're using Windows, you can still run OpenFOAM through WSL (Windows Subsystem for Linux).

Step 1: Install OpenFOAM via WSL

Follow the official step-by-step tutorial here (very clear and detailed):

https://openfoam.org/download/windows/


Step 2: Run OpenFOAM after Installation

Once you’ve completed all installation steps:

  1. Open “Command Prompt” (CMD)

    You’ll see something like this:

    C:\\Users\\YourName>
    
  2. Start WSL

    Type:

    wsl
    
  3. Navigate to your run directory

    cd $FOAM_RUN
    
  4. Source the OpenFOAM environment

    (adjust version if needed, e.g., openfoam10, openfoam2312, etc.)

    source /opt/openfoam12/etc/bashrc
    
  5. Check if environment is working


Step 3: Copy a Tutorial Case

Let’s copy a sample case (e.g., pitzDaily) into your working folder:

cp -r $FOAM_TUTORIALS/incompressible/pitzDaily .

Or another case:

cp -r $FOAM_TUTORIALS/potentialFoam/cylinder .

Step 4: Run the Simulation