Tutorial to run a simple model of OpenFOAM with Parafoam in Windows 10

openFoam_paraFoam_windows.PNG

The following tutorial shows the procedure to run an example model with the simple solver (steady-state for incompressible turbulent flow) from OpenFOAM in Windows 10. The tutorial covers also the steps to install Xming for the direct visualization of the model output with Paraview.

The tutorial is follows this tutorial:

https://www.hatarilabs.com/ih-en/how-to-install-openfoam-7-directly-on-window-10-tutorial

Its is recommended to complete both tutorials to have a complete implementation of OpenFOAM in Windows 10.

Video

Steps

Download XMING inside windows and install it

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

Open XMING, you can see it running next to the antivirus

Open the ubuntu kernel, add XMING to the bashrc file with the command:

echo "export DISPLAY=:0" >> ${HOME}/.bashrc

To save the changes

. $HOME/.bashrc

Copy a simpleFoam file

cp -r /opt/openfoam7/tutorials/incompressible/simpleFoam/pitzDaily .

cd pitzDaily

Run the simulation

blockMesh

simpleFoam

Run paraFoam

paraFoam

If you get an error related to “libQt5” type the following and re-run paraFoam

sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

1 Comment

Saul Montoya

Saul Montoya es Ingeniero Civil graduado de la Pontificia Universidad Católica del Perú en Lima con estudios de postgrado en Manejo e Ingeniería de Recursos Hídricos (Programa WAREM) de la Universidad de Stuttgart con mención en Ingeniería de Aguas Subterráneas y Hidroinformática.

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.