Should results be scaled for eigenmodes on result reading?

About the development of the FEM module/workbench.

Moderator: bernd

thschrader
Veteran
Posts: 3154
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Should results be scaled for eigenmodes on result reading?

Post by thschrader »

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.
User avatar
HarryvL
Veteran
Posts: 1332
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: Should results be scaled for eigenmodes on result reading?

Post by HarryvL »

HarryvL wrote: Thu Feb 07, 2019 10:00 am .... I therefore think it would be smarter to pre-scale as (for example) scale=0.01*model_range/max_disp. Then what is shown before user intervention is independent of units used.
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.


Vibrating Column.png
Vibrating Column.png (199.91 KiB) Viewed 1975 times


OS: Ubuntu 16.04.5 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15788 (Git)
Build type: Unknown
Branch: femresultreading
Hash: 77c652a976e4255940dc4bc277697948b56eef0f
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Should results be scaled for eigenmodes on result reading?

Post by bernd »

confirmed. Just put in the Calculix Standard examplt a force of 9E9 N and the factor 1 is far to big already ... This has been this way since start of FEM WB years ago ... Usually I never have more displacement then the geometry of the Part (which means scale factor < 1.0) but I must admit this should be possible too.

in my femresultreading branch I do calculate a scale factor.
https://github.com/berndhahnebach/FreeC ... al.py#L519 but still the gui does not allow factors < 1.0

BTW:the VTK wrap does allow factors < 1.0
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Should results be scaled for eigenmodes on result reading?

Post by bernd »

harry would you create an issue for this?
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Should results be scaled for eigenmodes on result reading?

Post by bernd »

you can use Python to set scale factors < 1.0 ... the last two lines of the code are the important ones

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)
User avatar
HarryvL
Veteran
Posts: 1332
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: Should results be scaled for eigenmodes on result reading?

Post by HarryvL »

bernd wrote: Wed Feb 27, 2019 8:38 am harry would you create an issue for this?
OK
User avatar
HarryvL
Veteran
Posts: 1332
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: Should results be scaled for eigenmodes on result reading?

Post by HarryvL »

bernd wrote: Wed Feb 27, 2019 8:38 am harry would you create an issue for this?
issue #3874
Post Reply