|
[Sponsors] |
April 20, 2014, 05:08 |
Can't use snappyHexMesh
|
#1 |
New Member
WangShuai
Join Date: Apr 2014
Location: Harbin(China)
Posts: 8
Rep Power: 12 |
HI:
I'm new to OpenFOAM, and after installing 2.3.0, I followed the cases listed in the User's Guide, I didn't encounter any problem until trying to use snappyHexMesh, it reports an error: snappyHexMesh: error while loading shared libraries: libptscotch.so: cannot open shared object file: No such file or directory. What should I do to solve this problem? Can anyone help me |
|
April 20, 2014, 07:11 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings npel,
Please indicate which installation instructions you've followed and which Linux Distribution you are using. Best regards, Bruno
__________________
|
|
April 20, 2014, 07:56 |
|
#3 | |
New Member
WangShuai
Join Date: Apr 2014
Location: Harbin(China)
Posts: 8
Rep Power: 12 |
Quote:
|
||
April 20, 2014, 09:16 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Mmm... OK, my guess is that you haven't logged out yet (it's explained in step #4 ). Try these commands, before running snappyHexMesh again:
Code:
source /etc/profile.d/mpi-selector.sh of230 |
|
April 20, 2014, 09:35 |
|
#5 |
New Member
WangShuai
Join Date: Apr 2014
Location: Harbin(China)
Posts: 8
Rep Power: 12 |
It seems that it doesn't matter with which case I'm running, each time when I type 'snappyHexMesh' in the terminal, it reported the error, and I tried the methods you have just said, but it doesn't work. I'm wondering why can't it load the shared object file 'libptscotch.so'?
|
|
April 20, 2014, 14:58 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi npel,
According to the installation I have, which was used for testing those instructions, if you run the following command: Code:
ldd $(which snappyHexMesh) | grep ptscotch Code:
libptscotchDecomp.so => /home/ofuser/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/openmpi-system/libptscotchDecomp.so (0x00007f449bb17000) libptscotch.so => /home/ofuser/OpenFOAM/ThirdParty-2.3.0/platforms/linux64GccDPOpt/lib/openmpi-system/libptscotch.so (0x00007f449862d000) libptscotcherrexit.so => /home/ofuser/OpenFOAM/ThirdParty-2.3.0/platforms/linux64GccDPOpt/lib/openmpi-system/libptscotcherrexit.so (0x00007f449842a000) Code:
echo $HOME/OpenFOAM/ThirdParty-2.3.0/platforms/linux64GccDPOpt/lib/openmpi-system echo $FOAM_EXT_LIBBIN/$FOAM_MPI Code:
ls -A1 $FOAM_EXT_LIBBIN/$FOAM_MPI Code:
libptscotcherrexit.so libptscotcherr.so libptscotchparmetis.so libptscotch.so libscotcherrexit.so libscotcherr.so libscotch.so By the way, what do the following commands give you? Code:
which mpicc echo $FOAM_MPI Bruno
__________________
|
|
April 22, 2014, 01:02 |
|
#7 |
New Member
WangShuai
Join Date: Apr 2014
Location: Harbin(China)
Posts: 8
Rep Power: 12 |
Dear bruno
When i tried to ldd $(which snappyHexMesh) | grep ptscotch, I get nothing. Also there is nothing in directory $FOAM_EXT_LIBBIN/$FOAM_MPI. So I think that I might have done something wrong in my installation, then I recompiled the ThirdParty-2.3.0, after I recompiled the ThirdParty2.3.0, it showed a warning that 'required include file 'ptscotch.h' not found! '. And then I found where I'm wrong, It's because that I didn't run of230 when I open a new terminal, If I do so, I can use snappyHexMesh normally. But I added a line source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc in the end of file .bashrc too. Why do I have to run of230 each time when I opened a new Termianl? what caused the difference? I'm still afraid that I might meet some other error since the 'required include file 'ptscotch.h' not found! '. Thank you very much, you have down me a great favor! |
|
April 25, 2014, 19:10 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings npel,
Ah, when it comes to OpenFOAM, every single detail, no matter how small, is very important! In this case, the installation instructions on the wiki were designed to be somewhat generic and as bulletproof as possible. At least as long as people strictly follow the instructions. And since the wiki provides instructions for installing several OpenFOAM versions, the objective has been to make it as easy as possible to have more than just one installation. This is why the alias of230 is indicated in the instructions, in order to allow to have more versions coexist. In addition, there are a couple more settings you didn't notice, from step #6: Code:
source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI Code:
WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI But I can understand what you mean. I gotta give some more thought into this, before changing the instructions once again. Best regards, Bruno
__________________
|
|
July 1, 2014, 06:03 |
Can't use snappyHexMesh
|
#9 |
New Member
Víctor García Peñas
Join Date: May 2014
Posts: 3
Rep Power: 12 |
Greeting Bruno and npel
I'm on a Ubuntu 14.04 installing OpenFOAM. I've followed this tutorial http://www.openfoam.org/download/source.php I set the environment variables with this line on $HOME/.bashrc Code:
source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc When I run the command: Code:
ldd $(which snappyHexMesh) | grep ptscotch Code:
libptscotchDecomp.so => /home/victor/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/openmpi-1.6.5/libptscotchDecomp.so (0x00007fe80c722000) libptscotch.so => not found libptscotcherrexit.so => not found Code:
echo $FOAM_EXT_LIBBIN/$FOAM_MPI Code:
/home/victor/OpenFOAM/ThirdParty-2.3.0/platforms/linux64GccDPOpt/lib/openmpi-1.6.5 Code:
ls -A1 $FOAM_EXT_LIBBIN/$FOAM_MPI Code:
ls: no se puede acceder a /home/victor/OpenFOAM/ThirdParty-2.3.0/platforms/linux64GccDPOpt/lib/openmpi-1.6.5: No existe el archivo o el directorio But If I run: Code:
ls -A1 /home/victor/OpenFOAM/OpenFOAM-2.3.0/platforms/linux64GccDPOpt/lib/openmpi-1.6.5/ Code:
libPstream.so libptscotchDecomp.so I don't know what I'm doing wrong! Last week I installed it on my laptop whitout problems. |
|
July 1, 2014, 08:38 |
|
#10 |
New Member
Víctor García Peñas
Join Date: May 2014
Posts: 3
Rep Power: 12 |
I got it!
I add the lines: source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc alias of230='source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=2 WM_MPLIB=SYSTEMOPENMPI' to my $HOME/.bashrc and compiling OpenFOAM with Allwmake. I hope this will be usefull! |
|
September 12, 2014, 10:45 |
|
#11 | |
New Member
RM1358
Join Date: Sep 2014
Posts: 4
Rep Power: 0 |
Quote:
I am rather beginner in Linux (UBUNTU 14). I have installed OpenFOAM and HELYX-OS successfully, but I received the same inconsistency error mentioned in the above discussions when I wanted to use SnappyHexaMesh in HELYX-OS, although I could run that cavity flow tutorial in OpenFOAM (not in HELYX-OS) successfully. It seems that you have solved the problem. I could find that bashrc file in etc directory, but I do not know if I should add the lines, source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc alias of230='source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=2 WM_MPLIB=SYSTEMOPENMPI' at the end of this file, or I should write it in Linux terminal?! If in Linux Terminal, then in which directory I should be? Thank you so much in advance. P.S. What would be the best Linux for OpenFOAM calculations? I see people in discussing this error, always ask about the Linux type and it seems that UBUNTU is not the best. Am I right? |
||
September 14, 2014, 07:57 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings roozbehmousavi and welcome to the forum!
Please detail which installation instructions you've followed for installing OpenFOAM and Helyx-OS. In addition, also indicate what more related steps have you done after installing those two, so that we can diagnose what might have gone wrong. As for which Linux Distribution: the best distribution is usually the one you feel better with. In other words, it's a matter of taste and also depends for how long you're planning on using the installation. Best regards, Bruno
__________________
|
|
September 15, 2014, 06:10 |
|
#13 | |
New Member
Víctor García Peñas
Join Date: May 2014
Posts: 3
Rep Power: 12 |
Quote:
I put it at th en of this hidden file Code:
/home/victor/.bashrc |
||
January 26, 2015, 06:04 |
helyx-os snappyhexmesh error
|
#14 |
New Member
Rogaland
Join Date: Mar 2014
Posts: 4
Rep Power: 12 |
Hi!
I downloaded a scientific linux 6.6 package delievered by my university. The package includes openFoam 2.3.0. I installed helyx-os 2.2.0. When trying to run the "create mesh" command I get the error: snappyHexMesh: error while loading shared libraries: libptscotch.so: cannot open shared object file: No such file or directory. Any thoughts on how I can solve the given problem? |
|
January 26, 2015, 16:38 |
|
#15 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer - Run the following command:
Code:
ls -A1 $FOAM_EXT_LIBBIN/*
__________________
|
|
January 27, 2015, 07:40 |
|
#16 |
New Member
Rogaland
Join Date: Mar 2014
Posts: 4
Rep Power: 12 |
Thanks for quick reply. This is what I get.
|
|
January 27, 2015, 15:54 |
|
#17 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Javell,
The bad news is that the output you've gotten indicates that you do not have OpenFOAM's custom "ptscotch" library available. Were you able to decompose the case, namely by using decomposePar? And if so, which decomposition method did you use? Because if you used "scotch", then this means that your OpenFOAM installation is using a system based "libscotch.so" library, but the "libptscotch.so" version is not available. Either way, the quickest solution is to use some other decomposition method, such as "simple" or "hierarchical". Best regards, Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[CAD formats] Creating waterproof STL using snappyHexMesh or salome | Tobi | OpenFOAM Meshing & Mesh Conversion | 58 | May 13, 2020 07:01 |
[snappyHexMesh] Running snappyHexMesh in parallel - optimizing | peterhess | OpenFOAM Meshing & Mesh Conversion | 2 | January 3, 2018 03:54 |
[snappyHexMesh] Tutorial crashes: snappyHexMesh floating point exception. | jasv | OpenFOAM Meshing & Mesh Conversion | 4 | May 10, 2016 03:55 |
[snappyHexMesh] snappyhexmesh doesn't creat mesh in parallel issue? | klausb | OpenFOAM Meshing & Mesh Conversion | 1 | March 7, 2015 12:55 |
[snappyHexMesh] stitchMesh and snappyHexMesh | gdbaldw | OpenFOAM Meshing & Mesh Conversion | 0 | December 23, 2009 03:09 |