Me value clamped at 99 also for Freecad 0.17 windows 64bit.
For 0.18 pre, the value not clamped but I’ve to set max value too much like 5000, 10000 so that displacement show like 20-time from FEM result.



I think this is a bug ![]()
The factor between vtk’s warp filter and FreeCAD native displacement visualisation is 1000.
Please see 3D Cantilever example from FreeCAD start page.
Here max deflection in z direction is -86.9271 mm.
Therefore a displacement factor of approx 11 shows a deflection similar to beam’s height.
With vtk’s warps filter you will need a factor of approx 11000.
If you export results to a vtk file for displaying in Paraview same factor has to be applied.
Paraview will show this spread sheet view sorted by displacement

And that is obliviously wrong ![]()
If the frd file is translated by “mmh_ccx2vtk.exe”, Paraview show this spread sheet view

Which looks much better. And warp factor needs to be applied is approx 11 now ![]()
it is a bug but fixed not yet … https://forum.freecadweb.org/viewtopic.php?f=18&t=30784#p256064
Hope get fix soon.
I’ve no great in coding much maybe someday I can help some. Today I only can spot some strange then encourage. ![]()
this line is the culprit: https://github.com/FreeCAD/FreeCAD/blob/8f3a53c/src/Mod/Fem/App/FemVTKTools.cpp#L868
if this is used it works:
double tuple[] = {it->x, it->y, it->z};
but the scale factor has some reasons, means I do not just want to change this line. I will have a closer look.
scaling only displacements to SI and leaving all the rest as they are, makes no sense to me ![]()
I have been searching the net. The only resource I found was http://vtk.1045678.n5.nabble.com/units-in-VTK-td5729229.html From there it seams vtk is like CalculiX, the user has to take care about the unit system. He can take any unit is likes, he just needs to take care all other units fit.
IMHO we could delete all this scale in vtktools.cpp If something should be scaled all needs to be scaled and not with an fictive unit scale. If we scale we should take FreeCAD unit system.
@_UR: What’s your opinion about this: https://github.com/berndhahnebach/FreeCAD_bhb/commit/b2325ef
Since I’m not in the mud to implement all unit stuff in vtk ATM … IMHO we should have better no implementation than a totally messed up one …
bernd
I left the scale factor in vtk mesh reader and writer but deleted it in all result creation methods … 5fc337b