I'm not all the familiar with python, but here are some outputs.
If I run it as a subprocess (ie subprocess.check_output("/usr/local/Cellar/calculix-ccx/2.13/bin/ccx_2.13")) I get
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/Applications/FreeCAD.app/Contents/lib/python2.7/subprocess.py", line 219, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '/usr/local/Cellar/calculix-ccx/2.13/bin/ccx_2.13' returned non-zero exit status -6
I also tried running it in terminal (ie ./usr/local/Cellar/calculix-ccx/2.13/bin/ccx_2.13) and got something similar
./ccx_2.13
dyld: Library not loaded: /usr/local/opt/gcc/lib/gcc/7/libgfortran.4.dylib
Referenced from: /usr/local/Cellar/calculix-ccx/2.13/bin/./ccx_2.13
Reason: image not found
Abort trap: 6
If I run through the FEM python tutorial (ie
https://www.freecadweb.org/wiki/FEM_Tutorial_Python) I get an error in the python console after running fea = ccxtools.FemToolsCcx()
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/Applications/FreeCAD.app/Contents/Mod/Fem/femtools/ccxtools.py", line 81, in __init__
self.setup_ccx()
File "/Applications/FreeCAD.app/Contents/Mod/Fem/femtools/ccxtools.py", line 625, in setup_ccx
raise Exception(error_message)
Exception: FEM: CalculiX ccx '/usr/local/Cellar/calculix-ccx/2.13/bin/ccx_2.13' output '' doesn't contain expected phrase 'CalculiX'. Please use ccx 2.6 or newer
and in report view
FemConstraintForce has Face reference shapes.
FEM preferences working dir is not set, the solver working directory is used.
Dir '' doesn't exist and cannot be created.
Dir '/var/folders/dh/d9y38r797610qkqhwf9qn6n00000gn/T' will be used instead.
FemToolsCCx.setup_working_dir() --> self.working_dir = /var/folders/dh/d9y38r797610qkqhwf9qn6n00000gn/T
FEM: wrong ccx binary