Commit Graph

3878 Commits

Author SHA1 Message Date
wmayer
68e337670e Fem: remove string from translation 2022-06-14 01:43:45 +02:00
wmayer
3158be46ad Fem: added signals and slots to notify when first function is added 2022-06-14 01:38:55 +02:00
Uwe
74c2ad4bf0 [FEM] point filter: use a LineEdit to output value
- that one copy the result to the clipboard
- also fix a typo
2022-06-14 01:21:17 +02:00
Uwe
522c91ce79 [FEM] next try to proper revert 2022-06-14 00:58:08 +02:00
Uwe
e8d65c22d6 Revert "Fixing principal stress plots part 2"
This reverts commit 166eee5eed.
2022-06-14 00:40:51 +02:00
FEA-eng
166eee5eed Fixing principal stress plots part 2
https://forum.freecadweb.org/viewtopic.php?f=18&t=69385
2022-06-13 19:52:16 +02:00
FEA-eng
3af54a7dda Fixing principal stress plots part 1
https://forum.freecadweb.org/viewtopic.php?f=18&t=69385
2022-06-13 19:51:53 +02:00
wmayer
7fa294fd7a Fem: for PointMarker and DataMarker use the internal name instead of label, in customEvent() do not expect a fix name 2022-06-13 17:37:26 +02:00
wmayer
7400b11870 Fem: in FEM_PostFilterLinearizedStresses command do not use a hard-coded object name but that of the selected FemPostDataAlongLineFilter 2022-06-13 17:08:58 +02:00
wmayer
915371aa70 Fem: do not use the Label property but the internal name to access an FEM post object via Python 2022-06-13 17:01:38 +02:00
wmayer
7b225789da Fem: do not access the active document but the document the FEM post object is part of 2022-06-13 16:46:15 +02:00
wmayer
9aa14b36a3 Fem: use WeakPtrT classes instead of raw pointers to avoid possible dangling pointers and to avoid undefined behaviour if a wrong static_cast is performed 2022-06-13 14:21:18 +02:00
wmayer
27a36156f6 Fem: improve TaskPostDataAtPoint:
* refactor TaskPostDataAtPoint::on_Field_activated()
* show results in a label instead of message box to reduce clicks
* in output window also print field and position as the pure values are useless
2022-06-13 12:31:37 +02:00
wmayer
09f1b14cc9 Fem: remove several superfluous casts 2022-06-13 11:14:29 +02:00
Uwe
2a8f85d95c [FEM] make post filter Ui std::unique_ptr 2022-06-13 01:59:46 +02:00
Uwe
227e568b4f [FEM] cut and clip filter: handle new functions
- on adding a new function, it should be used
- there is still a bug, see the added FIXME
2022-06-13 01:42:58 +02:00
Uwe
f0e735ed33 [FEM] line filter resolution fix
a resolution of zero is senseless, thus set minimum to 1
2022-06-12 23:09:33 +02:00
Uwe
ebd1afc5d9 [FEM] fix 2 crashes with line and scalar filter
- same crash origin like the crash fixed earlier today: https://github.com/FreeCAD/FreeCAD/commit/7b0b83a2e4
2022-06-12 22:18:59 +02:00
wmayer
0a79760745 Gui: set a minimum width for quantity spin boxes in FEM dialogs to ignore the results of (minimum)sizeHint() 2022-06-12 20:25:40 +02:00
Uwe
4f91499ada [FEM] line filter, resolution tweak
- disable keyboard tracking for the resolution
2022-06-12 18:22:24 +02:00
Uwe
4813e30703 [FEM] fix line filter resolution
- when the resolution changes, the data must be refreshed for visualization and the plot
2022-06-12 18:18:26 +02:00
Uwe
3528c626e7 [FEM] fix plots of line filter
- when the line geometry changed, the axis data must be refreshed to get correct plots
2022-06-12 17:24:41 +02:00
Uwe
a06cc956c5 [FEM] function dialogs size fix
- as suggested in d4c180e953 (r75908012)
the labels should have maximum size policy
2022-06-12 16:52:41 +02:00
Uwe
e2856395a3 [FEM] remove hardcoding of spinbox sizes 2022-06-12 16:40:41 +02:00
Uwe
a3a97d7b5e [FEM] fixes for line filter
- on changing a point coordinate, either by clicking a point or by changing the spinbox in the dialog, the color bar must be refreshed and data must be evaluated for all fields along the new line
2022-06-12 16:35:08 +02:00
Uwe
0c43dab796 [FEM] function dialogs fix
- keyboard tracking must be turned off
2022-06-12 16:25:02 +02:00
Uwe
298fb8983d [FEM] fix along line dialog
- as suggested in d4c180e953 (r75908012)
- keyboard tracking must be turned off
2022-06-12 16:17:21 +02:00
Uwe
7b0b83a2e4 [FEM] fix crash with data point filter
- when the filter is upon another filter that e.g. clipped all data, we cannot access data
2022-06-12 14:56:54 +02:00
Yorik van Havre
baa1105a53 Merged crowdin translations 2022-06-12 11:56:37 +02:00
Uwe
6c1c63cffe [FEM] point filter: fix data display for coordinate change
- not only by clicking the data must be shown, also by changing a single coordinate value in the dialog.
2022-06-12 04:51:19 +02:00
Uwe
9ef72fcd06 [FEM] fix color bar handling of point filter
- recoloring the gradient bar for a single point is senseless. One therefore already got dozens of errors that max = min in the console. Therefore don't recolor for point filters
2022-06-12 04:02:11 +02:00
Uwe
7521cfc7a0 [FEM] fix point filter output
fixes #7008:

