CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Run blockMesh problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 8, 2008, 11:50
Default Hi, I'm a new Linux user, usin
  #1
New Member
 
Florent Petit
Join Date: Mar 2009
Posts: 7
Rep Power: 17
fpetit is on a distinguished road
Hi, I'm a new Linux user, using Ubuntu and trying to install openfoam.

I went through steps 1 to 5 of the readme file but then I couldn't run the first tutorial. It seems it cannot find blockMesh:

flo@flo-laptop:~/OpenFOAM/flo-1.4.1/run/tutorials/icoFoam$ blockMesh . cavity
bash: blockMesh : commande introuvable

Any idea what the problem is?

Note that when I run foamInstallationCheck there is no message at all and it closes. I supposed that it meant no error.


Thanks a lot.
fpetit is offline   Reply With Quote

Old   January 8, 2008, 12:18
Default Do you have add this line
  #2
Member
 
Michele Vascellari
Join Date: Mar 2009
Posts: 70
Rep Power: 17
mighelone is on a distinguished road
Do you have add this line

source $HOME/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc

to your .bashrc file?

If you don't, add this line to ~/.bashrc

and reload the file:

# . ~/.bashrc

Then try the following command:

# foamInstallationTest

Michele
mighelone is offline   Reply With Quote

Old   January 9, 2008, 05:12
Default thanks for the reply the so
  #3
New Member
 
Florent Petit
Join Date: Mar 2009
Posts: 7
Rep Power: 17
fpetit is on a distinguished road
thanks for the reply

the sourcing looks ok.

However I have a problem with the Java configuration and the "no remote shell available"
Some people on the forum have had the same pb, but I couldn't find how to fix this pb...


The installation test gives:

Executing /home/flo/OpenFOAM/OpenFOAM-1.4.1/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: flo-laptop
OS: Linux version 2.6.17-12-generic
User: flo
User_config: /home/flo/.bashrc
Foam_config: /home/flo/.OpenFOAM-1.4.1/bashrc sourced correctly.
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/flo/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/flo/OpenFOAM/flo-1.4.1 yes no
$FOAM_JOB_DIR /home/flo/OpenFOAM/jobControl no yes
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/flo/OpenFOAM/OpenFOAM-1.4.1 yes yes yes

$FOAM_USER_APPBIN ...1.4.1/applications/bin/linuxGccDPOpt yes yes no
$FOAM_APPBIN ...1.4.1/applications/bin/linuxGccDPOpt yes yes yes
$WM_DIR /home/flo/OpenFOAM/OpenFOAM-1.4.1/wmake yes yes yes
$FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes
$CEI_HOME /usr/local/ensight/CEI no no

$JAVA_PATH /home/flo/OpenFOAM/linux/j2sdk1.4.2_05 no no
$MICO_ARCH_PATH .../mico-2.3.12/platforms/linuxGccDPOpt no yes
$LAM_ARCH_PATH --------- env variable not set --------- yes
$MPICH_ARCH_PATH --------- env variable not set --------- no
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...OAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt yes yes yes
$FOAM_USER_LIBBIN ...OpenFOAM/flo-1.4.1/lib/linuxGccDPOpt yes yes no
$LAM_ARCH_PATH --------- env variable not set --------- yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.1.2
WARNING: Conflicting installations:
foam settings: /home/flo/OpenFOAM/linux/gcc-4.2.1-64/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

java 1.4.2
libgcj)
WARNING: Conflicting installations:
foam settings: /home/flo/OpenFOAM/linux/j2sdk1.4.2_05/bin/java
current path : /usr/bin/java

gzip 1.3.5 /bin/gzip
tar 1.3.5 /bin/tar
icoFoam *** not installed ***
CRITICAL ERROR

-------------------------------------------------------------------------------


Checking file/directory permissions...
-------------------------------------------------------------------------------
File/directory Set Reqd Crit
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_flo-laptop Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Unsuccessful_connection_refused* yes
FATAL ERROR: No remote shell available.
Foam1.4.1 enviroment requires either ssh and/or rsh.
Contact your system administrator.


-------------------------------------------------------------------------------

The system test has evoked 1 fatal error(s).

The foam installation contains 2 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

could you give me some hint??

thanks

Florent
fpetit is offline   Reply With Quote

Old   January 9, 2008, 05:31
Default one more thing... concerning
  #4
New Member
 
