OpenFOAM Mac OS Mavericks
2 Attachment(s)
Hello there, I'm trying to install OpenFOAM 2.2.2 on Mavericks. I've done everything listed in this tutorial:
https://openfoamwiki.net/index.php/I...nFOAM_Building But when i run ./Allwmake 2>&1 | tee logName.log, i have some issues. Error .log File (Image) Attachment 36291 Someone help me please. This is my log file. Thanks! Attachment 36290 |
Hi,
as the error is in CGAL interface, what is version number of CGAL library on your system? As 2.2.2 is rather old CGAL could change API in the newer versions, so you get compilation error. |
Sorry but i don't know to much. Where can i find the cgal version?. I installed cgal with macports.
|
Quote:
|
Problem not solved
Hello there, i applied a new patch. Now my problems are:
Code:
ERROR: ParaView not found in THKS! |
Hi,
You can start by posting full log-file (as the part you've posted lacks the reason for the error). Also, as the tutorial you're referencing contains lots of links to the patches, you can specify what patch did you use. |
1 Attachment(s)
Quote:
I applied a SurfaceCGALfix patch posted here (#54): http://www.cfd-online.com/Forums/ope...ac-os-x-3.html With that patch some errors disappeared. My last log file: Attachment 36341 Thks! |
Hi,
errors in your log-file: #1 Code:
g++-mp-4.6 ... -L/opt/local/lib -L/opt/local/lib -L/opt/local/lib -lboost_thread-mt -lmpfr -L/opt/local/lib -llapack -latlas -lgfortran -lblas -lCGAL -lmeshTools -ledgeMesh -ltriSurface -lsampling -lOpenFOAM -ldl -lpthread -lm -o .../OpenFOAM/OpenFOAM-2.2.2/platforms/darwinIntel64Gcc46DPOp Same thing with surfaceFind utility. #2 Code:
Undefined symbols for architecture x86_64: #3 Code:
Undefined symbols for architecture x86_64: Other parts of OpenFOAM should be usable. If you can live without those utilities and solvers, you can proceed with building LIGGGHTS. |
1 Attachment(s)
Quote:
I have some questions. #1: I builded atlas using macports. My console looks like this: Attachment 36370 But i noticed that atlas is using gcc4.9. But when i biulded OpenFOAM it's using gcc4.6. Do i have to configure atlas to work with other gcc version? #2 & #3: You said that my library is missing. I'm not an expert building things in terminal. So could you be more specific please, what i have to do?. I'll appreciate that. I'll be using LIGGGHTS (CFDEM) to simulate two-phase flow into hydrocyclone. if you think that i have problems with other solvers that matter in this case, tell me please. Here it is my log file after building atlas. Attachment 36371 I''ll be waiting for your answer. |
Hi,
Attachment 36370 was lost somehow. Any way errors caused by absent Atlas disappeared from log-file. Ether you can leave everything as it is, or you can try to check if atlas port has gcc46 variant and build it with gcc46. The only errors I was able to find in attached log file is of the following type: Code:
Undefined symbols for architecture x86_64: Code:
EXE_LIBS = \ Code:
EXE_INC = \ As I've never built/used LIGGGHTS I can't tell you what problems you can encounter with it. Maybe you'll need to add -lincompressibleTurbulenceModel to Make/options of the solver and library. |
Hi,
I'll let atlas work under defautl gcc version (not 4.6, i'll try to change it if i have problems with LIGGGHTS). These lines Quote:
|
Hi,
Quote:
So in terminal it should be something like Code:
$ cd $FOAM_APP/solvers/combustion/fireFoam |
1 Attachment(s)
|
Hi,
This time it's another library. Here's contents of Make/options from my installation: Code:
EXE_INC = \ |
Quote:
$ cd $FOAM_APP/solvers/combustion/fireFoam i opened the Make/options file with sudo nano .Make/options (or vi .Make/options) but this file is empty, it seems is a new directory. |
Quote:
Code:
EXE_INC = \ |
Hi,
Obviously your EXE_LIBS line is shorter than mine. Backup your file, copy-paste mine, try to compile. But again, you don't need fireFoam to compile LIGGGHTS. Maybe it's better to try to compile that solver instead fireFoam. |
Hi alexeym!
Quote:
i't shouldn't be this: My EXE_LIBS Code:
-lcompressibleLESModels -lcompressibleTurbulenceModel -lcompressibleTurbulenceModel -lcompressibleTurbulenceModel \ Code:
-lcompressibleRASModels \ will it make the difference? |
Hi,
You've got several -lcompressibleTurbulenceModel in your options cause you've run sed command several times. I've noticed that options content you posted is truncated. Post whole file, please. Answering your question: no it will not make any difference. Also, a) as you can see, all compressible solvers were built without any problems, b) LIGGGHTS uses incompressible turbulence models (as far as I can see by the options file in their git repository). |
Quote:
My file only has this content: Code:
EXE_INC = \ Do you think that i'll not have troubles building LIGGGHTS with these errors? #2 How can i fix this: Code:
-lcompressibleLESModels -lcompressibleTurbulenceModel -lcompressibleTurbulenceModel -lcompressibleTurbulenceModel \ |
All times are GMT -4. The time now is 15:54. |