|
[Sponsors] |
CentFOAM & openfoam2.2.x (troubles with runApplication ...) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 4, 2013, 06:28 |
CentFOAM & openfoam2.2.x (troubles with runApplication ...)
|
#1 |
New Member
Paul (France)
Join Date: Aug 2013
Posts: 11
Rep Power: 12 |
Dear All
I'm in charge of a numerical server (under CentOS 6.2 with 8 processors) in order to perform numerical calculations (I'm a Mechanical engineer using Finite Elements solvers and numerical tools). For colleagues performing CFD calculations, I've been installing: - openfoam 2.2.x using centfoam script - engrid, paraview and gmsh tools were installed separatly first without difficulty - no error when launching OF22 alias In order to validate that openfoam works (fine), I tried to launch an example such as motorbike one using Allrun script; nevertheless I've met some troubles I do not understand: - runApplication is missing - runParallel is missing - getApplication is missing Any reason ? Thanks for any support Paul |
|
August 4, 2013, 10:19 |
|
#2 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27 |
Hi
Did you run OF22 in the terminal before running Allrun script? If you did not the terminal environment has no idea about the OF stuff.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
August 4, 2013, 10:55 |
|
#3 | |
New Member
Paul (France)
Join Date: Aug 2013
Posts: 11
Rep Power: 12 |
Quote:
yes I did it (type OFF22 then ./Allrun) NB: when I make a "find -P -name "*runApplications*" at the /, nothing is found (same result for the other libraries) was there a trouble during Openfoam2.2.x.tar.gz file installation ?????? Paul |
||
August 4, 2013, 11:22 |
|
#4 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27 |
Are you sure there are any files in the install directory?
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
August 4, 2013, 13:04 |
|
#5 |
New Member
Paul (France)
Join Date: Aug 2013
Posts: 11
Rep Power: 12 |
In the following link, you'll find all the files included in the /openFOAM repertory using "ls -lsR"
Note there's something strange : 2 user names appear in the list while I installed centFOAM under my user name (the names have been changed of course) http://dl.free.fr/uckrbyeqY Paul |
|
August 4, 2013, 13:35 |
|
#6 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27 |
That link is not any good. please use something that does not look like spam eg. google drive, dropbox, skydrive etc.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
August 4, 2013, 14:11 |
|
#7 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27 |
Just went through the file and the problem is in the bashrc file of OpenFOAM.
I've done some updating and a mistake has slipped in whilst doing that. If you download the new centFoam.py script it should work and if you change this line in the OF bashrc file it should also work for you Code:
foamInstall=/home/centfoam/$WM_PROJECT
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
August 4, 2013, 14:19 |
|
#8 |
New Member
Paul (France)
Join Date: Aug 2013
Posts: 11
Rep Power: 12 |
I've made the requested changes in the bashrc and chsrc files (openfoam repertories) after tarball file decompression
In order to install cenFOAM in the root /, I needed to type python script_name --OF22 --path= I had troubles using --path=/ or something else ; my bashrc file plus the 2 previous files were updated afterward Let me testing the new script .... Paul |
|
August 4, 2013, 17:30 |
|
#9 |
New Member
Paul (France)
Join Date: Aug 2013
Posts: 11
Rep Power: 12 |
last remark ... when I do ./Allwmake, I've an error message telling me the environment variables are inconsistent ... enough for today
Paul |
|
August 5, 2013, 17:59 |
|
#10 |
New Member
Paul (France)
Join Date: Aug 2013
Posts: 11
Rep Power: 12 |
Hi
I naively tried to compile Openfoam using the devtoolset for gcc ... bad idea Centfoam appears to be the best solution ; ounce again I installed it (/opt that time) : - eveything seems ok - the use of Allwmake shows everything has ever been done correctly - the use of "icoFoam -help" seems to work But when I launch a tutorial with "./Allrun" : - runApplication - runParallel - and so on are missing ... what's going wrong ? is it possible that the tarball is corrupted or something missing in ? I would like to understand .... Paul |
|
August 6, 2013, 01:17 |
|
#11 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27 |
Hi
can you please post the output from the terminal here? It is really difficult to help when we cant see the errors you get.
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
August 6, 2013, 02:36 |
|
#12 | ||
New Member
Paul (France)
Join Date: Aug 2013
Posts: 11
Rep Power: 12 |
here are :
Quote:
"commande introuvable" = missing command " impossible d'accéder à processor*: Aucun fichier ou dossier de ce type" = no access to processor*: no such file nor directory In the Allrun file, variables were removed (after trials): Quote:
|
|||
August 6, 2013, 02:53 |
|
#13 |
Senior Member
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 555
Rep Power: 27 |
Hi
I have no problems by doing this. Open a new terminal cd into you case. Code:
cd OF-cases/Sandbox/motorBike/ Code:
OF22 Code:
./Allrun Code:
Running surfaceFeatureExtract on /home/44792/OF-cases/Sandbox/motorBike Running blockMesh on /home/44792/OF-cases/Sandbox/motorBike Running decomposePar on /home/44792/OF-cases/Sandbox/motorBike Running snappyHexMesh in parallel on /home/44792/OF-cases/Sandbox/motorBike using 6 processes I think your problem is that you are missing a "." to source the RunFunctions Original Allrun Code:
# Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions Code:
# Source tutorial run functions /opt/OpenFOAM/OpenFOAM/OpenFOAM-2.2.x/bin/tools/RunFunctions
__________________
Linnemann PS. I do not do personal support, so please post in the forums. |
|
August 6, 2013, 03:49 |
|
#14 | |
New Member
Paul (France)
Join Date: Aug 2013
Posts: 11
Rep Power: 12 |
sorry for my incompetence ... and thanks for the support
Now i few seconds I've the following one : Quote:
Just an additional question : is the complete run performed ? Paul |
||
August 6, 2013, 04:17 |
|
#15 | |
New Member
Paul (France)
Join Date: Aug 2013
Posts: 11
Rep Power: 12 |
bad news ...
When I open some log files, I've the error hereafter ; I need to spend more time in order to find the origin of the trouble ... Paul Quote:
|
||
August 6, 2013, 04:37 |
|
#16 |
New Member
Paul (France)
Join Date: Aug 2013
Posts: 11
Rep Power: 12 |
after a research on the net, I found the following post:
http://www.cfd-online.com/Forums/ope...entos-5-a.html "which mpi" shows it pointes to the mpi release coming with centFOAM (ThirdParty2.2.x) ; What means ? Code:
mpirun -np 4 -x LD_LIBRARY_PATH -x PATH -x WM_PROJECT_DIR -x WM_PROJECT_INST_DIR -x WM_OPTIONS -x FOAM_LIBBIN -x FOAM_APPBIN -x FOAM_USER_APPBIN -x MPI_BUFFER_SIZE interFoam -parallel |
|
August 6, 2013, 09:39 |
|
#17 | |
New Member
Paul (France)
Join Date: Aug 2013
Posts: 11
Rep Power: 12 |
how stupid am I ... the answer is in the post !!!
Quote:
Regards Paul |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
8x icoFoam speed up with Cufflink CUDA solver library | kmooney | OpenFOAM Running, Solving & CFD | 42 | November 6, 2012 11:37 |
CentFOAM Python Script Installation: Error | socon009 | OpenFOAM Installation | 2 | May 26, 2012 09:36 |
CentFOAM updated/cleaned | linnemann | OpenFOAM Installation | 0 | June 1, 2010 15:40 |