CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Suse Linux 91 port (https://www.cfd-online.com/Forums/openfoam-installation/57657-suse-linux-91-port.html)

brooksmoses April 15, 2006 02:10

Guoxiang - Is there a libOp
 
Guoxiang -

Is there a libOpenFOAM.so file in /home/liu/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt?

If that doesn't exist, then your real error is earlier, when Allwmake attempts to compile libOpenFOAM. What messages do you get if you go into the OpenFOAM-1.3/src directory and type "wclean OpenFOAM" followed by "wmake libso OpenFOAM"?

liugx212 April 16, 2006 00:49

Hi, Brooks Moses Thank you
 
Hi, Brooks Moses

Thank you for your help.

Just now, I found as you said. But really did not find the libOpenFOAM.so file in that path.
The follows are the message after running as you pointed out.
Could you give me more help?

Thanks again.

Messages:
[liu@liu OpenFOAM-1.3]$ cd src
[liu@liu src]$ wclean OPenFOAM
/home/liu/OpenFOAM/OpenFOAM-1.3/wmake/wclean: directory OPenFOAM does not exist
[liu@liu src]$ wclean libso OpenFOAM
[liu@liu src]$

brooksmoses April 16, 2006 01:13

The second command should be "
 
The second command should be "wmake libso OpenFOAM" -- "wmake" rather than "wclean". Running that should produce quite a lot more messages; just give us the first one or two that include an error.

(Also, the first command produced an error because you accidentally capitalized the "P" in "OpenFOAM". Linux is case sensitive, so such things do matter.)

liugx212 April 16, 2006 11:13

Hi Brooks Moses, Thanks a l
 
Hi Brooks Moses,

Thanks a lot.
I copied the libOpenFOAM.so file to /home/liu/OpenFOAM/OpenFOAM-1.3/lib/linuxGcc4DPOpt and then run Allwmake. Now, It looks working without any error message. But another problem still trouble me. I want to use paraFoam to view results after computing. The error is here when I run paraFoam. Could you please help me again? Thank you advance.

The error is:
[liu@liu buoyantFoam]$ paraFoam . hotRoom
/home/liu/OpenFOAM/OpenFOAM-1.3/bin/paraFoam: line 57: paraview: command not found

The file of paraFoam is:
if [ $# != 2 ]; then
echo $0: 'Wrong number of arguments'
echo 'Usage: paraFoam <root> <case>'
exit 1
fi

ROOT=$1
if [ "$ROOT" = "." -o "$ROOT" = "./" ] ; then
ROOT=`pwd`
fi

CASE=$2
CASE_DIR=$ROOT/$CASE

if [ ! -d $CASE_DIR ]; then
echo $0: case directory $CASE_DIR does not exist, exiting
exit 0
fi

cd $CASE_DIR
sed -e s%ROOT%$ROOT%g -e s%CASE%$CASE%g $WM_PROJECT_DIR/bin/paraFoam.pvs \
> paraFoam.pvs
touch ${CASE}.foam

paraview paraFoam.pvs //THIS IS LINE 57

rm paraFoam.pvs ${CASE}.foam


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