CFEDM installation : Should I create run directory under FOAM

Submitted by jeen1 on Fri, 09/30/2011 - 22:31

I have installed Liggghtts, OPenFOAM, and on my way to install cfdem.

(1) In the instruction, there is a step to copy into $FOAM/run below. But the OpenFoam I installed has no run /subdirectory.
Should I create one, then copy into?
----------------------------------
copy cfdemSolverPisoCase_shared/* to /home/user/OpenFOAM-1.7.1/user-1.7.1/run/cfdemSolverPiso_shared
----------------------------------

(2) Also not clear is that, two other copies, such as:
copy cfdemSolverPiso_shared to /home/user/OpenFOAM-1.7.1/user-1.7.1/applications/solvers
Should it be
copy cfdemSolverPiso_shared to /home/user/OpenFOAM-1.7.1/user-1.7.1/applications/solvers/cfdemSolverPiso_shared?

(3) same for cfedmPartcles copy.

Thanks.

Thanks.

rqwang | Fri, 09/30/2011 - 23:25

Hi,

The answer is no.

It's not necessary to do so. You can run the simulation with these directories.

Just make sure all the request to refer a directory is correct.

BTW, you can mkdir a run directory. That's not a big deal.

Enjoy!

rq

jeen1 | Sat, 10/01/2011 - 04:44

In setting the Environment variables for .../cfdemParticle/etc/bashrc, the last line has

export CFDEM_TEST_HARNESS_PATH=$HOME/scripts/testCFDEM/logFiles

What is this
$HOME/scripts/testCFDEM/logFiles?
Is one supposed to create an empty directory structure?

Much appreciated!

cgoniva's picture

cgoniva | Sat, 10/01/2011 - 15:05

Hi!

The purpose on that is to define an environment variable holding a path where you can store log files or graphs from your simulations.

You can then use this vars in your Allrun.sh scripts to store the results or log files in that location.

For simply running your case you can ignore that variable.

Cheers,
Chris

jeen1 | Sat, 10/01/2011 - 21:18

I carried out the steps of instruction
------------------------------------------
#- change the user-1.7.1/src/lagrangian/cfdemParticle path:
cd ..../user-1.7.1/src/lagrangian/cfdemParticle

#- to compile the src type:
rmdepall
wclean
wmake libso
#- you should then get a message like:
'/home/user/OpenFOAM/user-1.7.1/lib/linuxGccDPOpt/liblagrangianCFDEM_shared.so' is up to date.
--------------------------------------------------

II have a linuxGccDPOpt
in /opt/openfoam201/platforms/linuxGccDPOpt (it has lib and bin under it) and running
wmake libso, I got
=============error=============
mkdir: cannot create directory `linux64GccDPOpt': Permission denied
/bin/sh: cannot create linux64GccDPOpt/options: Directory nonexistent
make: *** [linux64GccDPOpt/options] Error 2
/opt/openfoam201/wmake/MakefileFiles:40: linux64GccDPOpt/options: No such file or directory
make: *** No rule to make target `linux64GccDPOpt/options'. Stop.
wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created in /opt/openfoam201/src/lagrangian/cfdemParticle
==================================
Where and what changes do I have to make?
Thanks.

cgoniva's picture

cgoniva | Tue, 10/04/2011 - 11:59

Hi!

does your installation generally work - can you compile a standard solver (e.g. icoFoam) or library?

Cheers,
Chris

ROAC | Sun, 11/20/2011 - 05:42

Hi~ I have a similar problem. When I proceeded to compile the solver in the directory "cfdemSloverPiso_shared"
I got the following messages:

=======================================
Making dependency list for source file cfdemSolverPiso.C
could not open file RASModel.H for source file cfdemSolverPiso.C
SOURCE=cfdemSolverPiso.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/roac/OpenFOAM/OpenFOAM-1.7.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/roac/OpenFOAM/OpenFOAM-1.7.x/src/transportModels -I/home/roac/OpenFOAM/OpenFOAM-1.7.x/src/transportModels/incompressible/singlePhaseTransportModel -I/home/roac/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude -I/home/roac/OpenFOAM/roac-1.7.x/run/../src/lagrangian/cfdemParticle//lnInclude -IlnInclude -I. -I/home/roac/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/home/roac/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/cfdemSolverPiso.o
/home/roac/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude/readPISOControls.H: In function ‘int main(int, char**)’:
/home/roac/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude/readPISOControls.H:11:10: warning: unused variable ‘transonic’ [-Wunused-variable]
/home/roac/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude/readPISOControls.H:14:9: warning: unused variable ‘nOuterCorr’ [-Wunused-variable]
g++ -m32 -Dlinux -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/roac/OpenFOAM/OpenFOAM-1.7.x/src/turbulenceModels/incompressible/turbulenceModel -I/home/roac/OpenFOAM/OpenFOAM-1.7.x/src/transportModels -I/home/roac/OpenFOAM/OpenFOAM-1.7.x/src/transportModels/incompressible/singlePhaseTransportModel -I/home/roac/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude -I/home/roac/OpenFOAM/roac-1.7.x/run/../src/lagrangian/cfdemParticle//lnInclude -IlnInclude -I. -I/home/roac/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude -I/home/roac/OpenFOAM/OpenFOAM-1.7.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed Make/linuxGccDPOpt/cfdemSolverPiso.o -L/home/roac/OpenFOAM/OpenFOAM-1.7.x/lib/linuxGccDPOpt \
-L/home/roac/OpenFOAM/roac-1.7.x/lib/linuxGccDPOpt -lincompressibleRASModels -lincompressibleLESModels -lincompressibleTransportModels -lfiniteVolume -llagrangianCFDEM_shared -lOpenFOAM -ldl -lm -o /home/roac/OpenFOAM/roac-1.7.x/applications/bin/linuxGccDPOpt/cfdemSolverPiso_shared
Make/linuxGccDPOpt/cfdemSolverPiso.o: In function `main':
cfdemSolverPiso.C:(.text.startup+0xae0): undefined reference to `Foam::incompressible::turbulenceModel::New(Foam::GeometricField, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField const&, Foam::transportModel&)'
/home/roac/OpenFOAM/roac-1.7.x/lib/linuxGccDPOpt/liblagrangianCFDEM_shared.so: undefined reference to `Foam::incompressible::turbulenceModel::typeName'
collect2: ld returned 1 exit status
make: *** [/home/roac/OpenFOAM/roac-1.7.x/applications/bin/linuxGccDPOpt/cfdemSolverPiso_shared] Error 1

=================================================
Then I checked the result by typing "which cfdemSolverPiso_shared", and can not get any message. Obviously, I failed to compile the file. Could you please tell me how to fix the problem? Thank you in advance.

AC