How to extract the inp file of ccxtools through script

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
psg.lgd.fy
Posts: 12
Joined: Thu Mar 10, 2022 7:45 am

How to extract the inp file of ccxtools through script

Post by psg.lgd.fy »

>>> __objs__=[]
>>> __objs__.append(FreeCAD.getDocument("myDoc").getObject("Analysis").)
>>> import Fem
>>> FreeCAD.getDocument("myDoc")
>>> Fem.export(__objs__,u"E:/FEMmeshNetgen.inp")
For example, the inp file extracted with the above code cannot be ccxed because it lacks some information. So I want to find another script that can extract the inp in ccxtools or calculate the inp of the correct frd。
User avatar
johnwang
Veteran
Posts: 1345
Joined: Sun Jan 27, 2019 12:41 am

Re: How to extract the inp file of ccxtools through script

Post by johnwang »

Ask under FEM sub forum.
hfc series CAE workbenches for FreeCAD (hfcNastran95, hfcMystran, hfcFrame3DD, hfcSU2 and more)
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: How to extract the inp file of ccxtools through script

Post by Jee-Bee »

A simple solution to try out and learn is record a macro and just check what for commands you see.
Or check: https://github.com/FreeCAD/FreeCAD/tree ... c/Mod/Fem/ and see what you find there
Post Reply