Can someone point me to where I can look to get the element values for stress and displacement?
I would like to look at automating the production of analysis reports with the element values and some other data.
I can see that in mechanicalanalysis.py Fem::FemResultValue and Fem::FemResultVector are used.
Thanks,
Dan
[Help] Get element values?
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
- dubstar-04
- Posts: 698
- Joined: Mon Mar 04, 2013 8:41 pm
- Location: Chester, UK
- Contact:
Re: [Help] Get element values?
Mhh I mostly use cgx if I would like to know something detailed. What you could try is look at the Result Document Objects ... Results are read by FreeCAD from the CalculiX result file (*.frd) file and saved in the Documentobjects Displacement and MisesStress. All values are stored in these two objects.
To access a Property use:
You can highlight a nodes by
and if a empty list is used no node is highligted
BTW: currently only the MisesStresses are stored inside FreeCAD
Code: Select all
>>> App.ActiveDocument.Displacement.PropertiesList
['DataType', 'ElementNumbers', 'Label', 'Mesh', 'Unit', 'Values']
>>> App.ActiveDocument.MisesStress.PropertiesList
['DataType', 'ElementNumbers', 'Label', 'Mesh', 'Unit', 'Values']
>>>
Code: Select all
App.ActiveDocument.Displacement.ElementNumbers
App.ActiveDocument.Displacement.Values
Code: Select all
Gui.ActiveDocument.Box_Mesh.HighlightedNodes = [NodeIDs]
Code: Select all
Gui.ActiveDocument.Box_Mesh.HighlightedNodes = []