|
[Sponsors] |
June 25, 2009, 19:06 |
Is it better to create a user for openFOAM?
|
#1 |
Member
Join Date: Jun 2009
Posts: 38
Rep Power: 17 |
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
|
|
June 26, 2009, 06:25 |
|
#2 |
New Member
Gunnar Werte
Join Date: Jun 2009
Posts: 7
Rep Power: 17 |
>Is it better to create a user for openFOAM?
No, in my opinion it is better to eat vegetables. |
|
June 26, 2009, 06:30 |
|
#3 |
Senior Member
Rishi .
Join Date: Mar 2009
Posts: 149
Rep Power: 17 |
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. |
|
June 26, 2009, 09:47 |
|
#4 | |
Member
Michael Roth
Join Date: Mar 2009
Location: Guelph, Ontario, Canada
Posts: 50
Rep Power: 17 |
Or you can just use your system compiler by making a switch in your $WM_PROJECT_DIR/etc/settings.sh:
Quote:
Michael |
||
June 26, 2009, 14:58 |
|
#5 |
Member
Join Date: Jun 2009
Posts: 38
Rep Power: 17 |
The fact that system compiler is 4.3.2 instead of openfoam 4.3.1, can create problems? Xwang
|
|
June 27, 2009, 05:00 |
|
#6 |
Member
Join Date: Jun 2009
Posts: 38
Rep Power: 17 |
I've set in etc/settings.sh:
Code:
WM_COMPILER_INST=System 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. How can I change it? Thank you, Xwang |
|
July 15, 2009, 07:31 |
Solution
|
#7 |
New Member
A. Rudolf
Join Date: Jul 2009
Posts: 1
Rep Power: 0 |
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 ... |
|
|
|
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 |