CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] Native OpenFOAM for macOS: OpenFOAM-v2112.app (install instructions and GitHub link)

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree11Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2023, 16:24
Default
  #21
New Member
 
Akthem Rehab
Join Date: Apr 2023
Posts: 6
Rep Power: 2
Akthem is on a distinguished road
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?
Akthem is offline   Reply With Quote

Old   May 4, 2023, 10:44
Default
  #22
New Member
 
Gabriel Gerlero
Join Date: Jan 2022
Posts: 14
Rep Power: 4
gerlero is on a distinguished road
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)
gerlero is offline   Reply With Quote

Old   May 5, 2023, 12:51
Default
  #23
New Member
 
Akthem Rehab
Join Date: Apr 2023
Posts: 6
Rep Power: 2
Akthem is on a distinguished road
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?
Akthem is offline   Reply With Quote

Old   May 6, 2023, 14:45
Default
  #24
New Member
 
Gabriel Gerlero
Join Date: Jan 2022
Posts: 14
Rep Power: 4
gerlero is on a distinguished road
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.
gerlero is offline   Reply With Quote

Old   May 6, 2023, 15:32
Default
  #25
New Member
 
Akthem Rehab
Join Date: Apr 2023
Posts: 6
Rep Power: 2
Akthem is on a distinguished road
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
Akthem is offline   Reply With Quote

Old   May 6, 2023, 15:39
Default
  #26
New Member
 
Gabriel Gerlero
Join Date: Jan 2022
Posts: 14
Rep Power: 4
gerlero is on a distinguished road
Is EOF-Library compatible with the OpenFOAM distribution from OpenCFD (i.e., from openfoam.com)?

Quote:
Originally Posted by Akthem View Post
/bin/sh: line 0: test: v2206: integer expression expected
************ OF version v2206 ************
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.
gerlero is offline   Reply With Quote

Old   May 6, 2023, 16:18
Default
  #27
New Member
 
Akthem Rehab
Join Date: Apr 2023
Posts: 6
Rep Power: 2
Akthem is on a distinguished road
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!
gerlero likes this.
Akthem is offline   Reply With Quote

Old   July 2, 2023, 22:18
Arrow OpenFOAM-v2306.app
  #28
New Member
 
Gabriel Gerlero
Join Date: Jan 2022
Posts: 14
Rep Power: 4
gerlero is on a distinguished road
OpenFOAM v2306 builds are now available.

Visit the repo for details.
dlahaye and Akthem like this.
gerlero is offline   Reply With Quote

Old   July 8, 2023, 04:50
Default
  #29
Member
 
Miguel Hernandez
Join Date: Feb 2021
Location: En mi casa
Posts: 56
Rep Power: 5
Miguel Hernandez is on a distinguished road
Thank you for your work!
gerlero likes this.
Miguel Hernandez is offline   Reply With Quote

Reply

Tags
apple, mac, mac os, mac os x

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:09.