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

Is it better to create a user for openFOAM?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 25, 2009, 19:06
Default Is it better to create a user for openFOAM?
  #1
Member
 
Join Date: Jun 2009
Posts: 38
Rep Power: 17
Xwang is on a distinguished road
Hi, I've tried to install openFOAM using my user, but I've see that it changes the default gcc compiler to the one shipped with openFOAM. So I'm wondering if it is better to create a user specifically for OF15 so that to mantain the base system as shipped by the distro. Then to use OF and paraview I've just to log as the newuser using ssh -X, is it correct? Xwang
Xwang is offline   Reply With Quote

Old   June 26, 2009, 06:25
Default
  #2
New Member
 
Gunnar Werte
Join Date: Jun 2009
Posts: 7
Rep Power: 17
gunnar is on a distinguished road
>Is it better to create a user for openFOAM?

No, in my opinion it is better to eat vegetables.
gunnar is offline   Reply With Quote

Old   June 26, 2009, 06:30
Default
  #3
Senior Member
 
Rishi .
Join Date: Mar 2009
Posts: 149
Rep Power: 17
hellorishi is on a distinguished road
You can use the same user for OF and other requirements.
It is all about sourcing the correct variables. If you remove/or better hide the following line from your .bachrc file, you can use default gcc compiler of your Linux (not OF)

. $HOME/OpenFOAM/OpenFOAM-<VERSION>/etc/bashrc
AND

You can also create a seperate user for OF (and ParaView) and then just log into that system, by rebooting or logging off current user.
hellorishi is offline   Reply With Quote

Old   June 26, 2009, 09:47
Default
  #4
Member
 
Michael Roth
Join Date: Mar 2009
Location: Guelph, Ontario, Canada
Posts: 50
Rep Power: 17
roth is on a distinguished road
Or you can just use your system compiler by making a switch in your $WM_PROJECT_DIR/etc/settings.sh:

Quote:
# Select compiler installation
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# compilerInstall = OpenFOAM | System
compilerInstall=System
I find using the system compiler is the path of least resistance.

Michael
roth is offline   Reply With Quote

Old   June 26, 2009, 14:58
Default
  #5
Member
 
Join Date: Jun 2009
Posts: 38
Rep Power: 17
Xwang is on a distinguished road
Quote:
Originally Posted by roth View Post
Or you can just use your system compiler by making a switch in your $WM_PROJECT_DIR/etc/settings.sh:

I find using the system compiler is the path of least resistance.

Michael
The fact that system compiler is 4.3.2 instead of openfoam 4.3.1, can create problems? Xwang
Xwang is offline   Reply With Quote

Old   June 27, 2009, 05:00
Default
  #6
Member
 
Join Date: Jun 2009
Posts: 38
Rep Power: 17
Xwang is on a distinguished road
I've set in etc/settings.sh:

Code:
WM_COMPILER_INST=System
but if I run the foamInstallationTest I obtain:

Code:
./foamInstallationTest:                                 


Checking basic setup...
-------------------------------------------------------------------------------
Shell:              bash                                                       
Host:               pro5av                                                     
OS:                 Linux version 2.6.27-14-generic                            
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid      Crit   
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/andreak/OpenFOAM                   yes       yes    
$WM_PROJECT_USER_DIR /home/andreak/OpenFOAM/andreak-1.5       yes       no     
$WM_THIRD_PARTY_DIR  /home/andreak/OpenFOAM/ThirdParty        yes       yes    
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit   
-------------------------------------------------------------------------------
$WM_PROJECT_DIR      /home/andreak/OpenFOAM/OpenFOAM-1.5      yes  yes  yes    

$FOAM_APPBIN         ...1.5/applications/bin/linux64GccDPOpt  yes  yes  yes
$FOAM_USER_APPBIN    ...1.5/applications/bin/linux64GccDPOpt  yes  yes  no                                                                                                       
$WM_DIR              .../andreak/OpenFOAM/OpenFOAM-1.5/wmake  yes  yes  yes                                                                                                      
-------------------------------------------------------------------------------                                                                                                  


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory                Valid Path Crit   
-------------------------------------------------------------------------------
$FOAM_LIBBIN         ...OAM/OpenFOAM-1.5/lib/linux64GccDPOpt  yes  yes  yes    
$FOAM_USER_LIBBIN    ...FOAM/andreak-1.5/lib/linux64GccDPOpt  yes  yes  no     
$MPI_ARCH_PATH       ...nmpi-1.2.6/platforms/linux64GccDPOpt  yes  yes  yes    
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version   Location                                                    
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM 
         Supplied version: 4.3.1                                               
         User version    : ../src/configure                                    
4.3.2
         Minimum required: 4.2.0

gcc      ...figure
WARNING:  Conflicting installations:
          OpenFOAM settings        : /bin/gcc
          current path             : /usr/bin/gcc
          CRITICAL ERROR

gzip     1.3.12    /bin/gzip
tar      1.20      /bin/tar
icoFoam  1.5       .../OpenFOAM-1.5/applications/bin/linux64GccDPOpt/icoFoam
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action                   Result                                       Crit
-------------------------------------------------------------------------------
Pinging_pro5av           Successful                                   yes
Pinging_localHost        Successful                                   yes
Test_rsh:                Unsuccessful_connection_refused*             yes
Test_ssh:                Successful                                   yes
(*) Only one of rsh or ssh is required by the OpenFOAM enviroment.

-------------------------------------------------------------------------------

Base configuration ok.

The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

done.
So it seems that I have to change the path of the gcc compiler in OpenFoam (which is wrong).
How can I change it?
Thank you,
Xwang
Xwang is offline   Reply With Quote

Old   July 15, 2009, 07:31
Default Solution
  #7
New Member
 
A. Rudolf
Join Date: Jul 2009
Posts: 1
Rep Power: 0
arudolf is on a distinguished road
You have set the WM_COMPILER_DIR to /usr. You can try that it works by simply setting this variable in your shell and then run foamInstallationTest.

To have the correct setting in all shells, I have added the red lines in $WM_PROJECT_DIR/etc/$settings.sh:

....
WM_COMPILER_BIN=$WM_COMPILER_DIR/bin
WM_COMPILER_LIB=$WM_COMPILER_DIR/lib$WM_COMPILER_LIB_ARCH:$WM_COMPILER_DIR/lib
;;

System)
export WM_COMPILER_DIR=/usr
;;

esac
...
arudolf 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
Meshing a Sphere Ajay FLUENT 10 September 3, 2016 15:18
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
How to create an user defined function? Cagdas FLUENT 1 September 5, 2007 21:02
How to create a user surface on a domain between.. Yuan Liu CFX 2 October 3, 2006 04:24
how to create a user surface in cfx5.7 feng CFX 1 September 20, 2004 18:55


All times are GMT -4. The time now is 04:13.