Based on this workviewtopic.php?f=10&t=12762
I've begun looking at a spreadsheet template that would serve as a FEM "Report"
In the property view there is "Displacement Lengths". Is this the magnitude and is there an underlying direction vector that is not accessible?
This is a python list, so element1 is array[0]?
This is not a feature request, I'm just experimenting with what is/might be accessible and seeing how to exploit it.
FEM Reporting
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
FEM Reporting
"fight the good fight"
Re: FEM Reporting
According to python tutorial yessgrogan wrote:This is a python list, so element1 is array[0]?
Re: FEM Reporting
You have to have a valid active analysis (I'm skipping checks) and then:
I think there is no code that can display a list of vectors in the properties list that's why it's not shown, but I could be wrong here.
You might want to use Stats for a FEM report:
a is absolute displacement, s Von Mises stress. All "averages" are arithmetic means.
P.S. Everything should be accessible from python down to calculated values for a given node. If you have a problem accessing something let me know or check ccxFrdReader.py
Code: Select all
>>> import FemTools
>>> a= FemTools.FemTools()
>>> a.run()
>>> a.load_results()
>>> a.result_object.DisplacementVectors
[Vector (0.0, 0.0, 0.0), Vector (0.0, 0.0, 0.0), Vector (0.0,......... [..]
>>> a.result_object.PropertiesList
['DisplacementLengths', 'DisplacementVectors', 'ElementNumbers', 'ExpressionEngine', 'Label', 'Mesh', 'Stats', 'StressValues']
You might want to use Stats for a FEM report:
Code: Select all
results.Stats = [x_min, x_avg, x_max,
y_min, y_avg, y_max,
z_min, z_avg, z_max,
a_min, a_avg, a_max,
s_min, s_avg, s_max]
P.S. Everything should be accessible from python down to calculated values for a given node. If you have a problem accessing something let me know or check ccxFrdReader.py
Re: FEM Reporting
Stats I get, already useful.
The property stuff isn't even in master yet. It's just the power of FreeCAD that I'm exploring.
The property stuff isn't even in master yet. It's just the power of FreeCAD that I'm exploring.
Thanks for this. If I get that far I will.PrzemoF wrote:If you have a problem accessing something let me know or check ccxFrdReader.py
Thanks again, +1, that answers my immediate question.PrzemoF wrote: a is absolute displacement, s Von Mises stress. All "averages" are arithmetic means.
"fight the good fight"