CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.com] Installing OpenFOAM on secondary drive (https://www.cfd-online.com/Forums/openfoam-installation/228150-installing-openfoam-secondary-drive.html)

CronusX June 21, 2020 16:14

Installing OpenFOAM on secondary drive
 
I'm installing OpenFOAM via Ubuntu Bash for Windows.

Instead of installing OpenFOAM on the C: drive, I want to install it on my F: drive (secondary hard drive).

I thought I was manipulating the instructions on openFOAM's website properly, but evidently now because when I try to do the test of the cravity tutorial I get the error.

Code:

Command 'blockMesh' not found, but can be installed with:
sudo apt install openFOAM.

Here are the steps I ran to istall openFOAM on my F: drive based on modifications to the install instructions on OpenFOAMs site. I would appreciate any feedback on where I went wrong.

Copied .tgz to bash-environment f drive folder OpenFOAM

Code:

cp -ar /mnt/c/Users/<USER>/Downloads/OpenFOAM-v1912-windows10.tgz /mnt/f/OpenFOAM
Untar'd the install file

Code:

sudo tar -xvzf  OpenFOAM-v1912-windows10.tgz -C /mnt/e/OpenFOAM
sudo chown -R mnt/f/OpenFOAM

Set the OpenFOAM working environment

Code:

echo "source /mnt/f/OpenFOAM/OpenFOAM/OpenFOAM-v1912/etc/bashrc" >> ~/.bashrc
source ~/.bashrc

I'm guessing it has to do with how I did the working environment. I'm not fluent in Linux so yeah let me know what I messed up here.

Thanks.


All times are GMT -4. The time now is 02:52.