CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] Cannot install OpenFOAM in another drive on Windows WSL

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 23, 2020, 02:31
Exclamation Cannot install OpenFOAM in another drive on Windows WSL
  #1
New Member
 
Join Date: May 2020
Posts: 3
Rep Power: 2
SSG_NJ is on a distinguished road
Hello,

I'm new to OpenFOAM. I tried to install it on a different drive other than the C: drive, and I face an error when I try to execute "blockMesh" command.

Code:
command 'blockMesh' not found, but can be installed with:
sudo apt install openfoam
These are the steps I followed so far:
  1. Enabled WSL on windows 10
  2. Installed Ubuntu from the Windows store
  3. Downloaded OpenFOAM to a folder named 'OF' in H: drive
  4. Untarred the openfoam-v1912.tar file in H: drive under the same 'OF' folder
  5. Created a bashrc file in the 'OF' folder which contains in it the line
    Code:
    source /mnt/h/OF/OpenFOAM/OpenFOAM-v1912/etc/bashrc
  6. Restarted the linux shell in the 'OF' folder and entered command 'blockMesh' which gave the above mentioned error
  7. I also tried using the command "sudo blockMesh" but it still gives me a similar error:
    Code:
    sudo: blockMesh: command not found

I had also tried to follow what was said in this post :
Installing OpenFOAM on secondary drive

but unfortunately I am unable to understand what is being communicated.

I cannot install it on my C: (home) drive as there isn't enough space left.

Please help ASAP..

Last edited by SSG_NJ; June 25, 2020 at 05:07. Reason: Grammatical mistakes
SSG_NJ is offline   Reply With Quote

Reply

Tags
blockmesh not found, different drive, openfoam 1912, windows 10, wsl

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 06:15
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
unable to install openfoam 1.7 using apt-get maazhmd OpenFOAM Installation 7 July 24, 2011 11:18
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
How to install OpenFoam in Windows XP robert_dekker OpenFOAM Installation 4 October 20, 2010 21:15


All times are GMT -4. The time now is 20:58.