To summarise my WSL journey:
In windows powershell I ran:
Restarted PC as prompted.
Back in powershell ran:
Open Ubuntu via Windows menu and set up username/password as prompted.
In the Ubuntu terminal run:
Code: Select all
curl -s https://dl.openfoam.com/add-debian-repo.sh | sudo bash
Code: Select all
sudo apt-get install openfoam2412-default
Download and unzip the Mflow linux edition somewhere on my windows drive with my mantium cases etc.
Change 'MantiumFlow-MFlow_2504a_linux\MantiumFlow_default_settings/default_settings.ini' such that the local OF line comments are switched and the bottom section of the file reads as follows;
# This is the root folder for many OF Installations
# For a precompiled version, this would look like this:
local_OF_location=/usr/lib/openfoam/
#local_OF_location=~/SOFTWARE/OpenFOAM
Back in Ubuntu navigate to the mantium directory I have but the important part to understand is that /mnt/ takes you to the root of your windows machine so for me it's something like
Code: Select all
cd /mnt/x/mantium/2025/MantiumFlow-MFlow_2504a_linux
Once in the mflow directory run;
This should launch the Linux Mflow GUI, albeit within Windows. From here open, apply settings and build a case as normal but do not run it via Mflow.
Navigate to the case you just built i.e.
Code: Select all
cd /mnt/x/mantium/2025/cases/001_testingtriplediffuserthatmakes-100cl
and then run it via