|
[Sponsors] |
Error will loading makeAxialMesh utility in openFOAM-1.6 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 24, 2010, 21:57 |
Error will loading makeAxialMesh utility in openFOAM-1.6
|
#1 |
New Member
Patrick
Join Date: Feb 2010
Posts: 10
Rep Power: 16 |
Greetings group members
I was trying to compile the makeAxialMesh utility and use it for generating an axi-symmetric mesh. I untarred the .gz file at this location $HOME/OpenFOAM-1.6/applications/utilities/mesh//manipulation Then i typed wmake in the command prompt. I am getting the following error SOURCE=makeAxialMesh.C ; g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/patrick/OpenFOAM/OpenFOAM-1.6/src/dynamicMesh/lnInclude -I/home/patrick/OpenFOAM/OpenFOAM-1.6/src/cfdTools/lnInclude -I/home/patrick/OpenFOAM/OpenFOAM-1.6/src/meshTools/lnInclude -IlnInclude -I. -I/home/patrick/OpenFOAM/OpenFOAM-1.6/src/OpenFOAM/lnInclude -I/home/patrick/OpenFOAM/OpenFOAM-1.6/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linuxGccDPOpt/makeAxialMesh.o mkdir: cannot create directory `/home/patrick/OpenFOAM/patrick-1.6/applications': Permission denied make: *** [/home/patrick/OpenFOAM/patrick-1.6/applications/bin/linuxGccDPOpt/makeAxialMesh] Error 1 ++ echo -ne '\033]0;patrick@patrick-laptop: ~/OpenFOAM/OpenFOAM-1.6/applications/utilities/mesh/manipulation/makeAxialMesh\007' I am pretty sure I am doing something wrong. Your help will be greatly appreciated. Also, is there any other way for creating axi-sym meshes in OpenFOAM or importing them from Gambit ? |
|
February 25, 2010, 10:09 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard |
||
February 25, 2010, 12:33 |
|
#3 |
New Member
Patrick
Join Date: Feb 2010
Posts: 10
Rep Power: 16 |
Thanks Bernhard
I tried compiling few of existing utilities in /manipulation folder like attachMesh, subsetMesh etc. It works fine. One thing i noticed is that in the error message mkdir: cannot create directory `/home/patrick/OpenFOAM/patrick-1.6/applications': Permission denied All my openFOAM fiels are in /home/patrick/openFOAM/OpenFOAM-1.6/ directory, not in OpenFOAM/patrick-1.6 directory. I do not know why it is trying to create folders in a different path. Do I have to change any environment variables? |
|
February 25, 2010, 13:44 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard |
||
March 1, 2010, 14:44 |
|
#5 |
New Member
Patrick
Join Date: Feb 2010
Posts: 10
Rep Power: 16 |
Thanks Bernhard
I was able to compile the makeAxialMesh utility. But I am getting a "floating point exception error" while running it. Here is the geometry i created using blockMesh vertices );( (0 0 -0.05) (1 0 -0.05) (1 1 -0.05) (0 1 -0.05) (0 0 0.05) (1 0 0.05) (1 1 0.05) (0 1 0.05) ); blocks ( hex (0 1 2 3 4 5 6 7) (20 20 1) simpleGrading (1 1 1) ); edges ( ); patches ( wall side_wall ( (3 7 6 2) ) patch inlet ( (0 4 7 3) ) patch outlet ( (2 6 5 1) ) empty center_ax ( (1 5 4 0) ) empty frontAndBack ( (0 3 2 1) (4 5 6 7) ) ); mergePatchPairs ( Mesh was created succesfully. checkMesh gives no error. Here is the copy of the Boundary file. 5 )( side_wall { type wall; nFaces 20; startFace 760; } inlet { type patch; nFaces 20; startFace 780; } outlet { type patch; nFaces 20; startFace 800; } center_ax { type empty; nFaces 20; startFace 820; } frontAndBack { type empty; nFaces 800; startFace 840; } I changed the type for FrontAndBack from "Empty" to "Wedge". Then i ran the makeAxialMesh ("makeAxialMesh center_ax frontAndBack") I get this error Build : 1.6-f802ff2d6c5a Exec : makeAxialMesh center_ax frontAndBack Date : Mar 01 2010 Time : 13:42:18 Host : crop-l.dese-lab.fda.gov PID : 23132 Case : /home/pyh8/OpenFOAM/pyh8-1.6/cavity nProcs : 1 SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 #0 Foam::error:rintStack(Foam::Ostream&) in "/home/pyh8/OpenFOAM/OpenFOAM-1.6 /lib/linux64GccDPOpt/libOpenFOAM.so" #1 Foam::sigFpe::sigFpeHandler(int) in "/home/pyh8/OpenFOAM/OpenFOAM-1.6/lib/li nux64GccDPOpt/libOpenFOAM.so" #2 __restore_rt at sigaction.c:0 #3 Foam::wedgePolyPatch::initTransforms() in "/home/pyh8/OpenFOAM/OpenFOAM-1.6/ lib/linux64GccDPOpt/libOpenFOAM.so" #4 Foam::wedgePolyPatch::wedgePolyPatch(Foam::word const&, Foam::dictionary con st&, int, Foam:olyBoundaryMesh const&) in "/home/pyh8/OpenFOAM/OpenFOAM-1.6/li b/linux64GccDPOpt/libOpenFOAM.so" #5 Foam:olyPatch::adddictionaryConstructorToTable<F oam::wedgePolyPatch>::New( Foam::word const&, Foam::dictionary const&, int, Foam:olyBoundaryMesh const&) in "/home/pyh8/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so" #6 Foam:olyPatch::New(Foam::word const&, Foam::dictionary const&, int, Foam:: polyBoundaryMesh const&) in "/home/pyh8/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOp t/libOpenFOAM.so" #7 Foam:olyBoundaryMesh:olyBoundaryMesh(Foam::IOo bject const&, Foam:olyMe sh const&) in "/home/pyh8/OpenFOAM/OpenFOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM. so" #8 Foam:olyMesh:olyMesh(Foam::IOobject const&) in "/home/pyh8/OpenFOAM/Open FOAM-1.6/lib/linux64GccDPOpt/libOpenFOAM.so" #9 main in "/home/pyh8/OpenFOAM/pyh8-1.6/applications/bin/linux64GccDPOpt/makeA xialMesh" #10 __libc_start_main in "/lib64/libc.so.6" #11 __gxx_personality_v0 in "/home/pyh8/OpenFOAM/pyh8-1.6/applications/bin/linu x64GccDPOpt/makeAxialMesh" Floating point exception I am not sure what this means Thanks Patrick |
|
March 2, 2010, 13:57 |
|
#6 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard |
||
July 15, 2010, 00:24 |
|
#7 |
New Member
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
Dear Bernhard,
I untarred the .gz file at this location /opt/openfoam170/applications/utilities/mesh/manipulation and when i try wmake i have this message akeAxialMesh/makeAxialMesh$ wmake mkdir: ne peut créer le répertoire `linuxGccDPOpt': Permission non accordée /bin/sh: cannot create linuxGccDPOpt/options: Directory nonexistent make: *** [linuxGccDPOpt/options] Erreur 2 /opt/openfoam170/wmake/MakefileFiles:39: linuxGccDPOpt/options: Aucun fichier ou dossier de ce type make: *** Pas de règle pour fabriquer la cible « linuxGccDPOpt/options ». Arrêt. wmake error: file 'Make/linuxGccDPOpt/objectFiles' could not be created. Can you help me please! Thanks! Abdel |
|
July 15, 2010, 04:43 |
|
#8 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
I havn't tried MAM on 1.7 yet, but as it works with 1.6 I don't see why it shouldn't work Bernhard |
||
July 15, 2010, 11:09 |
|
#9 | |
New Member
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
Quote:
and i did as it is mentioned in openfoamwiki for makeAxialMesh, could you please apply the makeAxialMesh to it i really need that. thanks Abdel |
||
July 15, 2010, 17:26 |
|
#10 |
New Member
Abdel
Join Date: Jul 2010
Posts: 28
Rep Power: 16 |
Dear Bernhard,
i've tried the same thing with openFoam1.6 but if i usde ./Allwmake i got this message : ./Allwmake : 1: wmake not found Any idea please. |
|
July 16, 2010, 06:13 |
|
#11 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
||
February 17, 2011, 10:05 |
|
#12 |
Senior Member
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20 |
hi,
what is the FOAM_DEV_OPTION good for? neewbie |
|
February 18, 2011, 07:56 |
|
#13 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
A little bit more context would make it easier to answer such a question. Like "that is defined in Make/options" (I was tempted not to answer because if I need more time to UNDERSTAND the question than it took the asker to research/formulate the question, then I usually don't bother)
That option is needed so that the sources work with the OpenCFD-release as well as with the 1.5-dev/1.6-ext because they differ in the way meshes are manipulated. |
|
February 18, 2011, 08:30 |
|
#14 |
Senior Member
Matthias Voß
Join Date: Mar 2009
Location: Berlin, Germany
Posts: 449
Rep Power: 20 |
sorry...
you´re right about the context, i should have added that. the $(FOAM_DEV_OPTION) is in the the sources/Make/options-file of makeAxialMesh what i did: -tried to compile it against 1.6-ext -->fatal error: repatch.H is missing -against 1.6-ext without the FOAM_DEV_OPTION --> fatal error: repatchPolyTopoChanger is missing -give the absolute path to repatchPolyTopoChanger without the FOAM_DEV_OPTION -->compiled and working without errors. Since i know now that the FOAM_DEV_OPTION is for making the tool working with the different OF-distr. and i changed paths concerning that exact matter i know that there is smth. wrong on my side ... even if the tool is working now. btw. echo $FOAM_DEV is giving 1 .... ???? that means smth. is wrong with my system/OF-variables ??!! Thanks for the advice and the explanation of the FOAM_DEV option. neewbie |
|
February 18, 2011, 10:25 |
|
#15 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard |
||
November 8, 2011, 11:19 |
changes compilation with OF1.6-ext
|
#16 |
Member
David P. Schmidt
Join Date: Mar 2009
Posts: 72
Rep Power: 17 |
All:
I haven't looked at the source code for makeAxialMesh in a long time, but it looks like the issue is with the names (not just locations) of the header files changing. I just did a git pull this morning (Nov. 8th) of 1.6-ext and there is no repatch.H anywhere that I can see. Here are the changes to makeAxialMesh/ that allow compilation (as generated by svn diff). Note that I turned off the FOAM_DEV option. Index: makeAxialMesh.C ================================================== ================= --- makeAxialMesh.C (revision 1921) +++ makeAxialMesh.C (working copy) @@ -51,7 +51,7 @@ #include "argList.H" #include "Time.H" #ifdef FOAM_DEV -#include "repatch.H" +#include "repatchPolyTopoChanger.H" #else #include "repatchPolyTopoChanger.H" #endif Index: Make/options ================================================== ================= --- Make/options (revision 1921) +++ Make/options (working copy) @@ -1,12 +1,13 @@ -ifdef FOAM_DEV -FOAM_DEV_OPTION = -DFOAM_DEV -endif +//ifdef FOAM_DEV +//FOAM_DEV_OPTION = -DFOAM_DEV +//endif EXE_INC = \ $(FOAM_DEV_OPTION) \ -I$(LIB_SRC)/dynamicMesh/lnInclude \ -I$(LIB_SRC)/cfdTools/lnInclude\ - -I$(LIB_SRC)/meshTools/lnInclude + -I$(LIB_SRC)/meshTools/lnInclude\ + -I$(LIB_SRC)/dynamicMesh/dynamicMesh/lnInclude EXE_LIBS = \ -ldynamicMesh \ With those changes, it worked for me. -David |
|
October 20, 2014, 12:20 |
Problem with installation of makeAxialMesh on OF 1.6 ext
|
#17 |
New Member
Mahdi
Join Date: Sep 2013
Posts: 11
Rep Power: 13 |
Dear foamers,
I tried to install makeAxialMesh on OF-1.6-ext to have axisymmetric mesh, but there is an error in the process of making "makeAxialMesh": user-1.6-ext//applications/bin/linux64GccDPOpt/makeAxialMesh/usr/bin/ld: cannot find -liberty Could you please guide me if you have any experience with such an error? Thanks and Best, Mahdi |
|
October 20, 2014, 14:10 |
|
#18 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Don't know which package installs that. Google for it and then install that package
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
October 20, 2014, 18:49 |
|
#19 | |
New Member
Mahdi
Join Date: Sep 2013
Posts: 11
Rep Power: 13 |
Quote:
Thanks a lot Bernhard for the reply. I checked for the package, it is mentioned to be "benutlis-dev" or "gcc", but when I tried to install them, it turned out they are both already installed! I am using Ubuntu 14.04, if it affects the installation procedure. I would be grateful to have your opinion in this regard, Best, Mahdi |
||
October 21, 2014, 05:40 |
|
#20 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Seriously: I have no Ubuntu so I can't help you there. Wonder how anything got compiled on your machine without that library
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sample Utility not working in OpenFoam 1.6 | titio | OpenFOAM Post-Processing | 6 | November 15, 2014 19:04 |
problem with sampling Utility in openFOAM 1.6 | carmir | OpenFOAM Post-Processing | 10 | February 26, 2014 03:00 |
Sample Utility not working in OpenFoam 1.6 | titio | OpenFOAM Post-Processing | 0 | February 5, 2010 13:12 |
Cross-compiling OpenFOAM 1.6 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 7 | January 19, 2010 16:39 |
OpenFOAM Version 1.6 Released | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 0 | July 27, 2009 18:55 |