Commit Graph

29 Commits

Author SHA1 Message Date
Uwe
45743d4fbd [FEM] improve displacement constraint
- use a Distance and Angle property to get the unit handling right
2023-03-23 00:50:40 +01:00
Uwe
9d45d40ec5 [FEM] use std::unique_ptr for all dialog objects
- also fix too long line
- also further clang automatic code style changes
2023-03-22 20:08:13 +01:00
luzpaz
f1bbcd9e13 Fix typos and whitespace 2023-03-22 17:10:38 +01:00
Uwe
c9cb01531f [FEM] extend displacement constraint
- add fields to specify a formula for the displacement, this is necessary to make transient deformation analyses with Elmer
- add option to set displacement from result of flow equation
- this way also a major overhaul -> simpler dialog logic etc.
2023-03-22 15:23:32 +01:00
wmayer
d4cb3aca0e FEM: move to new style connect() 2023-01-15 19:50:46 +01:00
berniev
53ba98d636 Mod: use empty 2022-08-06 19:30:13 +02:00
Ajinkya Dahale
e0f96afb35 [FEM] Refactor TaskFemConstraintOnBoundary (#6615)
* Now the behavior is consistent with behavior of PD fillets, for example.
See https://forum.freecadweb.org/viewtopic.php?f=18&t=67135#p580192. In the
future it may be possible to reuse some code from there.

* When the last selected item is removed we need to reset the existing
highlighting separately.

* Use `Gui::ButtonGroup` in `TaskFemConstraintOnBoundary`
2022-03-21 01:02:10 +01:00
Uwe
4f0fd30371 [FEM] remove some unused includes for some dialogs
- also some style fixes made by MSVC
2022-03-17 19:53:12 +01:00
Uwe
dd0d2686b9 [FEM] Contact and Displacement: remove unused headers 2022-03-17 03:46:41 +01:00
Uwe
35e90db035 [FEM] fixes for displacement dialog
- add missing global dialog layout (reported by Qt Designer)
- get rid of arbitrary spinbox limits
- uniform UI element names
- simplify code
2022-03-16 01:29:46 +01:00
wmayer
d419b325fb Fem: Fix several coverity issues:
* make SelectionChangeModes an enum class
* CID 350596: Uninitialized scalar field
* CID 350572: Uncaught exception
* CID 350647: Uncaught exception
2022-03-13 14:09:04 +01:00
wmayer
8f786ea6ef Gui: Optimize includes to reduce compile time 2022-03-07 20:29:18 +01:00
Ajinkya Dahale
744e57a963 [FEM] Add modal add/remove for dispacement constraint
With this, add/remove buttons for displacement constraint will put the user in a
selection mode if pressed when nothing is selected.

Superclass `TaskFemConstraintOnBoundary` Allows code reuse for other
constraints. We do not need this in `TaskFemConstraints` because it is only used
in a subset of constraints, particularly that applies on only some of the
boundary entities.

TODO: Confirm Undo/Redo works appropriately.
TODO: Optimize `onSelectionChanged()`.
2022-01-07 05:33:42 +01:00
luz paz
36d9f82671 FEM: remote superfluous double semicolons [skip ci] 2021-02-14 22:13:16 +01:00
wmayer
9e2dc54094 PVS: V560 A part of conditional expression is always true 2020-07-18 10:59:27 +02:00
Bernd Hahnebach
fb3a3f6a33 FEM: rename icon, Constraint Displacement 2020-03-06 08:38:59 +01:00
donovaly
10cfdceb7a [FEM] spread the fixes from commit ef370e6d to the other dialogs 2020-03-01 14:37:28 +01:00
donovaly
d813e5abf1 FEM: constraint dialogs: sort out commonly used function
additionally remove double code from TaskFemConstraintForce.cpp
2020-02-24 20:12:10 +01:00
donovaly
f60ca91e83 [FEM] fix special Dlg issue with deletion
- if an existing constraint has only one item, the item could under some circumstances not be deleted by pressing Del
2020-02-21 18:00:58 +01:00
donovaly
4c368c7c21 FEM: change behavior of Force dialog to the one of all other constraint dialogs 2020-02-20 18:07:52 +01:00
donovaly
d71cdc061c [FEM] add shortcut to delete constraints from list in dialog
see https://forum.freecadweb.org/viewtopic.php?f=18&t=43402
2020-02-19 10:15:10 +01:00
sL1pKn07
6674467254 [For v018] Fix build with Qt5 beta
Seems need add some headers for build with incoming Qt 5.11 (Tested with 5.11.0beta2)
2018-04-10 12:59:41 +02:00
wmayer
2845e319a3 fix -Wextra in Fem 2016-09-24 02:17:15 +02:00
wmayer
6aefdea417 + prepare string for translation 2016-02-29 13:22:49 +01:00
vginkeo
8ec2665c1c FEM: C++98 compatible fix to constraint displacement reference deletion, update vertice, edge, face selection 2016-02-29 13:06:16 +01:00
vginkeo
70f3ebbd15 FEM: remove some trailing whitespaces 2016-02-29 13:06:14 +01:00
Yorik van Havre
17522b7b2f Revert "FEM: Updated fix to constraint displacement reference deletion, update hide show, remove custom input writer, update vertice, edge, face selection."
This reverts commit ac4d466443.
2016-02-19 00:05:55 -02:00
vginkeo
555382e8be FEM: Updated fix to constraint displacement reference deletion, update hide show, remove custom input writer, update vertice, edge, face selection. 2016-02-18 19:15:16 -02:00
vginkeo
034e377dd0 FEM: Implement constraint displacement in C++ 2016-02-12 11:09:58 +02:00