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

Conflict between OpenFOAM and NX Server

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 30, 2010, 18:55
Default Conflict between OpenFOAM and NX Server
  #1
New Member
 
MT
Join Date: Mar 2010
Location: USA
Posts: 20
Rep Power: 16
MechE is on a distinguished road
I am currently running OpenFOAM on a Fedora 12 64-bit computer in a remote location I followed the instructions and inputted the following:

. $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc

and then:

. $HOME/.bashrc

I can run OpenFOAM fine when i am physically on the remote computer but once i go off-site and try to get into it using the NX Client the desktop appears black.

So; after many hours... I deleted the line . $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc from the .bashrc file and then . $HOME/.bashrc

miraculously afterward i used the NX Client and it connected right to the desktop. But i can't run the code

Is there a work around for using this OpenFOAM bashrc file??

MT
MechE is offline   Reply With Quote

Old   March 31, 2010, 03:13
Default
  #2
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi

You could try creating an alias for OF in your $HOME/.bashrc file like so

Code:
alias OF=". $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc"
Then it will load all the OpenFOAM settings by running OF from the terminal.
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann is offline   Reply With Quote

Old   March 31, 2010, 08:44
Default
  #3
New Member
 
MT
Join Date: Mar 2010
Location: USA
Posts: 20
Rep Power: 16
MechE is on a distinguished road
Do i have to run: . $HOME/.bashrc after i call OF in the terminal?
MechE is offline   Reply With Quote

Old   March 31, 2010, 09:42
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hello again MechE,

The script $HOME/.bashrc is always called when you start a new terminal/console. Now, if you have changed the script and want the changes to be applied, then you can either:
  • source it:
    Code:
    . $HOME/.bashrc
  • run the changes directly in the command line;
  • or open a new terminal/console.
As for the NX Server issue, hopefully, after you follow Linnemann's instructions, start a new terminal or source the .bashrc script, then verify if the NX Server hasn't gone blind. Then setup the OpenFOAM's environment by typing OF and hit return/enter on the desired terminal and voilá... it either goes dark or it works

If it does goes dark again, then it's really weird! The only justification I can think of would be if you were running a single remote terminal without X windows (Gnome, KDE, etc...). The other idea, is if it goes black right after you launch Paraview/paraFoam...

Keep us posted on new developments

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   April 9, 2010, 17:21
Default
  #5
New Member
 
MT
Join Date: Mar 2010
Location: USA
Posts: 20
Rep Power: 16
MechE is on a distinguished road
Thank you very much for your help... I am now up and running!!

MT
MechE 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



All times are GMT -4. The time now is 15:07.