Installation problem 0.19_pre: CFD dependency check fails

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

mikelg
Posts: 5
Joined: Wed Mar 17, 2021 8:24 pm

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by mikelg »

Hi, Following Roland's lead I ran OpenFOAM installer as Administrator from outside FreeCAD, ran FreeCAD as Administrator then installed cfMesh and HiSA successfully although, like Roland, I saw cfMesh version 1.8 required warning.

I'm working though Michael Hindley's OpenFOAM CFD tutorial and can get as far as performing an analysis (mesh, inlet, outlet and walls declared OK) but I can't get the solver to play...

Code: Select all

21:39:07  Traceback (most recent call last):
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 123, in onChanged
    self.makePartTransparent(vobj)
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 141, in makePartTransparent
    FreeCAD.getDocument(docName).getObject(obj.Name).ViewObject.Transparency = 70
<class 'AttributeError'>: 'Gui.ViewProviderLink' object has no attribute 'Transparency'
21:39:07  Traceback (most recent call last):
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 123, in onChanged
    self.makePartTransparent(vobj)
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 141, in makePartTransparent
    FreeCAD.getDocument(docName).getObject(obj.Name).ViewObject.Transparency = 70
<class 'AttributeError'>: 'Gui.ViewProviderLink' object has no attribute 'Transparency'
21:39:07  Traceback (most recent call last):
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 123, in onChanged
    self.makePartTransparent(vobj)
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 141, in makePartTransparent
    FreeCAD.getDocument(docName).getObject(obj.Name).ViewObject.Transparency = 70
<class 'AttributeError'>: 'Gui.ViewProviderLink' object has no attribute 'Transparency'
21:39:07  Traceback (most recent call last):
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 123, in onChanged
    self.makePartTransparent(vobj)
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 141, in makePartTransparent
    FreeCAD.getDocument(docName).getObject(obj.Name).ViewObject.Transparency = 70
<class 'AttributeError'>: 'Gui.ViewProviderLink' object has no attribute 'Transparency'
21:39:07  Traceback (most recent call last):
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 123, in onChanged
    self.makePartTransparent(vobj)
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 141, in makePartTransparent
    FreeCAD.getDocument(docName).getObject(obj.Name).ViewObject.Transparency = 70
