|
[Sponsors] |
August 19, 2013, 13:22 |
|
#301 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Well, problem is that there are no instructions that I know about for building on Mac OS X the version of ParaView that comes with OpenFOAM.
This is why the instructions on the wiki, as well as here on the forum, mostly refer to installing the version from the official ParaView website.
__________________
|
|
August 20, 2013, 02:50 |
Paraview break point
|
#302 |
New Member
Ghetta
Join Date: Aug 2013
Location: France
Posts: 6
Rep Power: 13 |
Good Morning Bruno,
Yes, but now I am completely lost. I don’t know what to do to overcome the problem without complicating the situation. I spend a lot of time to detail the different posts in the forum and I am now in a muddle. All things seem to be yet in right place but I have not the true understanding of the correct steps chain for Mac 10.6.8 (+OF2.1.1, TP-2.1.1) case : - Use of the inside ThirdParty parafoam version is it impossible? Should I try to load Paraview from paraview.org ? Then, which version would be correct? - In which case, stub-files have to be created? What command has to be used to open them? - Is there any body in the same case as me? I am sorry to be insistent, Best regards, VG |
|
August 20, 2013, 05:39 |
|
#303 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Reasons why I do this are: - the built in OpenFOAM-Reader of Paraview is good enough for me - I don't want to spend time compiling Paraview myself (and subsequently support people with their problems with compilation) This doesn't mean that it isn't possible (not even that hard) to compile Paraview and the Plugin and if someone wants to do that and write a recipe I'd even test it
__________________
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 |
||
August 20, 2013, 07:56 |
Paraview -the end
|
#304 |
New Member
Ghetta
Join Date: Aug 2013
Location: France
Posts: 6
Rep Power: 13 |
Thanks Bernhard,
I was so focused on possible installation problems than I had totally missed the fact that I can load the paraview binary file. It is done (binary version 3.12.0) and it works well with the alias once installed: /Application/ParaView\ 3.12.0.app/Contents/MacOS/paraview I apologize and thank you for your patience. It is important: it is people like you who allow people like me to recover freedom-space in their work. I hope to be able to give help back to somebody. Best regards, VG |
|
September 14, 2013, 15:31 |
Compilation errors
|
#305 |
New Member
David Olivieri
Join Date: Jun 2013
Posts: 7
Rep Power: 13 |
Hello
I have recently tried to compile OpenFoam version 2.1.1 on my iMac version 10.7.5, following closely what website http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac gave as instructions. I had an mpi version of mpirun (Open MPI) 1.6.1 installed. I reached as far as creating the make.log file from the compilation and noticed the following errors configure: error: no vtf3.h found; check path for VTF3 package first... configure: error: no BPatch.h found; check path for Dyninst package first... etc I have attached a smaller version of the compilation log file for closer viewing. I look forward to any suggestions as why my attempt to compile OpenFoam failed on my iMac. David Olivieri |
|
September 14, 2013, 16:36 |
|
#306 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings David and welcome to the forum!
Quote:
You only have to worry if in the second run of Allwmake, if there are any error messages Best regards, Bruno
__________________
|
||
September 15, 2013, 11:46 |
OpenFoam compilation problems on IMac
|
#307 |
New Member
David Olivieri
Join Date: Jun 2013
Posts: 7
Rep Power: 13 |
Hi Bruno
Thank you for your reply. In the website http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac I do not see where it states that the command ./Allwake is issued twice. I could repeat everything again to ensure I have not done something wrong. Only thing is the compilation log I sent to the forum yesterday there are other errors occurring like 1) ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[3]: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/R] Error 1 make[2]: *** [R] Error 2 2) OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/Lambda2 Making dependency list for source file wallShearStress.C g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -I/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/src/transportModels -I/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels -I/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/src/turbulenceModels/incompressible/RAS/RASModel -I/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -lpthread -L/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-1.5.3 -lPstream Make/darwinIntel64Gcc46DPOpt/createTurbulenceFields.o -L/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib \ -lincompressibleTurbulenceModel -lincompressibleRASModels -lincompressibleTransportModels -lfiniteVolume -lgenericPatchFields -lOpenFOAM -ldl -lpthread -lm -o /Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/createTurbulenceFields Making dependency list for source file renumberMesh.C make[2]: Target `application' not remade because of errors. make[1]: *** [turbulence] Error 2 (See the attached file to see all of them) Please advise me on the best course of action. Finally, I must make you aware some of the patches did not patch properly. David Olivieri |
|
September 15, 2013, 15:36 |
|
#308 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi David,
Sorry about that! I confused the instructions with the ones I wrote for Linux Distributions I've updated the wiki page, specifically the sections 2.6 and 2.6.1: http://openfoamwiki.net/index.php/Ho...lding_OpenFOAM
Best regards, Bruno
__________________
|
||
September 18, 2013, 15:07 |
More help needed
|
#309 |
New Member
David Olivieri
Join Date: Jun 2013
Posts: 7
Rep Power: 13 |
Hi Bruno
I have tried what you stated last time and got the following after doing Code:
./Allwmake wcleanAll wcleanLnIncludeAll ./Allwmake Code:
make: Nothing to be done for `all'. ======================================== Start ThirdParty Allwmake ======================================== ======================================== Build MPI libraries if required ======================================== Build Scotch decomposition library scotch_5.1.11 /Users/davidolivieri/OpenFOAM/ThirdParty-2.1.1/platforms/darwinIntel64Gcc46/scotch_5.1.11 + cd scotch_5.1.11/src + prefixDIR=/Users/davidolivieri/OpenFOAM/ThirdParty-2.1.1/platforms/darwinIntel64Gcc46/scotch_5.1.11 + libDIR=/Users/davidolivieri/OpenFOAM/ThirdParty-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib + mkdir -p /Users/davidolivieri/OpenFOAM/ThirdParty-2.1.1/platforms/darwinIntel64Gcc46/scotch_5.1.11 + mkdir -p /Users/davidolivieri/OpenFOAM/ThirdParty-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib + configOpt='prefix=/Users/davidolivieri/OpenFOAM/ThirdParty-2.1.1/platforms/darwinIntel64Gcc46/scotch_5.1.11 libdir=/Users/davidolivieri/OpenFOAM/ThirdParty-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib' + '[' -f ../../etc/wmakeFiles/scotch/Makefile.inc.i686_pc_linux2.shlib-OpenFOAM-64 ']' + rm -f Makefile.inc + ln -s ../../etc/wmakeFiles/scotch/Makefile.inc.i686_pc_linux2.shlib-OpenFOAM-64 Makefile.inc + '[' -f Makefile.inc ']' + unset configEnv + '[' gcc-mp-4.6 '!=' gcc ']' + configEnv='CC=gcc-mp-4.6 CCS=gcc-mp-4.6' + make realclean (cd libscotch ; make realclean) rm -f *~ *.o lib*.so parser_yy.c parser_ly.h parser_ll.c *scotch.h *scotchf.h y.output dummysizes (cd scotch ; make realclean) rm -f *~ *.o acpl amk_ccc amk_fft2 amk_grf amk_hy amk_m2 amk_p2 atst gbase gcv *ggath *gmap gmk_hy gmk_m2 gmk_m3 gmk_msh gmk_ub2 gmtst *gord gotst gout *gpart *gscat *gtst mcv mmk_m2 mmk_m3 mord mtst (cd libscotchmetis ; make realclean) rm -f *~ *.o lib*.so rm -f ../bin/* ../include/* ../lib/* + make -j 1 CC=gcc-mp-4.6 CCS=gcc-mp-4.6 scotch (cd libscotch ; make VERSION=5 RELEASE=1 PATCHLEVEL=10 scotch && make install) rm -f *~ *.o lib*.so parser_yy.c parser_ly.h parser_ll.c *scotch.h *scotchf.h y.output dummysizes make CC="gcc-mp-4.6" CCD="gcc-mp-4.6" \ scotch.h \ scotchf.h \ libscotch.so \ libscotcherr.so \ libscotcherrexit.so gcc-mp-4.6 -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -Drestrict=__restrict -DSCOTCH_VERSION=5 -DSCOTCH_RELEASE=1 -DSCOTCH_PATCHLEVEL=10 dummysizes.c -o dummysizes -lz -lm -lrt ld: library not found for -lrt collect2: ld returned 1 exit status make[2]: *** [dummysizes] Error 1 make[1]: *** [scotch] Error 2 make: *** [scotch] Error 2 + make realclean mpicc -O3 -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME -DSCOTCH_RENAME_PARSER -Drestrict=__restrict -DSCOTCH_PTSCOTCH -DSCOTCH_VERSION=5 -DSCOTCH_RELEASE=1 -DSCOTCH_PATCHLEVEL=10 dummysizes.c -o dummysizes -lz -lm -lrt ld: library not found for -lrt collect2: ld returned 1 exit status make[2]: *** [dummysizes] Error 1 make[1]: *** [ptscotch] Error 2 make: *** [ptscotch] Error 2 + make realclean (cd libscotch ; make realclean) rm -f *~ *.o lib*.so parser_yy.c parser_ly.h parser_ll.c *scotch.h *scotchf.h y.output dummysizes (cd scotch ; make realclean) rm -f *~ *.o acpl amk_ccc amk_fft2 amk_grf amk_hy amk_m2 amk_p2 atst gbase gcv *ggath *gmap gmk_hy gmk_m2 gmk_m3 gmk_msh gmk_ub2 gmtst *gord gotst gout *gpart *gscat *gtst mcv mmk_m2 mmk_m3 mord mtst (cd libscotchmetis ; make realclean) rm -f *~ *.o lib*.so rm -f ../bin/* ../include/* ../lib/* WARNING: required include file 'ptscotch.h' not found! Code:
Executing /Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/bin/foamInstallationTest: Checking basic setup... ------------------------------------------------------------------------------- Shell: bash Host: Davids-iMac FATAL ERROR: Incompatible operating system "Darwin". OpenFOAM is currently available for Linux and SunOS only. ------------------------------------------------------------------------------- Checking main OpenFOAM env variables... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Crit ------------------------------------------------------------------------------- $WM_PROJECT_INST_DIR /Users/davidolivieri/OpenFOAM yes yes $WM_PROJECT_USER_DIR ...livieri/OpenFOAM/davidolivieri-2.1.1 no no $WM_THIRD_PARTY_DIR ...idolivieri/OpenFOAM/ThirdParty-2.1.1 yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $WM_PROJECT_DIR ...avidolivieri/OpenFOAM/OpenFOAM-2.1.1 yes yes yes $FOAM_APPBIN ...latforms/darwinIntel64Gcc46DPOpt/bin yes yes yes $FOAM_SITE_APPBIN ...latforms/darwinIntel64Gcc46DPOpt/bin no no $FOAM_USER_APPBIN ...latforms/darwinIntel64Gcc46DPOpt/bin no no $WM_DIR ...ivieri/OpenFOAM/OpenFOAM-2.1.1/wmake yes yes yes ------------------------------------------------------------------------------- Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH... ------------------------------------------------------------------------------- Environment_variable Set_to_file_or_directory Valid Path Crit ------------------------------------------------------------------------------- $FOAM_LIBBIN ...latforms/darwinIntel64Gcc46DPOpt/lib yes yes yes $FOAM_SITE_LIBBIN ...latforms/darwinIntel64Gcc46DPOpt/lib no no $FOAM_USER_LIBBIN ...latforms/darwinIntel64Gcc46DPOpt/lib no no $MPI_ARCH_PATH /usr/local yes yes yes ------------------------------------------------------------------------------- Third party software ------------------------------------------------------------------------------- Software Version Location ------------------------------------------------------------------------------- flex 2.5.37 /opt/local/bin/flex gcc 4.6.4 /opt/local/bin/gcc gzip 1.3.12 /usr/bin/gzip /Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/bin/foamInstallationTest: line 298: --version: command not found gtar icoFoam 2.1.1 ...AM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/icoFoam ------------------------------------------------------------------------------- Summary ------------------------------------------------------------------------------- The system test has evoked 1 fatal error(s). Critical systems ok. Review the output for warning messages and consult the installation guide for troubleshooting. Done Davids-iMac:bin davidolivieri$ Code:
alias of21='hdiutil attach "/PATH/TO/YOUR/DMG/OpenFOAM.dmg" -mountpoint "$HOME/OpenFOAM" > /dev/null ; . $HOME/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc' David Olivieri Last edited by wyldckat; September 21, 2013 at 14:41. Reason: Added [CODE][/CODE] |
|
September 18, 2013, 18:52 |
|
#310 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
September 19, 2013, 15:56 |
|
#311 |
New Member
David Olivieri
Join Date: Jun 2013
Posts: 7
Rep Power: 13 |
Hi
I did as was stated on http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac 2.3 Apply patches and tweaks Change into the Third-Party directory and apply the first patch via: patch -p1 <ThirdParty-2.1.0-Mac.patch and I got the following error patching file Allwmake patching file etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM patching file scotch_5.1.11/src/Makefile.inc Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file scotch_5.1.11/src/Makefile.inc.rej remember I am using a patch correction on a version 2.2.1 of OpenFOAM. I look forward to your reply on this issue. David Olivieri |
|
September 28, 2013, 14:10 |
ThirdParty-2.1.1.tar patch problem
|
#312 |
New Member
David Olivieri
Join Date: Jun 2013
Posts: 7
Rep Power: 13 |
Hello Bernhard
I have used the tar file ThirdParty-2.1.1.tar which I installed in the Third-Party directory to patch OpenFOAM build process. Why did I get the error message stated in my previous reply? It seems the patch failed to patch in the way you intended in the environment I have been working in. Do you have anything to say on this? The information which was stored in the file Makefile.inc.rej was as follows *************** *** 1 **** - ../../etc/wmakeFiles/scotch/Makefile.inc.i686_pc_linux2.shlib-OpenFOAM-64--- 1 ---- + ../../etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM David Olivieri |
|
September 28, 2013, 14:14 |
|
#313 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings David,
This has actually already been asked and answered in the past: Quote:
Quote:
Bruno
__________________
|
|||
September 30, 2013, 15:40 |
OpenFOAM issues with iMac Lion version 10.7.5
|
#314 |
New Member
David Olivieri
Join Date: Jun 2013
Posts: 7
Rep Power: 13 |
Hello Bruno
Thank you for your reply. Recently I tried to install OpenFOAM again following closely what is given on website http://openfoamwiki.net/index.php/Ho...enFOAM_v21_Mac I applied the patches as stated in section 2.3 and also patches SetNanMac.patch and OpenFOAM-2.1.x-Mac_20121009.patch given on website http://www.cfd-online.com/Forums/ope...tml#post385688 I then applied the following instructions for build ./Allwmake wcleanAll wcleanLnIncludeAll ./Allwmake and got some of the following errors from the build make[2]: `libptscotchparmetis.dylib' is up to date. cp parmetis.h ../../include cp libptscotchparmetis.dylib ../../lib + make prefix=/Users/davidolivieri/OpenFOAM/ThirdParty-2.1.1/platforms/darwinIntel64Gcc46/scotch_5.1.11 libdir=/Users/davidolivieri/OpenFOAM/ThirdParty-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-1.5.3 includedir=/Users/davidolivieri/OpenFOAM/ThirdParty-2.1.1/platforms/darwinIntel64Gcc46/scotch_5.1.11/include/openmpi-1.5.3 install mkdir /Users/davidolivieri/OpenFOAM/ThirdParty-2.1.1/platforms/darwinIntel64Gcc46/scotch_5.1.11/include/openmpi-1.5.3 cp -f ../bin/[agm]* /Users/davidolivieri/OpenFOAM/ThirdParty-2.1.1/platforms/darwinIntel64Gcc46/scotch_5.1.11/bin cp: ../bin/[agm]*: No such file or directory make: [install] Error 1 (ignored) signals/sigFpe.C: In destructor 'Foam::sigFpe::~sigFpe()': signals/sigFpe.C:175:12: error: 'system_malloc_' was not declared in this scope signals/sigFpe.C:392:13: error: 'vm_protect' was not declared in this scope make: *** [Make/darwinIntel64Gcc46DPOpt/sigFpe.o] Error 1 g++-mp-4.6: error: /Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/libOSspecific.o: No such file or directory make: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/libOpenFOAM.dylib] Error 1 darwinIntel64Gcc46DPOpt/radialActuationDiskSource.o ld: library not found for -lOpenFOAM collect2: ld returned 1 exit status make: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/libfiniteVolume.dylib] Error 1 ld: library not found for -lfiniteVolume collect2: ld returned 1 exit status make: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/libgenericPatchFields.dylib] Error 1 ld: library not found for -lfiniteVolume collect2: ld returned 1 exit status make: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/libreconstruct.dylib] Error 1 ld: library not found for -ldecompositionMethods collect2: ld returned 1 exit status make: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/libdistributed.dylib] Error 1 ld: library not found for -ldynamicMesh collect2: ld returned 1 exit status make: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/libdynamicFvMesh.dylib] Error 1 ld: library not found for -lfiniteVolume collect2: ld returned 1 exit status make: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/libreactionThermophysicalModels.dylib] Error 1 ld: library not found for -lfiniteVolume collect2: ld returned 1 exit status make: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/liblaminarFlameSpeedModels.dylib] Error 1 ld: library not found for -lbasicThermophysicalModels collect2: ld returned 1 exit status make: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/libchemistryModel.dylib] Error 1 and finally at the of the make.log file I got the error ld: library not found for -lmultiphaseSystem collect2: ld returned 1 exit status make[2]: *** [/Users/davidolivieri/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/multiphaseEulerFoam] Error 1 make[1]: *** [multiphaseEulerFoam] Error 2 make[1]: Target `application' not remade because of errors. make: *** [multiphase] Error 2 make: Target `application' not remade because of errors. Bernhard's patches had the usual error message with the first patch for the third party libraries, while last two patches had doubtful use. For example applying the last patch with the command patch -p1 <SetNanMac-1.patch gave the message patching file src/OSspecific/POSIX/signals/sigFpe.C Reversed (or previously applied) patch detected! Assume -R? [n] Where is occurred I responded with yes and got Hunk #1 succeeded at 51 (offset 5 lines). Hunk #2 FAILED at 101. Hunk #3 succeeded at 139 (offset -25 lines). Hunk #4 succeeded at 245 (offset -3 lines). Hunk #5 succeeded at 275 (offset -3 lines). 1 out of 5 hunks FAILED -- saving rejects to file src/OSspecific/POSIX/signals/sigFpe.C.rej Anyway, I look forward to any suggestions on how the build could be better done. Maybe the implementation of the patches needs more clarification. David Olivieri |
|
October 1, 2013, 09:30 |
|
#315 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
1. Published first version of the 2.1-patch 2. Developed NaN-fix 3. Published NaN-fix for those who already installed the old version 4. Rolled the NaN-fix into the general patch and published that too (for the new ones) So the NaN-patch probably doesn't work because you used the patch that already has it included. What is the other patch that doesn't work for you?
__________________
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 4, 2013, 17:32 |
A message
|
#316 |
New Member
David Olivieri
Join Date: Jun 2013
Posts: 7
Rep Power: 13 |
Hi
My experience with these patches has been as follows :- 1) ThirdParty-2.1.0-Mac.patch applied and gave Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED (Explained earlier by Bruno as non serious.) 2) OpenFOAM-2.1.x-Mac_20121009.patch applied with command patch -p1 <OpenFOAM-2.1.x-Mac_20121009.patch gave Reversed or previous applied error. Therefore, I can concluded I should start again this time not applying the Third Party patch and the other two patches OpenFOAM-2.1.x-Mac_20121009.patch SetNanMac-1.patch If the OpenFOAM completes compilation how could I check quickly to see if the process has completed properly? Another issue where you give advice on using the alias alias of21='hdiutil attach "/PATH/TO/YOUR/DMG/OpenFOAM.dmg" -mountpoint "$HOME/OpenFOAM" > /dev/null ; . $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc' in the user's .profile file, the PATH given above for the hdiutil command I believe should be alias of21='hdiutil attach "~/OpenFOAM-v2.1.sparseimage" -mountpoint "$HOME/OpenFOAM" > /dev/null ; . $HOME/OpenFOAM/OpenFOAM-2.1.0/etc/bashrc' The reason why I send this is an error occurs complaining no file called OpenFOAM.dmg exists since a sparse image file has been created not ending with *.dmg ,correct me if I am wrong. David Olivieri |
|
October 6, 2013, 11:06 |
|
#317 | |||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Quote:
Quote:
__________________
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 |
||||
April 14, 2014, 18:32 |
OpenFOAM installation on SnowLeopard
|
#318 |
New Member
Christina P.
Join Date: Oct 2012
Posts: 22
Rep Power: 14 |
Hi,
I have recently decided to make the switch from ANSYS FLUENT to OpenFOAM due to some extensive issues with licensing. I don't currently have access to a Linux machine, but my school computer is a Mac running 10.6.8 (Snow Leopard). I have tried very hard to follow the instructions in the wiki - Installation/Mac OS/OpenFOAM 2.1.x - as carefully as possible. However, I am having a few issues. I'm really sorry for the length of this post. I think maybe I am putting too much information in one post. Versions I'm using: Apple Mac OS X 10.6.8 Xcode 3.2.6 (I think this is the same as Apple Developer Tools 3.2.6?) MacPorts 2.2.1 (For Snow Leopard 10.6) Patches: ThirdParty-2.1.0-Mac.patch OpenFOAM-2.1.x-Mac_20130125.patch OpenFOAM-2.1.x-Mac-gcc46.patch Error associated with checking the MacPorts software installation: After entering "sudo port selfupdate", I got an error stating: Code:
sudo: port: command not found Code:
export PATH=$PATH:/opt/local/bin export MANPATH=$MANPATH:/opt/local/share/man export INFOPATH=$INFOPATH:/opt/local/share/info Error associated with applying ThirdParty patch: Applying the ThirdParty-2.1.0-Mac.patch yields the following error (which is not an issue according to post #4 and many subsequent posts by Bruno so I ignored it and kept going): Code:
patching file Allwmake patching file etc/wmakeFiles/scotch/Makefile.inc.i686_mac_darwin.shlib-OpenFOAM patching file scotch_5.1.11/src/Makefile.inc Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file scotch_5.1.11/src/Makefile.inc.rej Errors associated with applying OpenFOAM-2.1.x-Mac_20130125 patch: Applying this patch worked partially. The following are the failure notifications that I got. Code:
Hunk #1 FAILED at 19. 1 out of 1 hunk FAILED -- saving rejects to file applications/solvers/multiphase/multiphaseEulerFoam/Make/options.rej patching file applications/utilities/mesh/generation/blockMesh/Make/options patching file applications/utilities/postProcessing/miscellaneous/execFlowFunctionObjects/Make/options patching file applications/utilities/postProcessing/turbulence/R/Make/options Hunk #1 FAILED at 7. 1 out of 1 hunk FAILED -- saving rejects to file applications/utilities/postProcessing/turbulence/R/Make/options.rej patching file applications/utilities/postProcessing/turbulence/createTurbulenceFields/Make/options patching file applications/utilities/postProcessing/velocityField/Pe/Make/options patching file applications/utilities/postProcessing/wall/wallHeatFlux/Make/options patching file applications/utilities/postProcessing/wall/wallShearStress/Make/options Hunk #1 FAILED at 6. 1 out of 1 hunk FAILED -- saving rejects to file applications/utilities/postProcessing/wall/wallShearStress/Make/options.rej patching file applications/utilities/postProcessing/wall/yPlusLES/Make/options patching file applications/utilities/postProcessing/wall/yPlusRAS/Make/options patching file applications/utilities/preProcessing/applyBoundaryLayer/Make/options Hunk #1 succeeded at 8 with fuzz 2. patching file bin/addr2line4Mac.py patching file etc/bashrc patching file etc/config/settings.sh Hunk #3 FAILED at 500. 1 out of 3 hunks FAILED -- saving rejects to file etc/config/settings.sh.rej Errors associated with building OpenFOAM: So far as I can tell, there are three primary errors that I encounter when trying to build OpenFOAM. The first is related to ptscotch.h (not sure what to do about this): Code:
Making dependency list for source file ptscotchDecomp.C could not open file mpi.h for source file ptscotchDecomp.C could not open file ptscotch.h for source file ptscotchDecomp.C SOURCE=ptscotchDecomp.C ; g++-mp-4.6 -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -I/include/openmpi -I/include -I/Users/caj5p/OpenFOAM/ThirdParty-2.1.0/platforms/darwinIntel64Gcc46/scotch_5.1.11/include/dummy -I/usr/include/scotch -I../decompositionMethods/lnInclude -IlnInclude -I. -I/Users/caj5p/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude -I/Users/caj5p/OpenFOAM/OpenFOAM-2.1.0/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64Gcc46DPOptMACPORTOPENMPI/ptscotchDecomp.o ptscotchDecomp.C:126:22: fatal error: ptscotch.h: No such file or directory compilation terminated. make: *** [Make/darwinIntel64Gcc46DPOptMACPORTOPENMPI/ptscotchDecomp.o] Error 1 Code:
ld: library not found for -lchemistryModel collect2: ld returned 1 exit status Code:
Undefined symbols for architecture x86_64: "Foam::incompressible::turbulenceModel::typeName", referenced from: _main in R.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[3]: *** [/Users/cp703/OpenFOAM/OpenFOAM-2.1.0/platforms/darwinIntel64Gcc46DPOpt/bin/R] Error 1 make[2]: *** [R] Error 2 Code:
Undefined symbols for architecture x86_64: "Foam::incompressible::turbulenceModel::typeName", referenced from: _main in multiphaseEulerFoam.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[2]: *** [/Users/cp703/OpenFOAM/OpenFOAM-2.1.0/platforms/darwinIntel64Gcc46DPOpt/bin/multiphaseEulerFoam] Error 1 make[1]: *** [multiphaseEulerFoam] Error 2 |
|
Tags |
compilation error |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extend Project 1.6-ext Binary Release for Mac OS X | hjasak | OpenFOAM Announcements from Other Sources | 26 | November 5, 2013 17:50 |
Openfoam mac: Compiling custom libraries | atareen64 | OpenFOAM | 3 | April 14, 2011 12:01 |
OpenFOAM-1.6 on Mac OS X 10.6.1 | elvisjohndowson | OpenFOAM | 6 | October 21, 2009 16:45 |
Mac Simple Install Request or Processing Assistance Help | sjohnson | OpenFOAM Installation | 4 | December 12, 2008 08:46 |
MAC + SOLA for free surface | T | Main CFD Forum | 1 | April 11, 2001 14:43 |