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

[OpenFOAM.org] OpenFOAMv11 installation (Sourcing bashrc file)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Martin_Sz

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 5, 2024, 14:52
Default OpenFOAMv11 installation (Sourcing bashrc file)
  #1
New Member
 
saumya
Join Date: Jan 2016
Posts: 3
Rep Power: 10
som1197 is on a distinguished road
I am trying to install the OpenFOAM 11 version of thew software on my Windows server 22 OS through WSL. I followed the documentation based on the 4 steps mentioned here.

https://openfoam.org/download/source...g-environment/

While sourcing the bashrc file through my $HOME directory, I am getting the following errors as shown in the image attached. Do I need to make any changes in the User editable portion of the bashrc script?
Attached Images
File Type: png Openfoam_issue_1.png (10.0 KB, 13 views)
som1197 is offline   Reply With Quote

Old   June 25, 2024, 07:08
Default
  #2
Senior Member
 
Martin_Sz's Avatar
 
Marcin
Join Date: May 2014
Location: Poland, Swiebodzin
Posts: 313
Rep Power: 13
Martin_Sz is on a distinguished road
The errors you're encountering, "command not found," indicate that the shell cannot locate the foamSource and foamParams commands. This typically happens when the source path in your .bashrc file isn't set correctly.
Here's how to troubleshoot the issue:
* Verify source path:
* Open the .bashrc file in your WSL $HOME directory (e.g., using nano or vi editor).
* Look for lines containing source or .. These lines should specify the path to the OpenFOAM environment setup script.
* Ensure the path points to the correct location of the script within your WSL installation.
* Check environment variables:
* Some OpenFOAM functionalities rely on environment variables specific to the Linux environment.
* Consult the OpenFOAM documentation for any required environment variables and set them accordingly in your WSL terminal using the export command (e.g., export WM_PROJECT_DIR=/path/to/openfoam).
Thaw Tar likes this.
__________________
Quick Tips and Tricks, Tutorials FLuent/ CFX (CFD)
https://howtooansys.blogspot.com/
Martin_Sz is offline   Reply With Quote

Reply

Tags
#openfoam installation


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
[Other] Tabulated thermophysicalProperties library chriss85 OpenFOAM Community Contributions 62 October 2, 2022 04:50
what is swap4foam ?? AB08 OpenFOAM 28 February 2, 2016 02:22
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 22:53
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


All times are GMT -4. The time now is 12:08.