installing cfdof on Macos

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

funky
Posts: 8
Joined: Mon Nov 15, 2021 2:34 pm

Re: installing cfdof on Macos

Post by funky »

Access to Paraview is working now. I changed the shell from zsh to bash using

Code: Select all

chsh -s /bin/bash
and then mounted and sourced openfoam and ran the pitzdaily tutorial again and everything worked accordingly.
funky
Posts: 8
Joined: Mon Nov 15, 2021 2:34 pm

Re: installing cfdof on Macos

Post by funky »

Hello,

I still have the problem that I can't solve any simulation, independent on what tutorial or whatever I'm trying. It either ends with a Floating point exception error or once I get past this, it just says: 'simulation exited with error'.

The log. files

log.decomposePar shows the following, which is also the one after it stops:

Code: Select all

--> FOAM Warning : 
    From function dlOpen(const fileName&, const bool)
    in file POSIX.C at line 1264
    dlOpen: using fallback library name "libturbulenceModels.dylib"
--> FOAM Warning : 
    From function void *Foam::dlOpen(const Foam::fileName &, const bool)
    in file POSIX.C at line 1275
    dlopen error : dlopen(libturbulenceModels.dylib, 9): image not found
--> FOAM Warning : 
    From function bool Foam::dlLibraryTable::open(const Foam::fileName &, const bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
    could not load "libturbulenceModels.so"
Removing 0 existing processor directories


Decomposing mesh region0

Create mesh

Calculating distribution of cells
Selecting decompositionMethod scotch

Finished decomposition in 0.86 s

Calculating original mesh data

Distributing cells to processors

Distributing faces to processors

Distributing points to processors

Constructing processor meshes
Reading hexRef8 data : cellLevel
Reading hexRef8 data : pointLevel
--> FOAM Warning : 
    From function dlOpen(const fileName&, const bool)
    in file POSIX.C at line 1264
    dlOpen: using fallback library name "libturbulenceModels.dylib"
--> FOAM Warning : 
    From function void *Foam::dlOpen(const Foam::fileName &, const bool)
    in file POSIX.C at line 1275
    dlopen error : dlopen(libturbulenceModels.dylib, 9): image not found
--> FOAM Warning : 
    From function bool Foam::dlLibraryTable::open(const Foam::fileName &, const bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
    could not load "libturbulenceModels.so"

Processor 0
    Number of cells = 68341
    Number of faces shared with processor 1 = 2381
    Number of faces shared with processor 2 = 1630
    Number of faces shared with processor 3 = 772
    Number of processor patches = 3
    Number of processor faces = 4783
    Number of boundary faces = 8285
--> FOAM Warning : 
    From function dlOpen(const fileName&, const bool)
    in file POSIX.C at line 1264
    dlOpen: using fallback library name "libturbulenceModels.dylib"
--> FOAM Warning : 
    From function void *Foam::dlOpen(const Foam::fileName &, const bool)
    in file POSIX.C at line 1275
    dlopen error : dlopen(libturbulenceModels.dylib, 9): image not found
--> FOAM Warning : 
    From function bool Foam::dlLibraryTable::open(const Foam::fileName &, const bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
    could not load "libturbulenceModels.so"

Processor 1
    Number of cells = 68325
    Number of faces shared with processor 0 = 2381
    Number of faces shared with processor 3 = 396
    Number of processor patches = 2
    Number of processor faces = 2777
    Number of boundary faces = 8641
--> FOAM Warning : 
    From function dlOpen(const fileName&, const bool)
    in file POSIX.C at line 1264
    dlOpen: using fallback library name "libturbulenceModels.dylib"
--> FOAM Warning : 
    From function void *Foam::dlOpen(const Foam::fileName &, const bool)
    in file POSIX.C at line 1275
    dlopen error : dlopen(libturbulenceModels.dylib, 9): image not found
--> FOAM Warning : 
    From function bool Foam::dlLibraryTable::open(const Foam::fileName &, const bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
    could not load "libturbulenceModels.so"

Processor 2
    Number of cells = 68621
    Number of faces shared with processor 0 = 1630
    Number of faces shared with processor 3 = 2712
    Number of processor patches = 2
    Number of processor faces = 4342
    Number of boundary faces = 7949
--> FOAM Warning : 
    From function dlOpen(const fileName&, const bool)
    in file POSIX.C at line 1264
    dlOpen: using fallback library name "libturbulenceModels.dylib"
--> FOAM Warning : 
    From function void *Foam::dlOpen(const Foam::fileName &, const bool)
    in file POSIX.C at line 1275
    dlopen error : dlopen(libturbulenceModels.dylib, 9): image not found
--> FOAM Warning : 
    From function bool Foam::dlLibraryTable::open(const Foam::fileName &, const bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
    could not load "libturbulenceModels.so"

Processor 3
    Number of cells = 68043
    Number of faces shared with processor 0 = 772
    Number of faces shared with processor 1 = 396
    Number of faces shared with processor 2 = 2712
    Number of processor patches = 3
    Number of processor faces = 3880
    Number of boundary faces = 9969

Number of processor faces = 7891
Max number of cells = 68621 (0.42220027% above average 68332.5)
Max number of processor patches = 3 (20% above average 2.5)
Max number of faces between processors = 4783 (21.226714% above average 3945.5)

Time = 0

Processor 0: field transfer
--> FOAM Warning : 
    From function dlOpen(const fileName&, const bool)
    in file POSIX.C at line 1264
    dlOpen: using fallback library name "libturbulenceModels.dylib"
--> FOAM Warning : 
    From function void *Foam::dlOpen(const Foam::fileName &, const bool)
    in file POSIX.C at line 1275
    dlopen error : dlopen(libturbulenceModels.dylib, 9): image not found
--> FOAM Warning : 
    From function bool Foam::dlLibraryTable::open(const Foam::fileName &, const bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
    could not load "libturbulenceModels.so"
Processor 1: field transfer
--> FOAM Warning : 
    From function dlOpen(const fileName&, const bool)
    in file POSIX.C at line 1264
    dlOpen: using fallback library name "libturbulenceModels.dylib"
--> FOAM Warning : 
    From function void *Foam::dlOpen(const Foam::fileName &, const bool)
    in file POSIX.C at line 1275
    dlopen error : dlopen(libturbulenceModels.dylib, 9): image not found
--> FOAM Warning : 
    From function bool Foam::dlLibraryTable::open(const Foam::fileName &, const bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
    could not load "libturbulenceModels.so"
Processor 2: field transfer
--> FOAM Warning : 
    From function dlOpen(const fileName&, const bool)
    in file POSIX.C at line 1264
    dlOpen: using fallback library name "libturbulenceModels.dylib"
--> FOAM Warning : 
    From function void *Foam::dlOpen(const Foam::fileName &, const bool)
    in file POSIX.C at line 1275
    dlopen error : dlopen(libturbulenceModels.dylib, 9): image not found
--> FOAM Warning : 
    From function bool Foam::dlLibraryTable::open(const Foam::fileName &, const bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
    could not load "libturbulenceModels.so"
Processor 3: field transfer
--> FOAM Warning : 
    From function dlOpen(const fileName&, const bool)
    in file POSIX.C at line 1264
    dlOpen: using fallback library name "libturbulenceModels.dylib"
--> FOAM Warning : 
    From function void *Foam::dlOpen(const Foam::fileName &, const bool)
    in file POSIX.C at line 1275
    dlopen error : dlopen(libturbulenceModels.dylib, 9): image not found
--> FOAM Warning : 
    From function bool Foam::dlLibraryTable::open(const Foam::fileName &, const bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 106
    could not load "libturbulenceModels.so"

End
log.simpleFoam:

Code: Select all

./Allrun: line 9: mpiexec: command not found
I'd really appreciate it, if somebody could help me with this!
KAKM
Posts: 109
Joined: Tue May 04, 2021 12:17 am

Re: installing cfdof on Macos

Post by KAKM »

I think the problem is in simpleFoam rather than decomposePar, because if something breaks, the warnings are generally followed by an error, and simpleFoam threw an error rather than a warning. Those warnings suggest it's not initially finding the turbulence model library, which I would expect to throw an error if it was the thing causing your issue.

Typically command not found means
  • you mistyped a command (not likely here)
  • the system is looking in the wrong place for it
Did you source openfoam/have it in the correct shell?

If you type mpiexec --version into your terminal does it give you an error?
Can you post the freecad file that the log is from?
funky
Posts: 8
Joined: Mon Nov 15, 2021 2:34 pm

Re: installing cfdof on Macos

Post by funky »

This error:

Code: Select all

/OpenFOAM/OpenFOAM-9/etc/config.sh/mpi: line 46: mpicc: command not found
is also shown every time when checking dependencies, meshing and starting the solver.

when typing mpiexec --version in the terminal:

Code: Select all

mpiexec (OpenRTE) 4.1.2
I also reinstalled openmpi through homebrew.

The computation of the attached worked on windows, but I currently do not have access to windows.
Attachments
frisbee.FCStd
(41.15 KiB) Downloaded 47 times
Post Reply