Hi,
I stuck at following error message when performed wmake libso under ../src/lagrangian/cfdemParticle
..
...
..
-I/home/ram/OpenFOAM/OpenFOAM-1.7.1/src/meshTools/lnInclude -I/home/ram/OpenFOAM/OpenFOAM-1.7.1/src/lagrangian/basic/lnInclude -I/home/ram/OpenFOAM/ThirdParty-1.7.1/platforms/linuxGcc/openmpi-1.4.1/include/ -I/home/ram/LIGGGHTS/liggghts_1p0p3/src -IlnInclude -I. -I/home/ram/OpenFOAM/OpenFOAM-1.7.1/src/OpenFOAM/lnInclude -I/home/ram/OpenFOAM/OpenFOAM-1.7.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/twoWayMPI.o
In file included from subModels/dataExchangeModel/twoWayMPI/twoWayMPI.C:30:
subModels/dataExchangeModel/twoWayMPI/twoWayMPI.H:46: fatal error: lammps.h: No such file or directory
compilation terminated.
make: *** [Make/linuxGccDPOpt/twoWayMPI.o] Error 1
ram@ram-Vostro-420-Series:~/OpenFOAM/ram-1.7.1/src/lagrangian/cfdemParticle
Can anybody help me what to do?
Thanks in advance,
Ram
raguelmoon | Sun, 04/17/2011 - 08:05
Hi, In above print out, it
Hi,
In above print out, it shows the path of liggghts as:
/home/ram/LIGGGHTS/liggghts_1p0p3/src
But I have this path of LIGGGHTS :
/home/ram/myliggghts/src
Best,
Ram
cgoniva | Mon, 04/18/2011 - 08:54
Hi Ram,the path issue is why
Hi Ram,
the path issue is why you need to set some environmet variables.
(described in the download section *.txt, node/237)
#- add the line
# . YOUR_PATH_TO_THE_SRC/cfdemParticle/etc/bashrc
# to the end of your $HOME/.bashrc file
# in order to source the cfdemParticle/etc/bashrc
# and set some extra environment variables
# for me YOUR_PATH_TO_THE_SRC would be:
# /home/user/OpenFOAM-1.7.1/user-1.7.1/src/lagrangian
#- adopt the settings in the YOUR_PATH_TO_THE_SRC/cfdemParticle/etc/bashrc
# according to your system
#- open a new terminal to get fresh environment variables sourced (or type bash)
Cheers,
Chris
rpitchumani | Thu, 09/08/2011 - 21:08
Hello Chris, I am following
Hello Chris,
I am following the txt file:
setup_LIGGGHTS__OpenFoamR_CFDEM_2p0_on_Ubuntu1004_24052011.txt
I get the exact same error as Ram's.
The following two lines were executed with no problem:
#- add a line to ~/.bashrc
echo '#- source cfdem env vars' >> ~/.bashrc
echo '. $WM_PROJECT_INST_DIR/$USER-$WM_PROJECT_VERSION/src/lagrangian/cfdemParticle/etc/bashrc' >> ~/.bashrc
Then this line...
#- set the cfdem environment variables correctly
gedit $WM_PROJECT_INST_DIR/$USER-$WM_PROJECT_VERSION/src/lagrangian/cfdemParticle/etc/bashrc &
...opens gedit with the the bashrc text file, but I dont know what do here in this text file. What do you mean by
"#- set the cfdem environment variables correctly"? Can you give me an example may be what you have on your system?
As you can see, I am quite new to Linux.
I am installing this system on Ubuntu 11.04 64 bit.
Thanks
Ramanan
raguelmoon | Fri, 09/09/2011 - 14:06
Hi Ramanan, The command
Hi Ramanan,
The command :
gedit $WM_PROJECT_INST_DIR/$USER-$WM_PROJECT_VERSION/src/lagrangian/cfdemParticle/etc/bashrc &
will open bashrc of openFOAM. in case of mine, this basrc is located at the path:
/home/ram/OpenFOAM/ram-1.7.x/src/lagrangian/cfdemParticle/etc/
This is the path where bashrc of OpenFOAM resides. Now you have to set correct paths for each. I have set in my bashrc like this:
....
#- LIGGGHTS source directory src
#export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/liggghts_1p0p3/src
export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/liggghts_GIT/src
#- LIGGGHTS lib name
export CFDEM_LIGGGHTS_LIB_NAME=lmp_fedora_fpic
#- CFDEM coupling source directory src
export CFDEM_SRC_DIR=$FOAM_RUN/../src/lagrangian/cfdemParticle/
#- CFDEM lib name
export CFDEM_LIB_NAME=lagrangianCFDEM_shared
#- shortcut to src path
alias cfdem='cd $CFDEM_SRC_DIR'
#- PIZZA src directory
export CFDEM_PIZZA_DIR=$HOME/pizza/src/
.....
cheers
Ram
rpitchumani | Sat, 09/10/2011 - 01:22
Hello Ram, Thank you for the
Hello Ram,
Thank you for the information. That error went away, but now I have the following error:
/usr/bin/ld: cannot find -lfiniteVolume
/usr/bin/ld: cannot find -lincompressibleRASModels
/usr/bin/ld: cannot find -lmeshTools
collect2: ld returned 1 exit status
make: *** [/home/ramanan/OpenFOAM/ramanan-1.7.x/lib/linux64GccDPOpt/liblagrangianCFDEM_shared.so] Error 1
My bashrc file looks like this:
#- LIGGGHTS source directory src
#export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/liggghts_1p0p3/src
export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/liggghts_GIT/src
#- LIGGGHTS lib name
export CFDEM_LIGGGHTS_LIB_NAME=lmp_fedora_fpic
#- CFDEM coupling source directory src
export CFDEM_SRC_DIR=$FOAM_RUN/../src/lagrangian/cfdemParticle/
#- CFDEM lib name
export CFDEM_LIB_NAME=lagrangianCFDEM_shared
#- shortcut to src path
alias cfdem='cd $CFDEM_SRC_DIR'
#- PIZZA src directory
export CFDEM_PIZZA_DIR=$HOME/LAMMPS/pizza-16Mar09/src/
#- path to test harness
export CFDEM_TEST_HARNESS_PATH=$HOME/scripts/testCFDEM/logFiles
Please help
regards
Ramanan
cgoniva | Mon, 09/12/2011 - 10:59
Hi! It cannot find the
Hi!
It cannot find the standard libraries (libfiniteVolume etc.) of the CFD code...
can you compile a standard CFD solver like icoFoam, or do you get the same error there?
If yes - your OpenFOAM(R) settings are not correct...
Cheers,
Chris
rpitchumani | Sun, 09/18/2011 - 04:18
Hello, I reinstalled Ubuntu
Hello,
I reinstalled Ubuntu 10.04 instead of 11 and everything worked fine. Thank you both for your help.
regards
Ramanan