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.
|
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 |
Quote:
Code:
. [path to OpenFOAM]/etc/bashrc |
Quote:
|
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. |
Quote:
Code:
147 if [ $WM_ARCH_BASE=="darwin" ] Code:
+if [ $WM_ARCH_BASE=="darwin" ] 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 |
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)? |
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. |
Hi,
Quote:
Quote:
Code:
# parse options Code:
# reader extension |
Quote:
Would compiling paraview and PV4Readers take interesting features? |
Hi,
Quote:
Quote:
|
Quote:
I got a very similar error when running snappyHexMesh on the motorBike tutorial: Code:
dyld: Symbol not found: __SCOTCHbgraphbipartststratab 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 |
Hi,
Quote:
Quote:
Quote:
|
Quote:
|
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 Moreover, it strikes me that I have an "0.org" folder in the motorBike directory. Why isn't it just called "0"? |
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 |
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 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 Code:
$ clang --version Code:
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) |
Hi,
1. Warnings about missing files that is in your log are expected Code:
Note: ignore spurious warnings about missing mpicxx.h headers 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. |
@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 |
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; |
Hi,
As the path in error is Code:
/bin/tools/RunFunctions Code:
# Source tutorial run functions |
Hi,
I am not sure if I understand what you are trying to tell me. Has it something to do with the post-configuration part of the Hopscotch Building OpenFOAM on OS X guide (http://matveichev.blogspot.fr/2014/0...on-os-x.html)? I didn't understand this part and I guess it didn't work on my machine. How do I set up environment variables? Quote:
|
Hi,
Maybe here it is written clearer - https://github.com/mrklein/openfoam-...-configuration. If you were able to build OpenFOAM, then once you have set up environment variables. In general it is done with 'source $HOME/OpenFOAM/OpenFOAM-2.3.1/etc/bashrc' command. But before issuing this command you have to mount disk image with case sensitive file system you have created. |
Hi,
everytime I reboot my mac I am typing the following: Code:
hdiutil attach -mountpoint $HOME/OpenFOAM OpenFOAM.sparsebundle p.s.: Thank you for the post configuration guide. I will try this! |
Well, commands seems to be OK. What is the output of the commands?
Post-configuration guide is just trying to automate the commands you are entering. If they do not work then re-reading the guide in general will not help. |
The output is:
Code:
Kates-MacBook-Pro:~ kateeisenhower$ hdiutil attach -mountpoint $HOME/OpenFOAM OpenFOAM.sparsebundle |
And then you open new terminal and try to run tutorial case? You have to do 'source $HOME/OpenFOAM/OpenFOAM-2.3.1/etc/bashrc' every time you open new terminal session.
|
I never close terminal.
|
And you always work in one tab/window? You never open new windows/tabs?
|
Not within the terminal app.
Ah, now I got it. When I double click on the Allrun script, it opens in a new window automatically. I will try to follow the guide you recommended me for automating the process of mounting disk image and setup environment variables. This will solve the problem, right? Thank you very much for your help! |
Quote:
I tried to follow the default version approach but I have two questions: 1) In which directory do I have to be when I make the directory .OpenFOAM? 2) Where is my ~/.profile? Thanks in advance |
Hi,
1. Really, I have omitted this in guide. You should be in $HOME folder (/Users/kateeisenhower). 2. In general on Unices ~ refers to home folder, so your ~/.profile is /Users/kateeisenhower/.profile. You can check if installation succeeded by executing Allrun in Terminal instead of Finder. I.e. in the terminal, where you have mounted disk image and then executed 'source $HOME/OpenFOAM/OpenFOAM-2.3.1/etc/bashrc', you write (text starting from # is a commentary) Code:
tut # will got to tutorials folder |
Quote:
Code:
Kates-MacBook-Pro:~ kateeisenhower$ mkdir -p .OpenFOAM |
And the result of these operations? Do you still have problems with tutorial execution or it started to work?
|
There was no result. I have posted everything which I could see in terminal.
I did not try the tutorials because I was not able to do step two of the post configuration guide because of the missing .profile. |
And you can not create it? Even with just
Code:
echo 'source $HOME/openfoam-env-setup.sh' > $HOME/.profile |
No, it doesn't work. I looked again, but there are only my documents, music, pictures... folders as well as my OpenFOAM image and OpenFOAM.sparsebundle.
|
How did you do 'I looked again...'? With Finder? Or with 'ls -la' in Terminal?
|
Okay, this worked. I can see the file now. Yes, I looked with the Finder. I don't know why but I really can't see all the files there. I am trying to complete the post configuration now.
Thank you for your help! |
Okay, I managed to change the .profile. It looks like this now:
Code:
Kates-MacBook-Pro:~ kateeisenhower$ cat .profile After rebooting my mac and starting Terminal I got the following: Code:
-bash: /Users/kateeisenhower/openfoam-env-setup.sd: No such file or directory Also i ran the motorBike tutorial and snappyHexMesh worked fine. |
All times are GMT -4. The time now is 19:37. |