|
[Sponsors] |
January 2, 2015, 04:53 |
OpenFOAM Mac OS Mavericks
|
#1 |
New Member
Julian Ruiz
Join Date: Jan 2015
Posts: 13
Rep Power: 11 |
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) Error.jpg Someone help me please. This is my log file. Thanks! Julian.log.zip |
|
January 2, 2015, 09:53 |
|
#2 |
Senior Member
|
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. |
|
January 2, 2015, 13:37 |
|
#3 |
New Member
Julian Ruiz
Join Date: Jan 2015
Posts: 13
Rep Power: 11 |
Sorry but i don't know to much. Where can i find the cgal version?. I installed cgal with macports.
|
|
January 2, 2015, 14:01 |
|
#4 |
New Member
Julian Ruiz
Join Date: Jan 2015
Posts: 13
Rep Power: 11 |
I found this: cgal seems to have been updated (port version: 4.5, new version: 4.5.1)
Last edited by JulianRuiz; January 3, 2015 at 01:40. Reason: message quote mistake |
|
January 5, 2015, 01:27 |
Problem not solved
|
#5 |
New Member
Julian Ruiz
Join Date: Jan 2015
Posts: 13
Rep Power: 11 |
Hello there, i applied a new patch. Now my problems are:
Code:
ERROR: ParaView not found in make[2]: *** [/Users/Julian/OpenFOAM/OpenFOAM-2.2.2/platforms/darwinIntel64Gcc46DPOpt/bin/surfaceFeatureExtract] Error 1 make[1]: *** [surfaceFeatureExtract] Error 2 make[1]: Target `application' not remade because of errors. make: *** [surface] Error 2 make: Target `application' not remade because of errors. make[2]: *** [/Users/Julian/OpenFOAM/OpenFOAM-2.2.2/platforms/darwinIntel64Gcc46DPOpt/bin/fireFoam] Error 1 make[1]: *** [fireFoam] Error 2 make[1]: Target `application' not remade because of errors. make: *** [combustion] Error 2 make[2]: *** [/Users/Julian/OpenFOAM/OpenFOAM-2.2.2/platforms/darwinIntel64Gcc46DPOpt/bin/SRFSimpleFoam] Error 1 make: Target `application' not remade because of errors. THKS! |
|
January 5, 2015, 07:33 |
|
#6 |
Senior Member
|
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. |
|
January 5, 2015, 10:05 |
|
#7 | |
New Member
Julian Ruiz
Join Date: Jan 2015
Posts: 13
Rep Power: 11 |
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: Julian.log.zip Thks! |
||
January 5, 2015, 13:08 |
|
#8 |
Senior Member
|
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 t/bin/surfaceFeatureExtract ld: library not found for -latlas collect2: ld returned 1 exit status Same thing with surfaceFind utility. #2 Code:
Undefined symbols for architecture x86_64: "Foam::compressible::turbulenceModel::New(Foam::GeometricField<double, Foam::fvPatchField, Foam::v olMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const& , Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::fluidThermo con st&, Foam::word const&)", referenced from: _main in fireFoam.o "Foam::compressible::turbulenceModel::typeName", referenced from: _main in fireFoam.o ... #3 Code:
Undefined symbols for architecture x86_64: "Foam::incompressible::turbulenceModel::typeName", referenced from: _main in SRFSimpleFoam.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status Other parts of OpenFOAM should be usable. If you can live without those utilities and solvers, you can proceed with building LIGGGHTS. |
|
January 6, 2015, 12:44 |
|
#9 | |
New Member
Julian Ruiz
Join Date: Jan 2015
Posts: 13
Rep Power: 11 |
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. Julian.log.zip I''ll be waiting for your answer. |
||
January 6, 2015, 13:08 |
|
#10 |
Senior Member
|
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: "Foam::compressible::turbulenceModel::New(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::fluidThermo const&, Foam::word const&)", referenced from: _main in fireFoam.o "Foam::compressible::turbulenceModel::typeName", referenced from: _main in fireFoam.o ... Code:
EXE_LIBS = \ ... -lcompressibleRASModels \ -lcompressibleLESModels \ ... -lODE Code:
EXE_INC = \ ... EXE_LIBS = \ ... -lcompressibleTurbulenceModel \ -lcompressibleRASModels \ -lcompressibleLESModels \ ... -lODE 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. |
|
January 6, 2015, 14:13 |
|
#11 | |
New Member
Julian Ruiz
Join Date: Jan 2015
Posts: 13
Rep Power: 11 |
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:
|
||
January 6, 2015, 15:27 |
|
#12 | |
Senior Member
|
Hi,
Quote:
So in terminal it should be something like Code:
$ cd $FOAM_APP/solvers/combustion/fireFoam $ sed -i~ 's/-lcompressibleLESModels/& -lcompressibleTurbulenceModel/g' Make/options $ wmake |
||
January 6, 2015, 15:47 |
|
#13 |
New Member
Julian Ruiz
Join Date: Jan 2015
Posts: 13
Rep Power: 11 |
|
|
January 6, 2015, 15:58 |
|
#14 |
Senior Member
|
Hi,
This time it's another library. Here's contents of Make/options from my installation: Code:
EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/fvOptions/lnInclude \ -I${LIB_SRC}/meshTools/lnInclude \ -I${LIB_SRC}/sampling/lnInclude \ -I$(LIB_SRC)/turbulenceModels/compressible/turbulenceModel \ -I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solid/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidChemistryModel/lnInclude \ -I$(LIB_SRC)/combustionModels/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/solidProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/solidMixtureProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/liquidProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/liquidMixtureProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/radiationModels/lnInclude \ -I$(LIB_SRC)/combustionModels/lnInclude \ -I$(LIB_SRC)/regionModels/regionModel/lnInclude \ -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \ -I$(LIB_SRC)/regionModels/pyrolysisModels/lnInclude \ -I$(LIB_SRC)/lagrangian/basic/lnInclude \ -I$(LIB_SRC)/lagrangian/intermediate/lnInclude \ -I$(LIB_SRC)/ODE/lnInclude EXE_LIBS = \ -lfiniteVolume \ -lfvOptions \ -lmeshTools \ -lsampling \ -lcompressibleRASModels \ -lcompressibleLESModels \ -lcompressibleTurbulenceModel \ -lspecie \ -lfluidThermophysicalModels \ -lsolidProperties \ -lsolidMixtureProperties \ -lthermophysicalFunctions \ -lreactionThermophysicalModels \ -lSLGThermo \ -lchemistryModel \ -lsolidChemistryModel \ -lcombustionModels \ -lregionModels \ -lradiationModels \ -lsurfaceFilmModels \ -lpyrolysisModels \ -lregionCoupling \ -llagrangianIntermediate \ -llagrangian \ -lODE |
|
January 6, 2015, 16:23 |
|
#15 | |
New Member
Julian Ruiz
Join Date: Jan 2015
Posts: 13
Rep Power: 11 |
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. |
||
January 6, 2015, 23:02 |
|
#16 | |
New Member
Julian Ruiz
Join Date: Jan 2015
Posts: 13
Rep Power: 11 |
Quote:
Code:
EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/fvOptions/lnInclude \ -I${LIB_SRC}/meshTools/lnInclude \ -I${LIB_SRC}/sampling/lnInclude \ -I$(LIB_SRC)/turbulenceModels/compressible/turbulenceModel \ -I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solid/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidChemistryModel/lnInclude \ -I$(LIB_SRC)/combustionModels/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/solidProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/solidMixtureProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/liquidProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/liquidMixtureProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/radiationModels/lnInclude \ -I$(LIB_SRC)/combustionModels/lnInclude \ -I$(LIB_SRC)/regionModels/regionModel/lnInclude \ -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \ -I$(LIB_SRC)/regionModels/pyrolysisModels/lnInclude \ -I$(LIB_SRC)/lagrangian/basic/lnInclude \ -I$(LIB_SRC)/lagrangian/intermediate/lnInclude \ -I$(LIB_SRC)/ODE/lnInclude EXE_LIBS = \ -lfiniteVolume \ -lfvOptions \ -lmeshTools \ -lsampling \ -lcompressibleRASModels \ -lcompressibleLESModels -lcompressibleTurbulenceModel -lcompressibleTurbulenceModel -lcompressibleTurbulenceModel \ -lspecie \ -lfluidThermophysicalModels \ -lsolidProperties \ -lsolidMixtureProperties \ -lthermophysicalFunctions \ -lreactionThermophysicalModels \ -lSLGThermo \ -lchemistryModel \ -lsolidChemistryModel \ -lcombustionModels \ "options" 55L, 2308C |
||
January 7, 2015, 03:10 |
|
#17 |
Senior Member
|
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. |
|
January 7, 2015, 07:07 |
|
#18 | |
New Member
Julian Ruiz
Join Date: Jan 2015
Posts: 13
Rep Power: 11 |
Hi alexeym!
Quote:
i't shouldn't be this: My EXE_LIBS Code:
-lcompressibleLESModels -lcompressibleTurbulenceModel -lcompressibleTurbulenceModel -lcompressibleTurbulenceModel \ Code:
-lcompressibleRASModels \ -lcompressibleLESModels \ -lcompressibleTurbulenceModel \ will it make the difference? Last edited by JulianRuiz; January 7, 2015 at 07:16. Reason: Mistake EXE_LIBS |
||
January 7, 2015, 08:37 |
|
#19 |
Senior Member
|
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). |
|
January 7, 2015, 11:26 |
|
#20 | |
New Member
Julian Ruiz
Join Date: Jan 2015
Posts: 13
Rep Power: 11 |
Quote:
My file only has this content: Code:
EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/fvOptions/lnInclude \ -I${LIB_SRC}/meshTools/lnInclude \ -I${LIB_SRC}/sampling/lnInclude \ -I$(LIB_SRC)/turbulenceModels/compressible/turbulenceModel \ -I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solid/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/chemistryModel/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/solidChemistryModel/lnInclude \ -I$(LIB_SRC)/combustionModels/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/solidProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/solidMixtureProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/liquidProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/properties/liquidMixtureProperties/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/radiationModels/lnInclude \ -I$(LIB_SRC)/combustionModels/lnInclude \ -I$(LIB_SRC)/regionModels/regionModel/lnInclude \ -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \ -I$(LIB_SRC)/regionModels/pyrolysisModels/lnInclude \ -I$(LIB_SRC)/lagrangian/basic/lnInclude \ -I$(LIB_SRC)/lagrangian/intermediate/lnInclude \ -I$(LIB_SRC)/ODE/lnInclude EXE_LIBS = \ -lfiniteVolume \ -lfvOptions \ -lmeshTools \ -lsampling \ -lcompressibleRASModels \ -lcompressibleLESModels -lcompressibleTurbulenceModel -lcompressibleTurbulenceModel -lcompressibleTurbulenceModel \ -lspecie \ -lfluidThermophysicalModels \ -lsolidProperties \ -lsolidMixtureProperties \ -lthermophysicalFunctions \ -lreactionThermophysicalModels \ -lSLGThermo \ -lchemistryModel \ -lsolidChemistryModel \ -lcombustionModels \ "options" 55L, 2308C 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 \ |
||
Tags |
error, mac, mavericks, openfoam 2.2.2, problems |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Started with OpenFOAM | wyldckat | OpenFOAM | 26 | June 21, 2024 07:54 |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 06:29 |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 09:51 |
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin | CFDFoundation | OpenFOAM Announcements from Other Sources | 0 | January 4, 2017 07:15 |
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 | cfd.direct | OpenFOAM Announcements from Other Sources | 2 | August 31, 2015 14:36 |