Re: FEM can't working on MacOS 11.15.7

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
felixlee868
Posts: 126
Joined: Wed Jul 03, 2019 8:15 am

Re: FEM can't working on MacOS 11.15.7

Post by felixlee868 »

Hi Guys

I am crazy for use FEM module.

I use next command to install FREECAD [0.20.PRE]

> conda create free cad
> conda config --add channels conda-forge
> config config --add channels freecad/label/dev
> conda install freecad python=3.9 -n freecad -y
> conda install gmsh calculix -n freecad -y

Now I use FreeCAD version : FreeCAD 0.20, Libs: 0.20R25176 (Git)

and I installed another packaged when I found from freecad build dmg file.

Here has some issues. When I use FEM module. I decided to use example file to find where has problem.

The next are what I operation step:

1) Open example file : FemCalculixCantilever3D.FCStd
2) Configurate the FEM preference : Working directory for solving analysis --> Beside .FCStd file
3) I open FEM example file: FemCalculixCantilever3D.FCStd
4) I use "activate analysis" from popup menu to activate example Analysis object
5) I select "CalculiXccxTools" object
6) from "solver" menu to click "slover job control"
7) from "Mechanical analysis" part , I select "Static" and click "Write .inp file" button
8) After step 8 ended, I click "Run CalculiX" , The FREECAD crashed.

I check the CalculiXccxTools directory under FemCalculixCantilever3D directory.
I got the next file:
Box_Mesh.12d. ( which no content, file size are zero )
Box_Mesh.cvg ( which has 274 bytes file size )
Box_Mesh.dat. ( which has 126 bytes file size)
Box_Mesh.frd. ( which has 80632 bytes file size )
Box_Mesh.inp ( which has 12081 bytes file size )
Box_Mesh.sta. ( which has 170 bytes file size )
Box_Mesh.out. ( which has zero byte file size )

I found the running FREECAD version has some problems:

A). FEM don't allow user to change "MechanicalSolidMaterial" Density value ( The current value is: 0.00 kg/mm^3 ). The default Density value is NOT correct. but don't allow user to change it. That is a bug need to fixed.

B). I found that conda environment support spooles package maybe has issue for MacOS. Due to the not supply dylib format file for the package.

C). I carefuly check the current PATH environment variable which working on MacOS. I thinks the MacOS has limit for use to change some PATH environment configuration. I need to know FREECAD bin file use what LD_LIBRARY environment value? I doubt the issue come from the FreeCAD bin file can't search some dylib file.

D). I want to know what tools needed by Solver ? what step create what file ? Due to the screen only give me information :

run CalculiX at: /Users/lifeng/miniconda3/envs/freecad/bin/ccx with: /Users/lifeng/FEMTEST/FemCalculixCantilever3D/CalculiXccxTools/Box_Mesh.inp
CalculiX done without error!
zsh: illegal hardware instruction freecad


I think the last "illegal hardware instruction" information due to some memory address error in FreeCAD.

I hope some guy can give some information to let FEM working well.


Thanks


Best Regards

Felix Lee
Post Reply