Hi,
In the first line you have decided to write sd extension instead of sh. And as you also decided to add mount & source code directly to your .profile, you can comment the first line. Quote:
|
Thank you, everything is working now!
|
Can anyone indicate who contributed to the original patch files. I just want to be sure that you are referenced in the GitHub project here:
https://github.com/ajmas/OpenFOAM-2.3.x |
Incompatible mpicxx when linking library
I am trying to compile a turbulence model in OpenFoam 2.3.x on a Mac v10.10
I run ` Code:
wmake libso` and get the following readout: Code:
SOURCE=gammaReThetatSST/gammaReThetatSST.C ; mpicxx -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/oscarwilsby/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/transportModels -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels/incompressible/RAS/lnInclude -IlnInclude -I. -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/gammaReThetatSST.o I have already tried ` Code:
brew update Code:
brew unlink open-mpi Code:
brew install open-mpi Code:
brew unlink open-mpi Code:
wmake libso Code:
/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/lduInterface.H:100:26: note: hidden overloaded virtual function |
@Jack001 Where are you getting the source from, to make it easier to compare note? - Thanks
|
@ajmas Thank you for your reply. I assume you mean the source for the turbulence model. It can be found here: https://github.com/langfeldt/gammaReThetatSST
|
Hi,
@Jack001 Quote:
Quote:
Code:
volScalarField magVort = sqrt(scalar(2))*mag(skew(fvc::grad(U_))); Code:
volScalarField magVort(sqrt(scalar(2))*mag(skew(fvc::grad(U_)))); |
Hi,
@alexeym Wow! You were right, the make seems to be working now albeit with a few warnings. I will try later tonight to see if the linked library works. But one question remains- why was assignment in the original code? Would it work on other systems the way it was originally written? I only ask because the code is obviously open source and many people have used it without those changes. Anyway - aside - I feel like I really need to learn c++ but diving into this source code places me in very deep water - i only have a basic understanding of c++ I should probably take the time to learn it though. What should I focus on learning in terms of c++ so that I can better understand OpenFoam source? (I am currently reading the OF manual) I wish to thank you for your help- people like you in this community are a huge help to beginners like myself and I am immensely grateful for your time. Hopefully talk soon if I have more questions! |
Hi,
Quote:
Quote:
|
@alexeym
Seems like I wasn't quite over the hurdle: After running Code:
wmake libso Code:
'/Users/ow222/OpenFOAM/ow222-2.3.x/platforms/darwinIntel64GccDPOpt/lib/libGammaReThetatSST.dylib' is up to date. Code:
simpleFoam Code:
--> FOAM FATAL ERROR: Code:
wmake libso Edit: I tried placing the source code for the turbulence model in the directory OpenFOAM-2.3.x/src/turbulenceModels/incompresssible/RAS (where all the other turbulence models are located) and modifying the Make/files and to include the new source code. I then run wmake libso in that directory but I now get this error: /Users/ow222/OpenFOAM/OpenFOAM-2.3.x/wmake/Makefile:152: *** multiple target patterns. Stop. |
Hi,
It is not enough just to compile library, you need to load it. See for example $FOAM_TUTORIALS/incompressible/pimpleFoam/TJunctionFan/system/controlDict. In your case it should be something like Code:
libs And this time the problem really has nothing to do with OS X patch. |
Hi,
@alexeym Yes I do have exactly that at the end of my system/controlDict which is why I'm confused. Edit: I was in the wrong OpenFoam directory. Now it seems to run at least but I get this: Code:
Selecting incompressible transport model Newtonian |
Hi,
Can you provide your case? Right now I can only see that it is sigSegv, i.e. somebody tries to corrupt memory. It is hard to tell where exactly it is happening and cause of it. You can start new thread about gammaReThetatSST, as a) our discussion is not about OS X patch, b) somebody experienced in gammaReThetatSST can answer your question. |
Hi
@alexeym I started a new thread where I refer to the place you can get the case and everything else. Find this new thread at http://www.cfd-online.com/Forums/ope...tml#post551787 Thank you for your help. |
Hi
@alexeym I am facing the same problem as KateEisenhower some time ago. Everytime I try to run SHM the quoted error occurs! In comparison to Kate, I use the OF Version 2.3.0 on Mac OS X 10.9.5, so I guess I need a different patch to fix this "Scotch problem"? Quote:
|
Hi,
@arnolnic Unfortunately your post contains too many unknowns. See post #177 for a list of standard questions. I even can not reproduce the error as I do not have neither OS X 10.9.5, nor OpenFOAM 2.3.0 installed. |
First of all thanks for your quick reply alexeym!
Second you are absolutely right, I should have provided some Information in the first place - better late than never: Code:
sw_vers: When I try to run the snappyHexMesh tool (e.g. execute on the iglooWithFridges tutorial case), the following error occurs, which is the exact same error message @KateEisenhower stumbled on in post #175 Code:
dyld: Symbol not found: __SCOTCHbgraphbipartststratab |
Hi,
Yes, it is possible that I have updated patch for version 2.3.1 and did not for version 2.3.0. So yes, maybe you need the patch that does not exist yet. I will check and post an update during next several days. |
Thanks for your great effort, I really appreciate it!
|
Hi,
I have checked 2.3.0 patch and you have two choices:
Also you can reference post 179, for compilation instructions, just change 2.3.1 to 2.3.0 in installation path and use [1] as patch download URL. 1. https://raw.githubusercontent.com/mr...1-scotch.patch |
I chose your second suggestion and added -lscotch to the Options' code myself - it worked perfectly fine!
What can I say, once again thank you very much for taking your time and helping :) |
I have been trying to install OpenFOAM on Mac OS X 10.10.4 following the steps at https://openfoamwiki.net/index.php/I...OpenFOAM_2.3.x. Everything goes smoothly until I enter
sudo port select --set db db48 I get Selecting 'db48' for 'db' failed: The configuration file '/opt/local/etc/select/db/base' could not be opened. When I enter ls /opt/local/etc/select/db/ it just lists db48 When I type 'port select --summary' I get Name Selected Options ==== ======== ======= db none db48 none gcc mp-gcc48 mp-gcc48 mp-gcc49 none llvm mp-llvm-3.5 mp-llvm-3.5 none mpi openmpi-gcc48-fortran openmpi-gcc48-fortran openmpi-mp-fortran none python python27 python26-apple python27 python27-apple none python2 none python26-apple python27 python27-apple none (sorry I don't know how to do the nice formatting.) How do I fix my files and get db48 selected? What does a healthy /opt/local/etc/select/db/base have in its contents? I can just try constructing the file and hope that its being missing is the only problem. [ --- Moderator merge --- ] I'm trying to install OpenFOAM on Mac OS X 10.10.4. I followed the instructions step by step and got as far as Quote:
Quote:
Quote:
Quote:
|
hello, my advice, if you wanna quick get up and running, i would recommend using parallel to run ubuntu on mac, then install open foam, very easy way to go i reckon....goodluck having fun with open foam
|
problem with openmpi-gcc48
I'm trying to get OpenFOAM to work on my mac, but one thing is holding the process up. openmpi will not install, as my c compiler isn't working.
When i do the command Quote:
I've tried installing openmpi, but something is obviously wrong with the compiler. I'm running 10.10.4, with xcode6.4, and command line tools installed. Any help would be appreciated! EDIT: I deleted macports, and started again. Now everything works, except db48. I'm at the same stage as #222, in my '/opt/local/etc/select/db/' I just have db, and no 'base' file. |
Hello, I am having the same issue just mention few post above.
I am not able to fix: db ---> db48 anyhelp is welcome. regards, Andres ------------ Paul Fontana, did you were able to fix it? |
No. I gave up and installed with Homebrew instead. I did get that to work using the instructions at https://github.com/mrklein/openfoam-...20&%20Homebrew, but I still had some trouble and had to increase my maxfiles and maxproc settings, and there were a couple of other minor issues. It's working now, though.
|
All times are GMT -4. The time now is 02:57. |