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

[OpenFOAM.com] Permanent sourcing of OpenFOAM 19.06

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Rasmusiwersen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2019, 11:44
Default Permanent sourcing of OpenFOAM 19.06
  #1
Member
 
Rasmus Iwersen
Join Date: Jan 2019
Location: Denmark
Posts: 81
Rep Power: 8
Rasmusiwersen is on a distinguished road
HI all,

I have just successfully installed OpenFOAM 19.06 (finally) as well as building paraview successfully.

One curious thing keeps happening. It seems as if my souring of OpenFOAM v19.06 is only temporary. I have previously installed and used OpenFOAM verision 7 (openfoam.org). If i open a terminal from my desktop and change directory to $FOAM_TUTORIALS i automatically move to /opt/openfoam7/tutorials where i installed OpenFOAM 7.

Sourcing OpenFOAM to source ~/OpenFOAM/OpenFOAM-v1906/etc/bashrc makes me able to change directory through $FOAM_TUTORIALS to the $HOME directory where I have installed OpenFOAM v19.06. If i then close the terminal, and open it again, the source leads me back to tutorials from OpenFOAM version 7.. Is there a way that i can permanently run OpenFOAM version 19.06?

Thank you!
Rasmusiwersen is offline   Reply With Quote

Old   October 15, 2019, 03:14
Default Solved!
  #2
Member
 
Rasmus Iwersen
Join Date: Jan 2019
Location: Denmark
Posts: 81
Rep Power: 8
Rasmusiwersen is on a distinguished road
Hi all,

So I figured out the problem, pretty stupid one at that...

As i did before, sourcing the OpenFOAM version 19.06
source $HOME/OpenFOAM/OpenFOAM-v1906/etc/bashrc

i just forgot to run the following command:

source $HOME/.bashrc

The cd $FOAM_TUTORIALS now takes me to the correct directory.

/Rasmus
gcengineer likes this.
Rasmusiwersen is offline   Reply With Quote

Reply


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 12:58
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 07:15
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 14:36
OpenFOAM Foundation releases OpenFOAM 2.2.2 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 October 14, 2013 08:18
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 04:52


All times are GMT -4. The time now is 00:21.