You have n eigenmodes with with deflection.
The Eigenmode with the most deflection is scaled to 1.
The rest is (should be) lower. That is the spectrum.
Yes, the results should be scaled to the eigenmode with
max deformation.
Moderator: bernd
This is what I get at the moment for scale factor 1.0 (can't go lower than that in result object). So it is necessary to apply some automatic scaling before letting the user decide ..... or allow scale factors smaller than 1.0.
Code: Select all
doc = FreeCAD.open(FreeCAD.ConfigGet("AppHomePath") + 'data/examples/FemCalculixCantilever3D.FCStd')
doc.FemConstraintForce.Force = 9E9
doc.recompute()
import FemGui
FemGui.setActiveAnalysis(doc.Analysis)
from femtools import ccxtools
fea = ccxtools.FemToolsCcx()
fea.purge_results()
fea.run()
mesh_obj = doc.Result_mesh
result_obj = doc.CalculiX_static_results
mesh_obj.ViewObject.setNodeDisplacementByVectors(result_obj.NodeNumbers, result_obj.DisplacementVectors)
mesh_obj.ViewObject.applyDisplacement(0.02)