|
[Sponsors] |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 15, 2015, 15:57 |
|
#161 |
New Member
Andre Mas
Join Date: Jan 2015
Location: Montreal, Canada
Posts: 18
Rep Power: 11 |
I am going to see if we can get some of these Mac related changes merged into the main repository, on the condition they don't break the main Linux build.
Last edited by ajmas; March 15, 2015 at 18:02. |
|
March 16, 2015, 04:58 |
|
#162 | |
New Member
Paolo
Join Date: Feb 2015
Posts: 9
Rep Power: 11 |
Quote:
Thank you for your help. It is finally working!!!!! After some hours of building, the installation is now complete without any error...now I have just a question: Is the installation permanent? I mean, now I think everything is inside the volume, if I remove it, what is going to happen? Will I lose everything (the installation)? How can I make it permanent? Sorry but I am not very good in this kind of things. Thank you again, it was very useful, specially for who is not good enough as me!!! All the best, Paolo |
||
March 16, 2015, 10:21 |
|
#163 | |
New Member
Andre Mas
Join Date: Jan 2015
Location: Montreal, Canada
Posts: 18
Rep Power: 11 |
Quote:
Code:
. [path to OpenFOAM]/etc/bashrc |
||
March 16, 2015, 19:03 |
|
#164 | |
New Member
Pierluigi Morra
Join Date: Apr 2013
Posts: 25
Rep Power: 13 |
Quote:
|
||
March 16, 2015, 22:56 |
|
#165 | |
New Member
Andre Mas
Join Date: Jan 2015
Location: Montreal, Canada
Posts: 18
Rep Power: 11 |
Quote:
I encountered some issue using the paraFoam command too, since paraview.app doesn't support the .openFoam extension. If anyone has this working I'll integrate this into my fork. |
||
March 17, 2015, 08:01 |
|
#166 | |
New Member
Pierluigi Morra
Join Date: Apr 2013
Posts: 25
Rep Power: 13 |
Quote:
Code:
147 if [ $WM_ARCH_BASE=="darwin" ] 148 then 149 : ${PARAVIEW_APP_DIR:="/Applications/paraview.app"}; export PARAVIEW_APP_DIR 150 if [ -d "$PARAVIEW_APP_DIR" ]; then 151 echo "Using paraview in directory $PARAVIEW_APP_DIR" 152 paraview () { 153 $PARAVIEW_APP_DIR/Contents/MacOS/paraview "$@" 154 } 155 156 export -f paraview 157 else 158 echo "Please install Paraview into /Applications." 159 return 160 fi 161 fi Code:
+if [ $WM_ARCH_BASE=="darwin" ] +then + : ${PARAVIEW_APP_DIR:="/Applications/paraview.app"}; export PARAVIEW_APP_DIR + if [ -d $PARAVIEW_APP_DIR -a ! -r $ParaView_DIR ] + then + echo "Using paraview in directory $PARAVIEW_APP_DIR" + unset ParaView_VERSION ParaView_MAJOR ParaView_DIR + # needs to be an alias because if it is in the path the Python Shell does not work + alias paraview=$PARAVIEW_APP_DIR/Contents/MacOS/paraview + export PATH=$PARAVIEW_APP_DIR/Contents/bin:$PATH + fi +fi + I haven't tried your script yet, so I can't give feedback on that. NB: All that was suggested to me by the user alexeym, and it proved to solve an issue I met after building OpenFoam on some Mavericks and Yosemite OS. In fact, the issue consists of getting the following answer when calling paraFoam -builtin Code:
/Volumes/OpenFoam-v2.3.x/openfoam-mac-install/OpenFOAM-2.3.x/bin/paraFoam: line 265: paraview: command not found |
||
March 18, 2015, 22:44 |
|
#167 |
New Member
Andre Mas
Join Date: Jan 2015
Location: Montreal, Canada
Posts: 18
Rep Power: 11 |
Thanks @maCrobo for the suggestions, I have now applied them.
Using 'paraFoam -builtin' seems to help, though should we be trying to do anything with PV4Readers (request if param is not specified)? |
|
March 19, 2015, 14:13 |
|
#168 | |
New Member
Pierluigi Morra
Join Date: Apr 2013
Posts: 25
Rep Power: 13 |
Quote:
As far as your doubt goes, I got the impression that those PV4Readers are used for the Linux distribution of Paraview. In fact, it seems that if you want Paraview on Linux you have to compile it, and those PV4 files are there to modify some features (i.e. some buttons and panels) and have Paraview directly handle OpenFoam file format. So, I would say we won't be needing those PV4Readers files on Mac OS (where the conditional is to say there can be something I'm missing about that). Finally, the simple paraFoam command (without any options) doesn't work on MacOS. |
||
March 20, 2015, 03:40 |
|
#169 | ||
Senior Member
|
Hi,
Quote:
Quote:
Code:
# parse options while [ "$#" -gt 0 ] do case "$1" in ... -builtin) extension=foam requirePV=0 shift ;; ... Code:
# reader extension extension=foam requirePV=0 |
|||
March 21, 2015, 11:56 |
|
#170 | |
New Member
Pierluigi Morra
Join Date: Apr 2013
Posts: 25
Rep Power: 13 |
Quote:
Would compiling paraview and PV4Readers take interesting features? |
||
March 21, 2015, 12:52 |
|
#171 | ||
Senior Member
|
Hi,
Quote:
Quote:
|
|||
March 23, 2015, 12:23 |
|
#172 | ||
Senior Member
Join Date: Mar 2015
Posts: 250
Rep Power: 12 |
Quote:
I got a very similar error when running snappyHexMesh on the motorBike tutorial: Code:
dyld: Symbol not found: __SCOTCHbgraphbipartststratab Referenced from: /usr/local/opt/scotch/lib/libptscotch.dylib Expected in: flat namespace in /usr/local/opt/scotch/lib/libptscotch.dylib Trace/BPT trap: 5 Has anybody experienced this problem as well? Quote:
And can anyone please tell me how to uninstall/remove OpenFOAM from my hard drive? I really appreciate your help, Kate |
|||
March 23, 2015, 14:48 |
|
#173 | ||
Senior Member
|
Hi,
I have tried to reproduce the error you posted. OS X 10.10.2, OpenFOAM 2.3.1, patch from github. Unfortunately I was not successful. On my laptop everything runs perfectly well. Quote:
Quote:
|
|||
March 23, 2015, 14:53 |
|
#174 | |
Senior Member
Join Date: Mar 2015
Posts: 250
Rep Power: 12 |
Quote:
|
||
March 25, 2015, 06:13 |
|
#175 | |
Senior Member
Join Date: Mar 2015
Posts: 250
Rep Power: 12 |
Quote:
After that, I tried the cavity tutorial and it worked fine, just for the record. Then I performed the following steps in the motorBike directory: 1) I built the initial mesh with blockMesh and viewed it in ParaView. This worked. 2) Then I entered snappyHexMesh. I got the following output: Code:
dyld: Symbol not found: __SCOTCHbgraphbipartststratab Referenced from: /usr/local/opt/scotch/lib/libptscotch.dylib Expected in: flat namespace in /usr/local/opt/scotch/lib/libptscotch.dylib Trace/BPT trap: 5 Moreover, it strikes me that I have an "0.org" folder in the motorBike directory. Why isn't it just called "0"? |
||
March 25, 2015, 06:37 |
|
#176 | ||
Senior Member
|
Hi,
Quote:
Quote:
The error is quite suspicious, can you, please, post output of the following commands ($ is shell prompt, you don't need to copy it): Code:
$ sw_vers $ gcc --version $ clang --version |
|||
March 25, 2015, 08:31 |
|
#177 | |||
Senior Member
Join Date: Mar 2015
Posts: 250
Rep Power: 12 |
Quote:
Quote:
There was quite a missunderstanding. I was talking about the tutorials/incompressible/simpleFoam/motorBike tutorial. I will try to run the motorBike from the tutorials/mesh/snappyHexMesh/motorBike directory now and will report back to you later Quote:
Code:
$ sw_vers Code:
ProductName: Mac OS X ProductVersion: 10.10.2 BuildVersion: 14C1514 Code:
$ gcc --version Code:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1 Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.1.0 Thread model: posix Code:
$ clang --version Code:
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) Target: x86_64-apple-darwin14.1.0 Thread model: posix |
||||
March 25, 2015, 08:53 |
|
#178 |
Senior Member
|
Hi,
1. Warnings about missing files that is in your log are expected Code:
Note: ignore spurious warnings about missing mpicxx.h headers wclean mpi wmake libso mpi wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file UOPwrite.C could not open file omp.h for source file UOPwrite.C due to No such file or directory could not open file ompi/mpi/cxx/pmpicxx.h for source file UOPwrite.C due to No such file or directory ... 3. And finally I have found that currently Homebrew installs Scotch as a set of *.dylib files. Scotch of my laptop was build from sources and is a set of *.a files. I will install new Scotch version and try to release a fix for your error. |
|
March 26, 2015, 14:46 |
|
#179 |
Senior Member
|
@KateEisenhower
I have reproduced your error (finally) and it was really due to change in Homebrew's Scotch build process (i.e. they moved from static library to dynamic library and ptscotch now needs -lscotch during linking). Fortunately the fix is rather simple. You have two possibilities: 1. If you still have OpenFOAM installed, do the following Code:
$ cd $HOME/OpenFOAM/OpenFOAM-2.3.1 $ curl -L https://raw.githubusercontent.com/mrklein/openfoam-os-x/master/OpenFOAM-2.3.1-scotch.patch > OpenFOAM-2.3.1-scotch.patch $ git apply OpenFOAM-2.3.1-scotch.patch $ cd src/parallel/decompose $ ./Allwmake |
|
March 28, 2015, 05:23 |
|
#180 | |
Senior Member
Join Date: Mar 2015
Posts: 250
Rep Power: 12 |
Quote:
However, I tried to run the motorBike tutorial by running the Allrun script. I got the following output: Code:
kates-mbp:~ kateeisenhower$ /Users/kateeisenhower/OpenFOAM/kateeisenhower-2.3.1/run/tutorials/incompressible/simpleFoam/motorBike/Allrun ; exit; /Users/kateeisenhower/OpenFOAM/kateeisenhower-2.3.1/run/tutorials/incompressible/simpleFoam/motorBike/Allrun: line 5: /bin/tools/RunFunctions: No such file or directory logout |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] dynamicTopoFVMesh and pointDisplacement | RandomUser | OpenFOAM Meshing & Mesh Conversion | 6 | April 26, 2018 08:30 |
Near wall treatment in k-omega SST | Arnoldinho | OpenFOAM Running, Solving & CFD | 38 | March 8, 2017 14:48 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
createPatch Segmentation Fault (CORE DUMPED) | sam.ho | OpenFOAM Pre-Processing | 2 | April 21, 2014 03:01 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 09:19 |