Commit Graph

91 Commits

Author SHA1 Message Date
berniev
f4ffd15864 Mod: redundant void 2 2022-08-08 10:27:50 +02:00
luz paz
feb4218d06 FEM: remove trailing whitespace from various FEM files 2022-08-08 02:10:17 +02:00
Uwe
b6d0eeaf66 [FEM] [skip CI] set unit for potential loads 2022-08-07 15:15:23 +02:00
Uwe
a2bd654fd1 [FEM] make point filter aware of force density 2022-08-07 04:32:12 +02:00
Uwe
f7099cd43c [FEM] Elmer: fixes for electrostatics
- one needs to specify a file when calculating the capacitance matrix
- add electric flux to point filter results
- add missing parameters
- also some sorting
2022-08-07 01:11:07 +02:00
Uwe
c61ca0d0a7 [FEM] Elmer: fixes for the point filter
- use correct names and support all possible outputs
2022-08-01 04:33:06 +02:00
Uwe
f532fa9a1b [FEM] Elmer: fix eigenmode results for point filter
Elmers' eigenmode results have a different result name
2022-07-31 04:30:31 +02:00
wmayer
a9a4cf3d6d Fem: [skip ci] Fix several clazy issues:
* Maybe you meant to call base method instead [-Wclazy-skipped-base-method]
* Using copy-ctor but class SbMatrix has a trivial copy-ctor but non trivial assign operator [-Wclazy-rule-of-two-soft]
* Missing emit keyword on signal call FemGui::PointMarker::PointsChanged [-Wclazy-incorrect-emit]
2022-07-25 12:11:47 +02:00
Uwe
e95a16408c [FEM] TaskBoxes: add missing info about transparency
The user had no info about the current transparency nor the value he will be selecting.
2022-07-23 19:41:18 +02:00
Uwe
f467451ae3 [FEM] remove more superfluous nullptr checks 2022-07-18 02:34:57 +02:00
Uwe
5a6c52d8f3 [FEM] [skip CI] fix a typo
- spot by the spellchecker CI
2022-07-01 03:12:15 +02:00
Uwe
5f5ae2fe4a [FEM] fix point filter initialization issue
- on opening the task dialog of existing point filter, the point value must be displayed
2022-06-27 01:07:36 +02:00
wmayer
d5340a82ab Gui/Mod: replace several reinterpret_cast with static_cast 2022-06-25 11:36:55 +02:00
wmayer
052a2d8f82 Fem: remove string from translation 2022-06-14 01:43:45 +02:00
wmayer
d64b9750da Fem: added signals and slots to notify when first function is added 2022-06-14 01:38:55 +02:00
Uwe
f1e3c30d6a [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
wmayer
66fab4bb81 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
6bc14921b5 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
1da5971f00 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
82b8ddc042 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
b82230867b 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
0c098fe6b7 Fem: remove several superfluous casts 2022-06-13 11:14:29 +02:00
Uwe
496024af74 [FEM] make post filter Ui std::unique_ptr 2022-06-13 01:59:46 +02:00
Uwe
6df06ce223 [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
wmayer
d49209049c 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
391ed3db8a [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
a0689c7f9f [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
aefa08792a [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
c33eaef4c9 [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
64e6e7a781 [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
94e376346e [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
8bcab38d76 [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
2aa6d0f02a [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
Uwe
1145a9a06e [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
6fadcdeed3 [FEM] fix unit settings of data point filter 2022-06-10 02:42:17 +02:00
Uwe
78ab4ebf4c [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
fcd606fbff [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/307bab074
2022-06-10 00:33:27 +02:00
Chris Hennes
8191bcfc66 FEM: Enable translation of axis label 2022-06-07 13:10:42 -05:00
Uwe
1a94543824 [FEM] TaskPostDataAtPoint: add missing support for electrostatics
- also update units to SI
2022-06-01 17:42:22 +02:00
wmayer
5907a7261e Fem: move handling of PostAutoRecompute to a central class and by default set its value to true 2022-04-07 13:22:13 +02:00
Uwe
250695422f [FEM] fix function selection for cut filter
this is the same fix as https://github.com/FreeCAD/FreeCAD/commit/4143f3f62321
for the cut filter
2022-03-31 00:02:48 +02:00
Uwe
71b904e127 [FEM] fix a comparison operator
Fixes a mistake I introduced with https://github.com/FreeCAD/FreeCAD/commit/4143f3f62321
2022-03-30 23:54:42 +02:00
wmayer
25434ad3c3 Fem: [skip ci] issue #6673: selecting a point for the point result filter crashes 2022-03-30 08:23:55 +02:00
Uwe
573e4cd772 [FEM] fix bug 4 of the cut filter bugs
as reported here: https://forum.freecadweb.org/viewtopic.php?p=584217#p584217
2022-03-30 02:57:35 +02:00
Uwe
6abef5bee1 [FEM] re-add a header as compile fix 2022-03-24 19:10:39 +01:00
Uwe
c9ac61408c [FEM] TaskPostBoxes: remove unused headers
- also some sorting
2022-03-24 18:58:01 +01:00
Uwe
c9f2c1d40c [FEM] fix transparency bug
- as reported here: https://forum.freecadweb.org/viewtopic.php?p=582526#p582526
After setting the transparency, the object has to be redrawn

- also remove a doubled header
2022-03-24 04:50:54 +01:00
Uwe
a3780fc127 [FEM] post object: some whitespace and style fixes
all made by MSVC
2022-03-23 21:51:25 +01:00
wmayer
bde17e1b9f Fem: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
8f786ea6ef Gui: Optimize includes to reduce compile time 2022-03-07 20:29:18 +01:00