Florent Petit
Join Date: Mar 2009
Posts: 7
Rep Power: 17
fpetit is on a distinguished road
one more thing...
concerning the folder containing Java, Gcc and j2sdk, shall I name it linux, linux64 or this has no influence?
note: I put export WM_64=on in the /.bashrc file
fpetit is offline   Reply With Quote

Old   January 9, 2008, 05:35
Default Florent, from the output me
  #5
Member
 
Michele Vascellari
Join Date: Mar 2009
Posts: 70
Rep Power: 17
mighelone is on a distinguished road
Florent,

from the output message you are using the java and gcc given by your distribution, maybe to solve the problem related with java, download the OpenFOAM version of java and put in ~/OpenFOAM/linux.

Michele
mighelone is offline   Reply With Quote

Old   January 9, 2008, 05:51
Default well I have already extracted
  #6
New Member
 
Florent Petit
Join Date: Mar 2009
Posts: 7
Rep Power: 17
fpetit is on a distinguished road
well I have already extracted the java archive in the ~/OpenFOAM/linux folder
but it seems that it is not used by the computer... a pb of path?
fpetit is offline   Reply With Quote

Old   January 9, 2008, 06:08
Default my pb has gone a little furthe
  #7
New Member
 
Florent Petit
Join Date: Mar 2009
Posts: 7
Rep Power: 17
fpetit is on a distinguished road
my pb has gone a little further...

when I run blockMesh . cavity
it gives
flo@flo-laptop:~/OpenFOAM/flo-1.4.1/run/tutorials$ cd icoFoam
flo@flo-laptop:~/OpenFOAM/flo-1.4.1/run/tutorials/icoFoam$ blockMesh . cavity
blockMesh: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by blockMesh)
blockMesh: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/flo/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/libmeshTools.so)
blockMesh: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/flo/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/libdynamicMesh.so)
blockMesh: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/flo/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/libOpenFOAM.so)
blockMesh: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/flo/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/libtriSurface.so)
blockMesh: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/flo/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/liblagrangian.so)
blockMesh: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/flo/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/libfiniteVolume.so)
blockMesh: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /home/flo/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/openmpi-1.2.3/libPstream.s o)

I still may have a problem of path...

thx

Florent
fpetit is offline   Reply With Quote

Old   January 9, 2008, 06:28
Default Hi Florent, maybe you have
  #8
Member
 
Francesco Boschetto
Join Date: Mar 2009
Location: Italy
Posts: 56
Rep Power: 17
francesco_b is on a distinguished road
Hi Florent,

maybe you have to download the libstdc++.so.6
Please check on your computer the version and update them if you need.

Francesco
francesco_b is offline   Reply With Quote

Old   January 9, 2008, 09:10
Default I had the same problem. You n
  #9
irc
New Member
 
Ian Cowan
Join Date: Mar 2009
Location: London, UK
Posts: 28
Rep Power: 17
irc is on a distinguished road
I had the same problem. You need to make sure that you are using the gcc installation supplied with OpenFOAM. Try typing "which gcc" - does that point at /usr/bin/gcc or at something like /home/apps/OpenFOAM/linux64/gcc-4.2.1/bin/gcc? If the former, then check that your cshrc/bashrc file (in the .OpenFOAM-1.4.1 directory) is correctly configured.
irc is offline   Reply With Quote

Old   January 10, 2008, 05:40
Default the gcc points at /home/flo/
  #10
New Member
 
Florent Petit
Join Date: Mar 2009
Posts: 7
Rep Power: 17
fpetit is on a distinguished road
the gcc points at
/home/flo/OpenFOAM/linux64/gcc-4.2.1/bin/gcc

I guess the pb was java path:
I wrote
export JAVA_PATH=/home/flo/OpenFOAM/linux/j2sdk1.4.2_05/bin

in the .bashrc file and it seems to work now.
The blockMesh . cavity and icoFoam . cavity command are working but FoamX cannot launch...
fpetit is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in Memory by running blockMesh mamaly60 OpenFOAM Running, Solving & CFD 5 August 11, 2016 15:27
[blockMesh] BlockMesh problem pratap OpenFOAM Meshing & Mesh Conversion 21 February 16, 2009 06:32
[blockMesh] BC with blockMesh ville OpenFOAM Meshing & Mesh Conversion 1 December 4, 2006 05:11
[blockMesh] Blockmesh problem about skewness aderliner OpenFOAM Meshing & Mesh Conversion 0 December 1, 2006 21:04
[blockMesh] Problem with blockMesh and cyclics mattijs OpenFOAM Meshing & Mesh Conversion 1 May 26, 2006 06:41


All times are GMT -4. The time now is 10:51.