|
[Sponsors] |
[OpenFOAM.com] Native OpenFOAM for macOS: OpenFOAM-v2112.app (install instructions and GitHub link) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 3, 2023, 17:24 |
|
#21 |
New Member
Akthem Rehab
Join Date: Apr 2023
Posts: 6
Rep Power: 3 |
Hi Gerlero,
Apologies for the late reply. I tried to compile EOF-Library from within the openFOAM terminal and command not found this time: openfoam2206:~/downloads/EOF-Library/ Akthem$ eofCompile bash: eofCompile: command not found Any other clues? |
|
May 4, 2023, 11:44 |
|
#22 |
New Member
Gabriel Gerlero
Join Date: Jan 2022
Posts: 21
Rep Power: 4 |
Not familiar at all with EOF-Library, but are you sourcing/activating that library's build tools too? (https://github.com/jvencels/EOF-Libr...l-installation)
|
|
May 5, 2023, 13:51 |
|
#23 |
New Member
Akthem Rehab
Join Date: Apr 2023
Posts: 6
Rep Power: 3 |
Well, I installed elmerFEM before installing openFOAM. Are you asking, whether I installed from within the openFOAM terminal (I did not)? Would this make a difference?
|
|
May 6, 2023, 15:45 |
|
#24 |
New Member
Gabriel Gerlero
Join Date: Jan 2022
Posts: 21
Rep Power: 4 |
I'm wondering whether you activated the EOF-Library (i.e., you ran the command ". EOF-Library/etc/bashrc", as appears in that link) before trying to run "eofCompile" and if that command ran successfully or if it gave you any errors.
|
|
May 6, 2023, 16:32 |
|
#25 |
New Member
Akthem Rehab
Join Date: Apr 2023
Posts: 6
Rep Power: 3 |
I did not run it before. I thought I had to add the following line in the .Zhsrc:
source /Users/Akthem/Downloads/EOF-Library/etc/bashrc I ran the line now and then ran eofCompile. warnings and error are returned: openfoam2206:~/Downloads/ Akthem$ eofCompile wmake /Users/Akthem/Downloads/EOF-Library/etc/../libs/coupleElmer /bin/sh: line 0: test: v2206: integer expression expected ************ OF version v2206 ************ /bin/sh: line 0: test: v2206: integer expression expected /bin/sh: line 0: test: v2206: integer expression expected /bin/sh: line 0: test: v2206: integer expression expected ************ OF version v2206 ************ /bin/sh: line 0: test: v2206: integer expression expected /bin/sh: line 0: test: v2206: integer expression expected /bin/sh: line 0: test: v2206: integer expression expected ************ OF version v2206 ************ /bin/sh: line 0: test: v2206: integer expression expected /bin/sh: line 0: test: v2206: integer expression expected ln: ./lnInclude /bin/sh: line 0: test: v2206: integer expression expected ************ OF version v2206 ************ /bin/sh: line 0: test: v2206: integer expression expected /bin/sh: line 0: test: v2206: integer expression expected Making dependency list for source file Elmer.C wmkdepend: could not open 'dynamicFvMesh.H' for source file 'Elmer.C': No such file or directory /bin/sh: line 0: test: v2206: integer expression expected ************ OF version v2206 ************ /bin/sh: line 0: test: v2206: integer expression expected /bin/sh: line 0: test: v2206: integer expression expected clang++ -std=c++14 -m64 -pthread -ftrapping-math -DOPENFOAM=2206 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-undefined-var-template -Wno-unknown-warning-option -O3 -DNoRepository -ftemplate-depth-100 -I/Volumes/OpenFOAM-v2206/src/finiteVolume/lnInclude -I/Volumes/OpenFOAM-v2206/src/meshTools/lnInclude -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX -I/opt/homebrew/Cellar/open-mpi/4.1.5/include -std=gnu++0x -DFOAM_MAJOR_VERSION=v2206 -Wno-old-style-cast -I/Volumes/OpenFOAM-v2206/src/Pstream/mpi/lnInclude -iquote. -IlnInclude -I/Volumes/OpenFOAM-v2206/src/OpenFOAM/lnInclude -I/Volumes/OpenFOAM-v2206/src/OSspecific/POSIX/lnInclude -fPIC -c Elmer.C -o Make/darwin64ClangDPInt32Opt/Elmer.o Elmer.C:39:10: fatal error: 'dynamicFvMesh.H' file not found #include "dynamicFvMesh.H" ^~~~~~~~~~~~~~~~~ 1 error generated. make: *** [Make/darwin64ClangDPInt32Opt/Elmer.o] Error 1 no elmerice /opt/homebrew/bin/gfortran -o /Users/Akthem/Downloads/EOF-Library/etc/../libs/Elmer2OpenFOAM.so -J/Users/Akthem/Downloads/EOF-Library/etc/../libs /Users/Akthem/Downloads/EOF-Library/etc/../libs/Elmer2OpenFOAM.F90 -fallow-argument-mismatch -DCONTIG= -DHAVE_EXECUTECOMMANDLINE -DUSE_ISO_C_BINDINGS -DUSE_ARPACK -O2 -g -DNDEBUG -fPIC -dynamiclib -Wl,-headerpad_max_install_names -I/Users/Akthem/elmer/install//share/elmersolver/include -L/Users/Akthem/elmer/install//lib/elmersolver -shared -lelmersolver /Users/Akthem/Downloads/EOF-Library/etc/../libs/Elmer2OpenFOAM.F90:217:19: 109 | CALL MPI_Bcast(OF_EL_overlap(:,:,s), totOFRanks*totLocalRanks, MPI_INTEGER, 0, ELMER_COMM_WORLD, ierr) | 2 ...... 217 | CALL MPI_BCAST(ElmerRanksStart, 1, MPI_INTEGER, 0, ELMER_COMM_WORLD, ierr) | 1 Warning: Rank mismatch between actual argument at (1) and actual argument at (2 (rank-1 and scalar) /Users/Akthem/Downloads/EOF-Library/etc/../libs/Elmer2OpenFOAM.F90:275:23: 253 | CALL MPI_IRECV(OFp(i,s) % OFMesh % NumberOfNodes, 1, MPI_INTEGER, & | 2 ...... 275 | CALL MPI_IRECV(OFp(i,s) % OFMesh % Nodes % x, OFp(i,s) % OFMesh % NumberOfNodes, MPI_DOUBLE, & | 1 Warning: Type mismatch between actual argument at (1) and actual argument at (2 (REAL(8)/INTEGER(4)). /Users/Akthem/Downloads/EOF-Library/etc/../libs/Elmer2OpenFOAM.F90:328:24: 310 | CALL MPI_ISEND( OFp(i,s) % nFoundCells, 1, MPI_INTEGER, & | 2 ...... 328 | CALL MPI_ISEND( OFp(i,s) % foundCellsIndx, OFp(i,s) % nFoundCells, MPI_INTEGER, & | 1 Warning: Rank mismatch between actual argument at (1) and actual argument at (2 (scalar and rank-1) /Users/Akthem/Downloads/EOF-Library/etc/../libs/Elmer2OpenFOAM.F90:365:24: 310 | CALL MPI_ISEND( OFp(i,s) % nFoundCells, 1, MPI_INTEGER, & | 2 ...... 365 | CALL MPI_ISEND( OFp(i,s) % OFVar % Values, OFp(i,s) % nFoundCells, MPI_DOUBLE, & | 1 Warning: Type mismatch between actual argument at (1) and actual argument at (2 (REAL(8)/INTEGER(4)). Undefined symbols for architecture arm64: "_mpi_allgather_", referenced from: _findoverlappingboxes_ in cc5CFyhc.o "_mpi_bcast_", referenced from: _findoverlappingboxes_ in cc5CFyhc.o _elmer2openfoamsolver_ in cc5CFyhc.o "_mpi_comm_rank_", referenced from: _elmer2openfoamsolver_ in cc5CFyhc.o "_mpi_comm_size_", referenced from: _elmer2openfoamsolver_ in cc5CFyhc.o "_mpi_irecv_", referenced from: _elmer2openfoamsolver_ in cc5CFyhc.o "_mpi_isend_", referenced from: _elmer2openfoamsolver_ in cc5CFyhc.o "_mpi_recv_", referenced from: _findoverlappingboxes_ in cc5CFyhc.o "_mpi_request_free_", referenced from: _elmer2openfoamsolver_ in cc5CFyhc.o "_mpi_send_", referenced from: _findoverlappingboxes_ in cc5CFyhc.o "_mpi_test_", referenced from: _mpi_test_sleep_ in cc5CFyhc.o _elmer2openfoamsolver_ in cc5CFyhc.o (maybe you meant: _mpi_test_sleep_) "_mpi_wtime_", referenced from: _elmer2openfoamsolver_ in cc5CFyhc.o ld: symbol(s) not found for architecture arm64 collect2: error: ld returned 1 exit status no elmerice /opt/homebrew/bin/gfortran -o /Users/Akthem/Downloads/EOF-Library/etc/../libs/OpenFOAM2Elmer.so -J/Users/Akthem/Downloads/EOF-Library/etc/../libs /Users/Akthem/Downloads/EOF-Library/etc/../libs/OpenFOAM2Elmer.F90 -fallow-argument-mismatch -DCONTIG= -DHAVE_EXECUTECOMMANDLINE -DUSE_ISO_C_BINDINGS -DUSE_ARPACK -O2 -g -DNDEBUG -fPIC -dynamiclib -Wl,-headerpad_max_install_names -I/Users/Akthem/elmer/install//share/elmersolver/include -L/Users/Akthem/elmer/install//lib/elmersolver -shared -lelmersolver /Users/Akthem/Downloads/EOF-Library/etc/../libs/OpenFOAM2Elmer.F90:237:19: 120 | CALL MPI_Bcast(OF_EL_overlap(:,:,s), totOFRanks*totLocalRanks, MPI_INTEGER, 0, ELMER_COMM_WORLD, ierr) | 2 ...... 237 | CALL MPI_BCAST(ElmerRanksStart, 1, MPI_INTEGER, 0, ELMER_COMM_WORLD, ierr) | 1 Warning: Rank mismatch between actual argument at (1) and actual argument at (2 (rank-1 and scalar) /Users/Akthem/Downloads/EOF-Library/etc/../libs/OpenFOAM2Elmer.F90:379:23: 369 | CALL MPI_ISEND(nElements, 1, MPI_INTEGER, & | 2 ...... 379 | CALL MPI_ISEND(commElementX, nElements, MPI_DOUBLE, & | 1 Warning: Type mismatch between actual argument at (1) and actual argument at (2 (REAL(8)/INTEGER(4)). /Users/Akthem/Downloads/EOF-Library/etc/../libs/OpenFOAM2Elmer.F90:411:23: 395 | CALL MPI_IRECV(OFp(i,s) % nFoundElements, 1, MPI_INTEGER, & | 2 ...... 411 | CALL MPI_IRECV(OFp(i,s) % foundElementIndx, OFp(i,s) % nFoundElements, MPI_INTEGER, & | 1 Warning: Rank mismatch between actual argument at (1) and actual argument at (2 (scalar and rank-1) /Users/Akthem/Downloads/EOF-Library/etc/../libs/OpenFOAM2Elmer.F90:449:24: 395 | CALL MPI_IRECV(OFp(i,s) % nFoundElements, 1, MPI_INTEGER, & | 2 ...... 449 | CALL MPI_IRECV( OFp(i,s) % recvValues, OFp(i,s) % nFoundElements, MPI_DOUBLE, & | 1 Warning: Type mismatch between actual argument at (1) and actual argument at (2 (REAL(8)/INTEGER(4)). Undefined symbols for architecture arm64: "_mpi_allgather_", referenced from: _findoverlappingboxes_ in cc4kliHf.o "_mpi_bcast_", referenced from: _findoverlappingboxes_ in cc4kliHf.o _openfoam2elmersolver_ in cc4kliHf.o "_mpi_comm_rank_", referenced from: _openfoam2elmersolver_ in cc4kliHf.o "_mpi_comm_size_", referenced from: _openfoam2elmersolver_ in cc4kliHf.o "_mpi_irecv_", referenced from: _openfoam2elmersolver_ in cc4kliHf.o "_mpi_isend_", referenced from: _openfoam2elmersolver_ in cc4kliHf.o "_mpi_recv_", referenced from: _findoverlappingboxes_ in cc4kliHf.o "_mpi_request_free_", referenced from: _openfoam2elmersolver_ in cc4kliHf.o "_mpi_send_", referenced from: _findoverlappingboxes_ in cc4kliHf.o "_mpi_test_", referenced from: _mpi_test_sleep_ in cc4kliHf.o _openfoam2elmersolver_ in cc4kliHf.o (maybe you meant: _mpi_test_sleep_) ld: symbol(s) not found for architecture arm64 collect2: error: ld returned 1 exit status |
|
May 6, 2023, 16:39 |
|
#26 |
New Member
Gabriel Gerlero
Join Date: Jan 2022
Posts: 21
Rep Power: 4 |
Is EOF-Library compatible with the OpenFOAM distribution from OpenCFD (i.e., from openfoam.com)?
These lines look like it's failing to parse OpenFOAM's version string. Could it be that this library requires a Foundation (openfoam.org) OpenFOAM distribution (e.g. OpenFOAM 9)? In that case, you might have to resort to Docker, as versions from that distribution can't be run natively on macOS. |
|
May 6, 2023, 17:18 |
|
#27 |
New Member
Akthem Rehab
Join Date: Apr 2023
Posts: 6
Rep Power: 3 |
That could be very well the case. I already have EOF-Library together with openFOAM and elmerFEM dockerized on mac as per https://github.com/jvencels/EOF-Library#how-to.
I was hoping I can install it without docker as I already built an environment on my macos that includes freeCAD, gmsh, openFoam, elmerFEM, and paraview. Only missing component is EOF-Library and a multi-body dynamics tool. I guess your answer concludes this attempt as not possible at the moment. Alternative would be to include all the above software in the EOF-Library docker image! Have to shift my focus to that I guess. Thank you, gerlero! |
|
July 8, 2023, 05:50 |
|
#29 |
Member
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5 |
Thank you for your work!
|
|
June 26, 2024, 21:05 |
OpenFOAM v2406 now available
|
#30 |
New Member
Gabriel Gerlero
Join Date: Jan 2022
Posts: 21
Rep Power: 4 |
OpenFOAM v2406 is now available via OpenFOAM.app.
|
|
November 19, 2024, 05:19 |
Custom Solver Installation
|
#31 |
New Member
Emil Mammadli
Join Date: Nov 2024
Posts: 2
Rep Power: 0 |
I am really struggling with custom solver compilation. Are there any guides available specifically for this installation? I do not understand the structure of openfoam files with this native app.
Thanks in advance. |
|
November 20, 2024, 19:30 |
|
#32 | |
New Member
Gabriel Gerlero
Join Date: Jan 2022
Posts: 21
Rep Power: 4 |
Quote:
There's no such guide specifically for OpenFOAM.app since the process of compiling a third-party solver should be the same as with OpenFOAM on Linux. |
||
November 21, 2024, 03:20 |
|
#33 |
New Member
Emil Mammadli
Join Date: Nov 2024
Posts: 2
Rep Power: 0 |
It is, indeed, the same process. The solver I was trying to install was faulty. Thanks!
|
|
Tags |
apple, mac, mac os, mac os x |
|
|