Install OpenFOAM on Windows | Full Quick Guide (WSL + Ubuntu + OpenFOAM)

Install OpenFOAM on Windows | Full Quick Guide (WSL + Ubuntu + OpenFOAM)

Hey everyone, and welcome back to AutoES! 🚀 In this quick tutorial, I’ll show you how to install OpenFOAM 2412 on Windows using WSL (Windows Subsystem for Linux) — in just a few simple commands. By the end, you’ll have OpenFOAM running smoothly on your Windows machine and ready for any CFD project. 💪 🧩 Steps Covered in This Video: Step 1 — Enable windows subsystem as linux WSL and virtual machine platform Step 2 install wsl and ubuntu Open Windows Terminal and run: wsl --install ➡️ This installs WSL 2 and Ubuntu automatically. Restart your computer when prompted and create user name and password. Step 3 — Install OpenFOAM 2412 Inside terminal, run: wsl Add the repository curl -s https://dl.openfoam.com/add-debian-re... | sudo bash Update the repository information sudo apt-get update Install preferred package. Eg, sudo apt-get install openfoam2412-default Use the openfoam shell session. Eg, openfoam2412 Step 4 — Edit and Reload .bashrc open the .bashrc file using this command in the wsl terminal nano ~/.bashrc Add this line at the end of your .bashrc file: source /usr/lib/openfoam/openfoam2412/etc/bashrc Then press [ control + o & Enter] to save and [control + x] to exit reload it using this command: source ~/.bashrc End of setup-------------------------------------------------------------------- 💡 Resources Mentioned: 🔗 Official OpenFOAM Download Page https://develop.openfoam.com/Developm... 🔗 Airfoil video tutorial on YouTube    • Auto 2D Airfoil CFD | Multi AoA | Python +...   🎯 About This Channel AutoES is your go-to source for open-source CFD, simulation tutorials, and mechanical engineering tools — explained clearly for students, researchers, and professionals. 📢 Don’t Forget If you’re interested in CFD and open-source tools, and how they can solve real-life engineering problems, 👉 Subscribe and Share this video to support more engineers like you! #cfd #openfoam #installation #opensource #ubuntu #wsl #windows #engineering #tutorial #engineeringtutorials