new Ubuntu installation guide

Submitted by Alexandre Costa on Wed, 05/25/2011 - 20:13

Hi,
Thanks for the great job in the new installation guide.
I manage to made the majority of the steps.
However I have some remaining issues :
I - During install cfdem version beta 2.0
compile src step,
The following message is shown in the beginning of the compiling :
could not open file RASModel.H for source file cfdemCloud/cfdemCloud.C
(although the compilation is completed).

II - During the run cfdem testcase, last step (I am using pizza-19May11):

amscosta@amscosta-desktop:~/OpenFOAM/amscosta-1.7.x/run/cfdemSolverPiso_shared/settlingTestMPI/DEM$ pizza -f pizzaScriptInit
Pizza.py (1 Oct 2006), a toolkit written in Python
type ? for help, CTRL-D to quit
Loading tools ...
gl tool did not load:
No module named OpenGL.Tk
mdump tool did not load:
No module named Numeric
image tool did not load:
No module named _tkinter, please install the python-tk package
dump tool did not load:
No module named Numeric
animate tool did not load:
No module named _tkinter, please install the python-tk package
vcr tool did not load:
No module named _tkinter, please install the python-tk package
plotview tool did not load:
No module named _tkinter, please install the python-tk package
Executing file: ./pizzaScriptInit
name 'dump' is not defined
NameError'> with value: name 'dump' is not defined
error on line 1 of file ./pizzaScriptInit
>

III - When invoking paraview :
amscosta@amscosta-desktop:~/OpenFOAM/amscosta-1.7.x/run/cfdemSolverPiso_shared/settlingTestMPI$ paraFoam
file does not exist: './system/controlDict'

usage: paraFoam [OPTION]
options:
-case dir specify alternative case directory
-region name specify mesh region name
-touch only create the .OpenFOAM file

* start paraview 3.8.0 with the OpenFOAM libraries

amscosta@amscosta-desktop:~/OpenFOAM/amscosta-1.7.x/run/cfdemSolverPiso_shared/settlingTestMPI$

cgoniva's picture

cgoniva | Thu, 05/26/2011 - 07:13

hi!

I) is not an error - the precompiler just complains not to find some files - as they are commented (for other OF version) this does not matter

II) the "no module" errors should not worry you, but:
Executing file: ./pizzaScriptInit
name 'dump' is not defined
NameError'> with value: name 'dump' is not defined
error on line 1 of file ./pizzaScriptInit

is an error. is there a dump file in /case/DEM/post ??

III) you need to be in the /case/CFD directory to execute paraFoam

Cheers,
Chris

Alexandre Costa | Thu, 05/26/2011 - 14:42

Hi Chris,
Thanks again.
the files in the post directory are :
dummy velocity.txt

Regarding the paraview, after apply I only see a colored patch for the domain. Could you
give some clues to view the results using paraview ?

Alex

cgoniva's picture

cgoniva | Fri, 05/27/2011 - 07:54

Hello Alex,

I suppose you run the Allrun.sh script?

A window showing a graph should open automaticaly? As soon as you close that window the script will proceed and delete all unnecessary files - also the dump file.

For checking if everything went right you should better run the simulation "from hand" (as shown in installation guide)

#- in case the Allrun.sh script does not work for you:
cd CFD
decomposePar
mpirun -np 2 cfdemSolverPiso_shared -parallel
reconstructPar
foamToVTK
cd ../DEM
pizza -f pizzaScriptInit
(quit with Strg-d)
visualize the data with paraview

For info on paraview, please use its UserGuide.

Cheers,
Chris

cgoniva's picture

cgoniva | Mon, 05/30/2011 - 23:00

Hi!

ad II)
I just encountered the same problem with the python-numeric package.

Installing the "python-numeric" did the job.

sudo apt-get install python-numeric

(the newer python-numpy package did not work for my pizza version)

Cheers,
Chris