Before getting to FreeCAD, I would like to say I have installed OpenFOAM-v2012 and OpenFOAM v8 in their respective install folders and I can access both environments through the terminal with no issues. This is all on Ubuntu 20.04 LTS.
I installed FreeCAD 0.19 from the Ubuntu Software app, The store lists it as a developer build so I am not sure if this adds to the problem or not.
The details of the install are as follows:
OS: Ubuntu Core 20 (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Unknown
Branch: releases/FreeCAD-0-19
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.5
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.0
Locale: English/United States (en_US)
I followed the install instructions for CfdOF listed on the Git page by jaheyns at https://github.com/jaheyns/CfdOF.
I first installed Plot and then CfdOF. Paraview is also installed(done with OpenFOAM).
I go to the preferences section of FreeCAD and under CfdOF I try to list my install directory for openfoam8 (I work better with the OpenFOAM foundation version, I know it's weird). This directory would be /opt/openfoam8. However, when selecting the browse function to go to this directory, FreeCAD does not show any folders inside the opt directory. So I tried to manually just type /opt/openfoam8 in the text field and thought would work. No it does not.
When I run the dependency checker FreeCAD says:
Code: Select all
Checking dependencies...
Could not find OpenFOAM installation: The directory /opt/openfoam8 is not a recognised OpenFOAM installation
gmsh not found (optional)
- Issue 1: openfoam8 is in the opt directory So I don't know why it gives me that error..
- Issue 2: gmsh is installed but for some reason does not detect it.
- Issue 3: I try to install cfMesh using the preferences/CfdOF button, I get this error (same applies for HiSA
Code: Select all
22:36:46 Traceback (most recent call last):
22:36:46 File "/home/jitish/snap/freecad/22/.FreeCAD/Mod/CfdOF/CfdPreferencePage.py", line 271, in downloadInstallCfMesh
22:36:46 runtime = self.testGetRuntime(False)
22:36:46 File "/home/jitish/snap/freecad/22/.FreeCAD/Mod/CfdOF/CfdPreferencePage.py", line 171, in testGetRuntime
22:36:46 runtime = CfdTools.getFoamRuntime()
22:36:46 File "/home/jitish/snap/freecad/22/.FreeCAD/Mod/CfdOF/CfdTools.py", line 419, in getFoamRuntime
22:36:46 raise IOError("The directory {} is not a recognised OpenFOAM installation".format(installation_path))
22:36:46 OSError: The directory /opt/openfoam8 is not a recognised OpenFOAM installation
Code: Select all
22:52:08 Traceback (most recent call last):
22:52:08 File "/home/jitish/snap/freecad/22/.FreeCAD/Mod/CfdOF/CfdPreferencePage.py", line 292, in downloadInstallHisa
22:52:08 runtime = self.testGetRuntime(False)
22:52:08 File "/home/jitish/snap/freecad/22/.FreeCAD/Mod/CfdOF/CfdPreferencePage.py", line 171, in testGetRuntime
22:52:08 runtime = CfdTools.getFoamRuntime()
22:52:08 File "/home/jitish/snap/freecad/22/.FreeCAD/Mod/CfdOF/CfdTools.py", line 419, in getFoamRuntime
22:52:08 raise IOError("The directory {} is not a recognised OpenFOAM installation".format(installation_path))
22:52:08 OSError: The directory /opt/openfoam8 is not a recognised OpenFOAM installation
Code: Select all
22:38:20 Populating mesh dictionaries in folder /tmp/meshCase
22:38:20 Traceback (most recent call last):
22:38:20 File "/home/jitish/snap/freecad/22/.FreeCAD/Mod/CfdOF/_TaskPanelCfdMesh.py", line 212, in writeMesh
22:38:20 FreeCADGui.doCommand("cart_mesh.writeMeshCase()")
22:38:20 File "<string>", line 1, in <module>
22:38:20 File "/home/jitish/snap/freecad/22/.FreeCAD/Mod/CfdOF/CfdMeshTools.py", line 699, in writeMeshCase
22:38:20 'FoamRuntime': CfdTools.getFoamRuntime(),
22:38:20 File "/home/jitish/snap/freecad/22/.FreeCAD/Mod/CfdOF/CfdTools.py", line 419, in getFoamRuntime
22:38:20 raise IOError("The directory {} is not a recognised OpenFOAM installation".format(installation_path))
22:38:20 OSError: The directory /opt/openfoam8 is not a recognised OpenFOAM installation
https://forum.freecadweb.org/viewtopic.php?t=30718,
https://forum.freecadweb.org/viewtopic. ... 1&p=451780, and others.
- Issue 4: When starting up FreeCAD, I get the error below (not sure if this is what is causing all the other errors)
Code: Select all
22:54:23 /home/jitish/snap/freecad/22/.FreeCAD/Mod/Plot/freecad/plot/init_gui.py:28: MatplotlibDeprecationWarning:
The MATPLOTLIBDATA environment variable was deprecated in Matplotlib 3.1 and will be removed in 3.3.
import matplotlib
Any help is greatly appreciated.