- the point data must be read also when the center changed
- when the dialog is called it has only the value for the current field, thus recompute the feature to fill all fields with data
- on clicking on a mesh point display the value at the clicked position
- due to the object's recomputation at the start, a complete recomputation (for the whole pipeline) is needed on closing the dialog
2022-06-12 03:34:02 +02:00
Uwe
6d23205704 [FEM] fix display of point filter
- results of 1e8 or 1e-7 in fixed notation are almost unreadable, therefore use scientific notation if necessary
2022-06-12 01:05:26 +02:00
Uwe
6a877f7e29 [FEM] point filter: fix initialization issue
- we cannot assume to have a geometry at position (0, 0, 1) this initialize at (0, 0, 0)
- also don't hardcode the unit in the UI file

- also fix wrong property description
- property "Radius" is not used in the code and it seems it is only there as copy paste bug once the point filter was implemented. However close to a release, keep the property and just mention it is unused.
2022-06-12 00:25:58 +02:00
Uwe
9b5aabe458 [FEM] fix unit handling of filter functions
- the function properties use already units but the dialogs were unitless
2022-06-11 04:54:51 +02:00
Uwe
9dc93b8f99 [skip CI] [FEM] sort UI file
I forgot to use our UI sorter
2022-06-11 04:46:21 +02:00
Uwe
c8337118ba [skip CI] [FEM] whitespace and comments to keep overview 2022-06-11 04:28:21 +02:00
Uwe
d4c180e953 [FEM] fix unit handling of line filter
- in contrary to other filters the properties have no unit handling
(there are several bugs in line filter and to fix them, unit handling is necessary)
2022-06-10 14:17:42 +02:00
Uwe
fdaca02994 [skip CI] [FEM] fix initialization mistake
- initial point should be (0, 0, 0)
  (mistake introduced by me today)
2022-06-10 14:11:42 +02:00
Uwe
4c3c23776d [FEM] fix illegal storage access in point filter
- occurred when changing Field to "None"

- also remove doubled and unused code and add a blank line to separate the different filters in the code better
2022-06-10 13:16:23 +02:00
Yorik van Havre
19ffd1ca94 Merged crowdin translations 2022-06-10 11:03:57 +02:00
Yorik van Havre
fa9c78611e Updated ts files 2022-06-10 10:29:18 +02:00
Uwe
825d95314e [FEM] fix unit handling of point result filter
- the App part used already units but the dialog worked unitless. This is error-prone and confusing. Therefore use unit widgets in the dialog.
- also fix issue that unit was not reset (after e.g. a temperature maybe a unitless strain should be shown)
2022-06-10 04:20:25 +02:00
Uwe
6bb6bb4d24 [FEM] fix unit settings of data point filter 2022-06-10 02:42:17 +02:00
Uwe
8fb5ce3c43 [FEM] allow to copy and edit result data
- at the moment you cannot get the result data, for example to make your own plot. Also for the line you might want to have unequal x-steps etc. Especially for the data point filter not getting the data actually makes the tool quite useless.
- therefore set the properties to output
2022-06-10 02:41:08 +02:00
Uwe
43a14ab4df [FEM] fix result point filter upon line filter
having a point filter on a line filter is valid and useful, was maybe just forgotten once the line filter was added
2022-06-10 01:43:22 +02:00
Uwe
dd00c46a8c [FEM] fix issue that all plot windows had the same name
- they all had the name "figure 1"
- thus make the name unique and this way also enable to have several plots open displaying different result types (for the line filter)
2022-06-10 00:55:02 +02:00
Uwe
d17954276c [FEM] fix detached plot (#6998)
* [FEM] fix detached plot

the stress linearization plot is at the moment detached from FreeCAD's main window.
This PR fixes it the same way as in https://github.com/FreeCAD/FreeCAD/commit/920e8e046
2022-06-10 00:34:05 +02:00
Uwe
c4fec57368 [FEM] fix linear filter plot (#6999)
* [FEM] fix linear filter plot

the plot one can create from within the linear filter is at the moment detached from FreeCAD's main window.
This PR fixes it the same way as in https://github.com/FreeCAD/FreeCAD/commit/920e8e046
2022-06-10 00:33:27 +02:00
Yorik van Havre
68e8c19aaf Merged crowdin translations 2022-06-09 13:40:35 +02:00