If you're using Windows, you can still run OpenFOAM through WSL (Windows Subsystem for Linux).
Follow the official step-by-step tutorial here (very clear and detailed):
https://openfoam.org/download/windows/
Once you’ve completed all installation steps:
Open “Command Prompt” (CMD)
You’ll see something like this:
C:\\Users\\YourName>
Start WSL
Type:
wsl
Navigate to your run directory
cd $FOAM_RUN
Source the OpenFOAM environment
(adjust version if needed, e.g., openfoam10, openfoam2312, etc.)
source /opt/openfoam12/etc/bashrc
Check if environment is working
To confirm the $FOAM_RUN path:
echo $FOAM_RUN
To check your current directory:
pwd
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 .