Running FEM Calculix analysis throws python dll error

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
georgu2
Posts: 3
Joined: Thu Sep 24, 2020 7:59 am
Location: Poland

Running FEM Calculix analysis throws python dll error

Post by georgu2 »

Dear All,
I would like conver my results from FreeCAD (Calculix) to ParaView but when I run ccx2paraview.exe I have received error window about python37.dll object. Maybe I have misunderstood someting? I am beginner. Do you have any instruction step by step?
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Running FEM Calculix analysis throws python dll error

Post by Kunda1 »

mod edit:split post in off topic thread to it's own

Please always post your About info when requesting help. Thank you.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Running FEM Calculix analysis throws python dll error

Post by bernd »

georgu2 wrote: Thu Sep 24, 2020 8:12 am Dear All,
I would like conver my results from FreeCAD (Calculix) to ParaView but when I run ccx2paraview.exe I have received error window about python37.dll object. Maybe I have misunderstood someting? I am beginner. Do you have any instruction step by step?
What would you like to do?

Would you like to convert the results created by ccx into Paraview format?

or

Would you like to export results created by ccx which have been imported into FreeCAD FEM out of FreeCAC into Paraview format?

cheers bernd
thschrader
Veteran
Posts: 3158
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Running FEM Calculix analysis throws python dll error

Post by thschrader »

Hi, welcome, to the forum.
I use the ccxfrd2vtk.exe tool to convert frd to vtk (thanks to user mammah)
https://forum.freecadweb.org/viewtopic.php?f=18&t=11664

Extract the zip below to a folder you want.
Copy the calculix result file xxx.frd into the ccxfrd2vtk/bin/release folder
With mouse: drag frd file over mmh_ccx2vtk.exe, conversion starts.
The vtk can be opened in paraview.

ccxfrd2vtk.zip
(58.44 KiB) Downloaded 32 times
frd2vtk_converter.JPG
frd2vtk_converter.JPG (20.54 KiB) Viewed 829 times
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Running FEM Calculix analysis throws python dll error

Post by sgrogan »

See here: https://github.com/calculix/ccx2paraview
And here: https://pypi.org/project/ccx2paraview/Interesting Library.
It seems that the OP's problem is related to how the python executable was created. Only tangentially related to FreeCAD. I think the Python37.dll happens before FreeCAD is involved.
"fight the good fight"
georgu2
Posts: 3
Joined: Thu Sep 24, 2020 7:59 am
Location: Poland

Re: Running FEM Calculix analysis throws python dll error

Post by georgu2 »

Thanks for response!
I am finally using thschraders advice and converting it by ccxfrd2vtk.exe. It's working, but when I try to open it in paraview it askme to chose a reader. Which should I chose?
It is simply mechanical structural linear anaysis with Netgen mesh.
georgu2
Posts: 3
Joined: Thu Sep 24, 2020 7:59 am
Location: Poland

Re: Running FEM Calculix analysis throws python dll error

Post by georgu2 »

ok forget the question
Post Reply