CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

wmUNSET works for 2.4.0 but not for 5.0

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 27, 2017, 08:28
Default wmUNSET works for 2.4.0 but not for 5.0
  #1
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
Hello!

Minor issue:
the wmUNSET command works while I'm running the 2.4.0 version but if I change to OF 5.0, it says
Code:
wmUNSET: command not found
So this means when I'm working in 5.0 and I want to change to 2.4.0 using the appropriate alias, I must close this terminal window and open a new one to continue.

Anyone knows what could be going wrong ?
deepbandivadekar is offline   Reply With Quote

Old   October 29, 2017, 07:20
Default
  #2
New Member
 
Chris Coutinho
Join Date: Jan 2015
Location: Netherlands
Posts: 28
Rep Power: 11
cbcoutinho is on a distinguished road
Quote:
Originally Posted by deepbandivadekar View Post
Hello!

Minor issue:
the wmUNSET command works while I'm running the 2.4.0 version but if I change to OF 5.0, it says
Code:
wmUNSET: command not found
So this means when I'm working in 5.0 and I want to change to 2.4.0 using the appropriate alias, I must close this terminal window and open a new one to continue.

Anyone knows what could be going wrong ?
You can't have multiple versions of OpenFOAM initialized in the same terminal. Using an alias to source an openfoam environment while another one has already been used does not mean that the original one has been cleared in the current shell environment.

Close your terminal and reopen it to use another version of OpenFOAM.
cbcoutinho is offline   Reply With Quote

Old   October 30, 2017, 07:00
Default
  #3
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
Quote:
Originally Posted by cbcoutinho View Post
You can't have multiple versions of OpenFOAM initialized in the same terminal. Using an alias to source an openfoam environment while another one has already been used does not mean that the original one has been cleared in the current shell environment.

Close your terminal and reopen it to use another version of OpenFOAM.
So wmUNSET exists simply to unload the current OF environment? Oh okay.
But still, why won't it work for OF5.0 then ? Why the error
deepbandivadekar is offline   Reply With Quote

Old   October 30, 2017, 08:00
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

It was renamed.

Here's OpenFOAM-2.4.x/etc/config/aliases.sh

Code:
# clear env
alias wmUNSET='. $WM_PROJECT_DIR/etc/config/unset.sh'
Here's OpenFOAM-5.x/etc/config.sh/aliases

Code:
# Clear env
alias wmUnset='. $WM_PROJECT_DIR/etc/config.sh/unset'
deepbandivadekar likes this.
alexeym is offline   Reply With Quote

Old   October 30, 2017, 12:38
Default
  #5
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 8
deepbandivadekar is on a distinguished road
Thanks! That's exactly what I wanted to know.
deepbandivadekar 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
Error while importing Solid Works Model into Star CCM Sandy7 STAR-CCM+ 3 December 19, 2016 11:21
The costume code works in serial mode but not in parallel ehsan_am86 OpenFOAM Bugs 1 June 7, 2016 12:09
Parallel runs with sonicDyMFoam crashes (works fine with sonicFoam) jnilsson OpenFOAM Running, Solving & CFD 0 March 9, 2012 06:45
importing from Solid Works andrew hayes FLUENT 3 August 28, 2007 13:58
Importing from Solid Works mettler FLUENT 1 March 5, 2005 23:45


All times are GMT -4. The time now is 19:14.