<class 'AttributeError'>: 'Gui.ViewProviderLink' object has no attribute 'Transparency'
21:44:50  Writing case to folder C:\Users\MIKE~1.GRI\AppData\Local\Temp
21:44:50  Matching boundary conditions ...
21:44:50  Populating createPatchDict to update BC names
21:44:50  Successfully wrote case to folder C:\Users\MIKE~1.GRI\AppData\Local\Temp
21:44:56  Solver run command: C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012\msys64\usr\bin\bash --login -O expand_aliases -c echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; cd "/c/Users/MIKE~1.GRI/AppData/Local/Temp/case" && ./Allrun
21:44:56  C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012\msys64\usr\bin\bash --login -O expand_aliases -c echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; cd "/c/Users/MIKE~1.GRI/AppData/Local/Temp/case" && ./Allrun
21:44:56  Raw command:  ['C:/Program Files/FreeCAD_0.19/bin\\python.exe', '-u', 'C:\\Users\\Mike.Griew\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\Program Files\\ESI-OpenCFD\\OpenFOAM\\v2012\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; cd "/c/Users/MIKE~1.GRI/AppData/Local/Temp/case" && ./Allrun']
21:44:57  Sourcing OpenFOAM environment...
21:44:57  openfoam: windows support (mingw64) is runtime only
21:45:15  /*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 79e353b84e-20201222 OPENFOAM=2012
Arch   : "LSB;label=32;scalar=64"
Exec   : C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012\msys64\home\ofuser\OpenFOAM\OpenFOAM-v2012\platforms\win64MingwDPInt32Opt\bin\createPatch.exe -overwrite
Date   : Mar 19 2021
Time   : 21:45:15
Host   : NM-064-D52604
PID    : 5144
21:45:15  I/O    : uncollated
Case   : C:/Users/MIKE~1.GRI/AppData/Local/Temp/case
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

21:45:15  // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

--> FOAM Warning : 
    From void* Foam::dlLibraryTable::openLibrary(const Foam::fileName&, bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 188
    Could not load "libmomentumTransportModels.so"
Error 8676208: pc„
Create polyMesh for time = 0

21:45:15  Reading "system/createPatchDict"

21:45:15  Adding new patch inlet as patch 1 from 
{
    type            patch;
}

Adding new patch outlet as patch 2 from 
{
    type            patch;
}

Adding new patch wall as patch 3 from 
{
    type            wall;
}

Adding new patch defaultFaces as patch 4 from 
{
    type            patch;
}


21:45:15  --> FOAM Warning : 
    From const Foam::HashTable<Foam::List<int> >& Foam::polyBoundaryMesh::groupPatchIDs() const
    in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 510
    Removed patchGroup 'wall' which clashes with patch 3 of the same name.
--> FOAM Warning : 
    From Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const
    in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 896
    Cannot find any patch or group names matching "patch_1_.*"
--> FOAM Warning : 
    From Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const
    in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 896
    Cannot find any patch or group names matching "patch_2_.*"
--> FOAM Warning : 
    From Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const
    in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 896
    Cannot find any patch or group names matching "patch_3_.*"
Moving faces from patch patch_0_0 to patch 4

Doing topology modification to order faces.

21:45:15  Not synchronising points.

Removing patches with no faces in them.

Removing zero-sized patch patch_0_0 type wall at position 0
Removing patches.
Writing repatched mesh to 0

21:45:15  End

21:45:15  /*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 79e353b84e-20201222 OPENFOAM=2012
Arch   : "LSB;label=32;scalar=64"
Exec   : C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012\msys64\home\ofuser\OpenFOAM\OpenFOAM-v2012\platforms\win64MingwDPInt32Opt\bin\potentialFoam.exe -initialiseUBCs -pName p -writep
Date   : Mar 19 2021
Time   : 21:45:15
Host   : NM-064-D52604
PID    : 12860
I/O    : uncollated
Case   : C:/Users/MIKE~1.GRI/AppData/Local/Temp/case
nProcs : 1
21:45:15  trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

21:45:15  // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

--> FOAM Warning : 
    From void* Foam::dlLibraryTable::openLibrary(const Foam::fileName&, bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 188
    Could not load "libmomentumTransportModels.so"
Error 8679328:  o„
Create mesh for time = 0

21:45:15  
potentialFlow: Operating solver in PISO mode

Reading velocity field U

21:45:15  
Any thoughts on the above? Thanks for your help so far.
User avatar
oliveroxtoby
Posts: 812
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by oliveroxtoby »

Roland wrote: Fri Mar 19, 2021 9:11 am Great advice, Oliver!

To run FC19 as administrator did the trick to inslal cfMesh.

So it seems. Because, there is still some doubt. What do you think of these results here below?


Dependency check says:

Code: Select all

cfMesh-CfdOF version 1.8 required	
My bad. I need to update the binaries. But the update only affects compatibility with OpenFOAM v8 so can be safely ignored for Windows users.
User avatar
oliveroxtoby
Posts: 812
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by oliveroxtoby »

mikelg wrote: Fri Mar 19, 2021 10:00 pm I'm working though Michael Hindley's OpenFOAM CFD tutorial and can get as far as performing an analysis (mesh, inlet, outlet and walls declared OK) but I can't get the solver to play...
Could you upload your file for easier debugging, please?
User avatar
Roland
Posts: 333
Joined: Fri Aug 21, 2015 2:20 pm

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by Roland »

Dear Oliver,

I am still getting an issue. Upon running the solver, OpenFOAM gives this message:
16:41:08 --> FOAM Warning :
From void* Foam::dlLibraryTable::openLibrary(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 188
Could not load "libmomentumTransportModels.so"
Error 948576: `y

While preparing the actual run (the mesh and dividing the operations over the various cores), this error is repeated quite a number of times, displaying various Error "numbers".

The run then starts and it seems that OpenFOAM ultimately ignores the error. The simulation is completed.

What could be the meaning of this, and is this something that should be repaired one way or another?

Best regards,

Roland
User avatar
oliveroxtoby
Posts: 812
Joined: Fri Dec 23, 2016 9:43 am
Location: South Africa

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by oliveroxtoby »

Roland wrote: Sun Mar 21, 2021 4:12 pm I am still getting an issue. Upon running the solver, OpenFOAM gives this message:
16:41:08 --> FOAM Warning :
From void* Foam::dlLibraryTable::openLibrary(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 188
Could not load "libmomentumTransportModels.so"
Error 948576: `y
This can be ignored for now. It was a quick fix for compatibility with OpenFOAM v8. I'll sort it out properly when I get some time.
mikelg
Posts: 5
Joined: Wed Mar 17, 2021 8:24 pm

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by mikelg »

File attached, plus reports from attempt to perform flow analysis.

Opening this file, I get this error report (the part is not displayed semi-transparent, as per Michael Hindley's example):

Code: Select all

12:35:21  Traceback (most recent call last):
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 123, in onChanged
    self.makePartTransparent(vobj)
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 141, in makePartTransparent
    FreeCAD.getDocument(docName).getObject(obj.Name).ViewObject.Transparency = 70
<class 'AttributeError'>: 'Gui.ViewProviderLink' object has no attribute 'Transparency'
12:35:21  Traceback (most recent call last):
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 123, in onChanged
    self.makePartTransparent(vobj)
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 141, in makePartTransparent
    FreeCAD.getDocument(docName).getObject(obj.Name).ViewObject.Transparency = 70
<class 'AttributeError'>: 'Gui.ViewProviderLink' object has no attribute 'Transparency'
12:35:21  Traceback (most recent call last):
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 123, in onChanged
    self.makePartTransparent(vobj)
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 141, in makePartTransparent
    FreeCAD.getDocument(docName).getObject(obj.Name).ViewObject.Transparency = 70
<class 'AttributeError'>: 'Gui.ViewProviderLink' object has no attribute 'Transparency'
12:35:21  Traceback (most recent call last):
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 123, in onChanged
    self.makePartTransparent(vobj)
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 141, in makePartTransparent
    FreeCAD.getDocument(docName).getObject(obj.Name).ViewObject.Transparency = 70
<class 'AttributeError'>: 'Gui.ViewProviderLink' object has no attribute 'Transparency'
12:35:21  Traceback (most recent call last):
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 123, in onChanged
    self.makePartTransparent(vobj)
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 141, in makePartTransparent
    FreeCAD.getDocument(docName).getObject(obj.Name).ViewObject.Transparency = 70
<class 'AttributeError'>: 'Gui.ViewProviderLink' object has no attribute 'Transparency'

Running the solver I get this report:

Code: Select all

12:37:22  Writing case to folder C:\Users\MIKE~1.GRI\AppData\Local\Temp
12:37:22  Matching boundary conditions ...
12:37:23  Populating createPatchDict to update BC names
12:37:23  Successfully wrote case to folder C:\Users\MIKE~1.GRI\AppData\Local\Temp
12:37:28  Solver run command: C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012\msys64\usr\bin\bash --login -O expand_aliases -c echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; cd "/c/Users/MIKE~1.GRI/AppData/Local/Temp/case" && ./Allrun
12:37:28  C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012\msys64\usr\bin\bash --login -O expand_aliases -c echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; cd "/c/Users/MIKE~1.GRI/AppData/Local/Temp/case" && ./Allrun
12:37:28  Raw command:  ['C:/Program Files/FreeCAD_0.19/bin\\python.exe', '-u', 'C:\\Users\\Mike.Griew\\AppData\\Roaming\\FreeCAD\\Mod\\CfdOF\\WindowsRunWrapper.py', 'C:\\Program Files\\ESI-OpenCFD\\OpenFOAM\\v2012\\msys64\\usr\\bin\\bash', '--login', '-O', 'expand_aliases', '-c', 'echo Sourcing OpenFOAM environment...; source $HOME/OpenFOAM/OpenFOAM-v2012/etc/bashrc; export PATH=$FOAM_LIBBIN/msmpi:$FOAM_LIBBIN:$WM_THIRD_PARTY_DIR/platforms/linux64MingwDPInt32/lib:$PATH; cd "/c/Users/MIKE~1.GRI/AppData/Local/Temp/case" && ./Allrun']
12:37:32  Sourcing OpenFOAM environment...
12:37:32  openfoam: windows support (mingw64) is runtime only
12:37:58  /*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 79e353b84e-20201222 OPENFOAM=2012
Arch   : "LSB;label=32;scalar=64"
Exec   : C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012\msys64\home\ofuser\OpenFOAM\OpenFOAM-v2012\platforms\win64MingwDPInt32Opt\bin\createPatch.exe -overwrite
Date   : Mar 23 2021
Time   : 12:37:58
Host   : NM-064-D52604
PID    : 8556
12:37:58  I/O    : uncollated
Case   : C:/Users/MIKE~1.GRI/AppData/Local/Temp/case
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

12:37:58  // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

12:37:58  --> FOAM Warning : 
    From void* Foam::dlLibraryTable::openLibrary(const Foam::fileName&, bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 188
    Could not load "libmomentumTransportModels.so"
Error 7768240: °ˆv
12:37:58  Create polyMesh for time = 0

12:37:58  Reading "system/createPatchDict"

12:37:58  Adding new patch inlet as patch 1 from 
{
    type            patch;
}

Adding new patch outlet as patch 2 from 
{
    type            patch;
}

Adding new patch wall as patch 3 from 
{
    type            wall;
}

Adding new patch defaultFaces as patch 4 from 
{
    type            patch;
}


12:37:58  --> FOAM Warning : 
    From const Foam::HashTable<Foam::List<int> >& Foam::polyBoundaryMesh::groupPatchIDs() const
    in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 510
    Removed patchGroup 'wall' which clashes with patch 3 of the same name.
--> FOAM Warning : 
    From Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const
    in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 896
    Cannot find any patch or group names matching "patch_1_.*"
--> FOAM Warning : 
    From Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const
    in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 896
    Cannot find any patch or group names matching "patch_2_.*"
--> FOAM Warning : 
    From Foam::labelHashSet Foam::polyBoundaryMesh::patchSet(const Foam::UList<Foam::wordRe>&, bool, bool) const
    in file meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C at line 896
    Cannot find any patch or group names matching "patch_3_.*"
Moving faces from patch patch_0_0 to patch 4

Doing topology modification to order faces.

12:37:58  Not synchronising points.

Removing patches with no faces in them.

Removing zero-sized patch patch_0_0 type wall at position 0
Removing patches.
Writing repatched mesh to 0

12:37:58  End

12:37:58  /*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 79e353b84e-20201222 OPENFOAM=2012
Arch   : "LSB;label=32;scalar=64"
Exec   : C:\Program Files\ESI-OpenCFD\OpenFOAM\v2012\msys64\home\ofuser\OpenFOAM\OpenFOAM-v2012\platforms\win64MingwDPInt32Opt\bin\potentialFoam.exe -initialiseUBCs -pName p -writep
Date   : Mar 23 2021
Time   : 12:37:59
Host   : NM-064-D52604
PID    : 14004
I/O    : uncollated
Case   : C:/Users/MIKE~1.GRI/AppData/Local/Temp/case
nProcs : 1
12:37:59  trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

12:37:59  // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

12:37:59  --> FOAM Warning : 
    From void* Foam::dlLibraryTable::openLibrary(const Foam::fileName&, bool)
    in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 188
    Could not load "libmomentumTransportModels.so"
Error 8410880: 
Create mesh for time = 0

12:37:59  
potentialFlow: Operating solver in PISO mode

Reading velocity field U

12:37:59  
Thanks again for taking the time to look at this.
Attachments
Fusion1.FCStd
(267.54 KiB) Downloaded 82 times
thschrader
Veteran
Posts: 3129
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by thschrader »

Hi.
I have done the tutorial from Michael hindley:
https://www.youtube.com/watch?v=8A9GewANqh8

Some hints to start:
Use a laminar model
Reduce inlet mass-flow to a more realistic value
Transform mass-flow to inlet speed and use inlet velocity as boundary-condition

Update the cfdof-wb, Oliver has done some fixings in the last hours.
Fusion1_laminar.FCStd
(25.89 KiB) Downloaded 101 times
hindley_example_youtube.JPG
hindley_example_youtube.JPG (47.03 KiB) Viewed 5123 times
mikelg
Posts: 5
Joined: Wed Mar 17, 2021 8:24 pm

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by mikelg »

Many thanks, thschrader. With your hints and file for reference I now have the solver working on my geometry (after correct alignment of flow on z-axis, so inlet now flows to outlet!).

There remains a bug with transparency when opening the geometry file...

Code: Select all

20:17:58  Traceback (most recent call last):
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 123, in onChanged
    self.makePartTransparent(vobj)
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 141, in makePartTransparent
    FreeCAD.getDocument(docName).getObject(obj.Name).ViewObject.Transparency = 70
<class 'AttributeError'>: 'Gui.ViewProviderLink' object has no attribute 'Transparency'
20:17:58  Traceback (most recent call last):
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 123, in onChanged
    self.makePartTransparent(vobj)
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 141, in makePartTransparent
    FreeCAD.getDocument(docName).getObject(obj.Name).ViewObject.Transparency = 70
<class 'AttributeError'>: 'Gui.ViewProviderLink' object has no attribute 'Transparency'
20:17:58  Traceback (most recent call last):
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 123, in onChanged
    self.makePartTransparent(vobj)
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 141, in makePartTransparent
    FreeCAD.getDocument(docName).getObject(obj.Name).ViewObject.Transparency = 70
<class 'AttributeError'>: 'Gui.ViewProviderLink' object has no attribute 'Transparency'
20:17:58  Traceback (most recent call last):
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 123, in onChanged
    self.makePartTransparent(vobj)
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 141, in makePartTransparent
    FreeCAD.getDocument(docName).getObject(obj.Name).ViewObject.Transparency = 70
<class 'AttributeError'>: 'Gui.ViewProviderLink' object has no attribute 'Transparency'
20:17:58  Traceback (most recent call last):
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 123, in onChanged
    self.makePartTransparent(vobj)
  File "C:\Users\Mike.Griew\AppData\Roaming\FreeCAD\Mod\CfdOF\CfdAnalysis.py", line 141, in makePartTransparent
    FreeCAD.getDocument(docName).getObject(obj.Name).ViewObject.Transparency = 70
<class 'AttributeError'>: 'Gui.ViewProviderLink' object has no attribute 'Transparency'


... but same error report generated by other WBs (file opened in Part and Part Design to check) so this is clearly a FreeCAD issue, not exclusively cfdOF WB and I will report in appropriate forum.

Oliver - thanks also for your help: from my point of view, I think this topic can be closed.
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by Syres »

mikelg wrote: Tue Mar 23, 2021 8:30 pm
There remains a bug with transparency when opening the geometry file...
You made an Array but not a standard one but a Link Array (there was a tick box in the bottom left which is ticked by default for new users). In layman's words this isn't a 'real' array and I'm guessing when the tutorial was made this Link version didn't exist. There was a discussion about having Link ticked by default and most felt it should be when all modelling situations are taken into account.

Edit: And Oliver has fixed it in the last 13 hours so download the latest version of the CfdOF Wb and your original file opens error free.
User avatar
Roland
Posts: 333
Joined: Fri Aug 21, 2015 2:20 pm

Re: Installation problem 0.19_pre: CFD dependency check fails

Post by Roland »

oliveroxtoby wrote: Mon Mar 22, 2021 7:14 pm
Roland wrote: Sun Mar 21, 2021 4:12 pm I am still getting an issue. Upon running the solver, OpenFOAM gives this message:
16:41:08 --> FOAM Warning :
From void* Foam::dlLibraryTable::openLibrary(const Foam::fileName&, bool)
in file db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C at line 188
Could not load "libmomentumTransportModels.so"
Error 948576: `y
This can be ignored for now. It was a quick fix for compatibility with OpenFOAM v8. I'll sort it out properly when I get some time.
Hi Oliver,

Perhaps I found the cause of this error. Upon inspection of controlDict, I saw this code at file end:
libs
(
// Needed for availability of porous baffle boundary in potentialFoam
"libturbulenceModels.so"
"libmomentumTransportModels.so"
);
I'm not sure what this means. Perhaps a reminder for you as a coder of a task to do? Or a typo?

Anyway, I just reported it here for in case that it could be of help.

Best regards,

Roland
Post Reply