|
[Sponsors] |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 1, 2015, 08:39 |
|
#201 | |
Senior Member
|
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:
|
||
April 10, 2015, 08:08 |
|
#202 |
Senior Member
Join Date: Mar 2015
Posts: 250
Rep Power: 12 |
Thank you, everything is working now!
|
|
April 20, 2015, 10:04 |
|
#203 |
New Member
Andre Mas
Join Date: Jan 2015
Location: Montreal, Canada
Posts: 18
Rep Power: 11 |
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 |
|
June 22, 2015, 10:54 |
Incompatible mpicxx when linking library
|
#204 |
Member
Jack
Join Date: May 2015
Posts: 98
Rep Power: 11 |
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 dyld: Library not loaded: /usr/local/Cellar/open-mpi/1.8.4/lib/libopen-pal.6.dylib Referenced from: /usr/local/bin/mpicxx Reason: Incompatible library version: mpicxx requires version 9.0.0 or later, but libopen-pal.6.dylib provides version 8.0.0 /bin/sh: line 1: 50563 Trace/BPT trap: 5 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/ow222/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 make: *** [Make/darwinIntel64GccDPOpt/gammaReThetatSST.o] Error 133 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 'Foam::lduInterface::initInternalFieldTransfer' declared here: type mismatch at 2nd parameter ('const labelUList &' (aka 'const UList<label> &') vs 'labelUList &' (aka 'UList<label> &')) virtual void initInternalFieldTransfer ^ gammaReThetatSST/gammaReThetatSST.C:240:24: error: conversion from 'tmp<GeometricField<double, fvPatchField, Foam::volMesh> >' to 'volScalarField' (aka 'GeometricField<scalar, fvPatchField, Foam::volMesh>') is ambiguous volScalarField magVort = sqrt(scalar(2))*mag(skew(fvc::grad(U_))); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/tmp.H:124:16: note: candidate function inline operator const T&() const; ^ /Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/GeometricField.H:359:9: note: candidate constructor GeometricField ^ gammaReThetatSST/gammaReThetatSST.C:260:20: error: conversion from 'tmp<GeometricField<typename scalarProduct<SymmTensor<double>, Tensor<double> >::type, fvPatchField, Foam::volMesh> >' to 'volScalarField' (aka 'GeometricField<scalar, fvPatchField, Foam::volMesh>') is ambiguous volScalarField U2gradU = (sqr(U_)&&(fvc::grad(U_))); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/tmp.H:124:16: note: candidate function inline operator const T&() const; ^ /Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/GeometricField.H:359:9: note: candidate constructor GeometricField ^ gammaReThetatSST/gammaReThetatSST.C:363:20: error: conversion from 'tmp<GeometricField<double, fvPatchField, Foam::volMesh> >' to 'volScalarField' (aka 'GeometricField<scalar, fvPatchField, Foam::volMesh>') is ambiguous volScalarField CDkOmegaPlus = max ^ ~~~ /Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/tmp.H:124:16: note: candidate function inline operator const T&() const; ^ /Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/GeometricField.H:359:9: note: candidate constructor GeometricField ^ gammaReThetatSST/gammaReThetatSST.C:393:20: error: conversion from 'tmp<GeometricField<double, fvPatchField, Foam::volMesh> >' to 'volScalarField' (aka 'GeometricField<scalar, fvPatchField, Foam::volMesh>') is ambiguous volScalarField arg2 = min ^ ~~~ /Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/tmp.H:124:16: note: candidate function inline operator const T&() const; ^ /Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/GeometricField.H:359:9: note: candidate constructor GeometricField ^ gammaReThetatSST/gammaReThetatSST.C:858:20: error: conversion from 'tmp<GeometricField<scalar, fvPatchField, Foam::volMesh> >' to 'volScalarField' (aka 'GeometricField<scalar, fvPatchField, Foam::volMesh>') is ambiguous volScalarField S2 = magSqr(symm(fvc::grad(U_))); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/tmp.H:124:16: note: candidate function inline operator const T&() const; ^ /Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/GeometricField.H:359:9: note: candidate constructor GeometricField ^ gammaReThetatSST/gammaReThetatSST.C:864:20: error: conversion from 'tmp<GeometricField<scalar, fvPatchField, Foam::volMesh> >' to 'volScalarField' (aka 'GeometricField<scalar, fvPatchField, Foam::volMesh>') is ambiguous volScalarField CDkOmega = ^ /Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/tmp.H:124:16: note: candidate function inline operator const T&() const; ^ /Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/GeometricField.H:359:9: note: candidate constructor GeometricField ^ gammaReThetatSST/gammaReThetatSST.C:895:20: error: conversion from 'tmp<GeometricField<double, fvPatchField, Foam::volMesh> >' to 'volScalarField' (aka 'GeometricField<scalar, fvPatchField, Foam::volMesh>') is ambiguous volScalarField gammaEff = max ^ ~~~ /Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/tmp.H:124:16: note: candidate function inline operator const T&() const; ^ /Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/GeometricField.H:359:9: note: candidate constructor GeometricField ^ |
|
June 22, 2015, 11:47 |
|
#205 |
New Member
Andre Mas
Join Date: Jan 2015
Location: Montreal, Canada
Posts: 18
Rep Power: 11 |
@Jack001 Where are you getting the source from, to make it easier to compare note? - Thanks
|
|
June 22, 2015, 11:48 |
|
#206 |
Member
Jack
Join Date: May 2015
Posts: 98
Rep Power: 11 |
@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
|
|
June 22, 2015, 12:03 |
|
#207 | ||
Senior Member
|
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_)))); |
|||
June 22, 2015, 12:25 |
|
#208 |
Member
Jack
Join Date: May 2015
Posts: 98
Rep Power: 11 |
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! |
|
June 22, 2015, 13:03 |
|
#209 | ||
Senior Member
|
Hi,
Quote:
Quote:
|
|||
June 23, 2015, 11:58 |
|
#210 |
Member
Jack
Join Date: May 2015
Posts: 98
Rep Power: 11 |
@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: Unknown RASModel type gammaReThetatSST Valid RASModel types: 18 ( LRR LamBremhorstKE LaunderGibsonRSTM LaunderSharmaKE LienCubicKE LienCubicKELowRe LienLeschzinerLowRe NonlinearKEShih RNGkEpsilon SpalartAllmaras kEpsilon kOmega kOmegaSST kkLOmega laminar qZeta realizableKE v2f ) From function RASModel::New(const volVectorField&, const surfaceScalarField&, transportModel&, const word&) in file RASModel/RASModel.C at line 140. FOAM exiting 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. |
|
June 23, 2015, 12:37 |
|
#211 |
Senior Member
|
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 ( "libGammaReThetatSST.dylib" ); And this time the problem really has nothing to do with OS X patch. |
|
June 23, 2015, 12:45 |
|
#212 |
Member
Jack
Join Date: May 2015
Posts: 98
Rep Power: 11 |
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 Selecting RAS turbulence model gammaReThetatSST #0 Foam::error::printStack(Foam::Ostream&)An admin user name and password is required to enter Developer Mode. Admin user name (ow222): ow222 Password: in "libOpenFOAM.dylib" #1 0x0 in "/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/platforms/darwinIntel64GccDPOpt/bin/simpleFoam" Segmentation fault: 11 |
|
June 23, 2015, 16:02 |
|
#213 |
Senior Member
|
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. |
|
June 23, 2015, 18:14 |
|
#214 |
Member
Jack
Join Date: May 2015
Posts: 98
Rep Power: 11 |
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. |
|
July 27, 2015, 10:46 |
|
#215 | |
New Member
Join Date: Apr 2015
Posts: 9
Rep Power: 11 |
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:
|
||
July 28, 2015, 13:12 |
|
#217 |
New Member
Join Date: Apr 2015
Posts: 9
Rep Power: 11 |
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: ProductName: Mac OS X ProductVersion: 10.9.5 BuildVersion: 13F1096 gcc --version: Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) Target: x86_64-apple-darwin13.4.0 Thread model: posix clang --version: Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) Target: x86_64-apple-darwin13.4.0 Thread model: posix 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 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 |
|
July 28, 2015, 18:47 |
|
#218 |
Senior Member
|
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. |
|
July 29, 2015, 06:19 |
|
#219 |
New Member
Join Date: Apr 2015
Posts: 9
Rep Power: 11 |
Thanks for your great effort, I really appreciate it!
|
|
July 29, 2015, 06:53 |
|
#220 |
Senior Member
|
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 |
|
|
|
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 |