Commit Graph

46 Commits

Author SHA1 Message Date
Benjamin Nauck
d0dc4c00ef FEM: Use std::numeric_limits and std::numbers instead of defines 2025-03-29 13:32:38 +01:00
bofdahof
4dd92724b6 FEM: apply std::ranges 2025-03-16 17:16:30 -05:00
Benjamin Bræstrup Sayoc
e1b39ad1f6 Fem: Use QStringLiteral 2025-02-10 18:32:45 +01:00
tritao
65466d580b Gui: Reorganize the selection files into a top Selection folder. 2025-02-03 17:56:57 +01:00
Ladislav Michl
2ea8a633ac Base: Quantity: return std::string 2024-12-23 17:48:42 +01:00
Kacper Donat
651cefde4d Gui: Use getObject<T>() helpers in classes
This commit is generated using regex based find and replace:

```
s/[\w:]+_cast\s*<([^>]+)\*>\s*\(\s*getObject\(\s*\)\)/getObject<$1>/
s/[\w:]+_cast\s*<([^>]+)\*>\s*\(\s*([^)]*)\s*->\s*getObject\(\s*\)\)/$2->getObject<$1>()/
```

To regenerate if needed.
2024-12-06 18:29:39 +01:00
wmayer
88ee1d6df3 FEM: Fix convoluted event handling of constraint task boxes
and make Delete key working on macOS
2024-07-23 23:19:51 -05:00
marioalexis
789353b52a Fem: Remove redundant *Fix properties in constraint displacement - fixes #14556 2024-07-22 10:50:15 -05:00
Max Wilfinger
7d21d9edb8 Fix source string typos mentioned on Crowdin (#15261) 2024-07-08 17:18:31 -05:00
marioalexis
6c0f3bde92 Fem: Use base class open and reject methods in constraint task panels 2024-06-24 22:03:07 -03:00
marioalexis
0361543cfb Fem: Set Scale in TaskFemConstraint base class 2024-06-24 22:03:07 -03:00
wmayer
b8b94c249e Fem: Apply clang-format 2023-09-25 14:50:43 +02:00
kaktus Jacek
41fb0d45a3 Fem: Removing "constraint" from the names
Removing "constraint" from the names of most FEM workbench features.

https://github.com/FreeCAD/FreeCAD/discussions/10217
2023-09-03 22:29:35 -05:00
wmayer
d525e0d308 Fem: modernize C++: use equals default 2023-08-21 13:35:54 +02:00
wmayer
009f9f2222 FEM: modernize C++: use range-based for loop 2023-08-15 01:09:53 +02:00
luzpaz
c39dbc93f6 Fem: fix trailing whitespace 2023-04-01 08:39:05 +02:00
Uwe
dfbc6b168e [FEM] activate spring constraint
- the spring constraint is currently unused but it can be used for Elmer mechanical analyses
This PR does so and also overhaul the dialog UI.
- use the spring constraint also in an example file
2023-03-23 15:14:50 +01:00
Uwe
7fd12f8454 [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
97103b3bf3 [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
eb852691df Fix typos and whitespace 2023-03-22 17:10:38 +01:00
Uwe
dba00d44d0 [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
a9b9899846 FEM: move to new style connect() 2023-01-15 19:50:46 +01:00
berniev
b796a0d376 Mod: use empty 2022-08-06 19:30:13 +02:00
Ajinkya Dahale
300fbc22ea [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
2e084ed18a [FEM] remove some unused includes for some dialogs
- also some style fixes made by MSVC
2022-03-17 19:53:12 +01:00
Uwe
c0ceecbcf6 [FEM] Contact and Displacement: remove unused headers 2022-03-17 03:46:41 +01:00
Uwe
122e137939 [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
76d1180283 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
1ca7429705 Gui: Optimize includes to reduce compile time 2022-03-07 20:29:18 +01:00
Ajinkya Dahale
0aeed0e53b [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
cfebd3f1e6 FEM: remote superfluous double semicolons [skip ci] 2021-02-14 22:13:16 +01:00
wmayer
f061789d19 PVS: V560 A part of conditional expression is always true 2020-07-18 10:59:27 +02:00
Bernd Hahnebach
1dbd171e92 FEM: rename icon, Constraint Displacement 2020-03-06 08:38:59 +01:00
donovaly
27395bbba2 [FEM] spread the fixes from commit a5be62b8 to the other dialogs 2020-03-01 14:37:28 +01:00
donovaly
d19d5b5fce FEM: constraint dialogs: sort out commonly used function
additionally remove double code from TaskFemConstraintForce.cpp
2020-02-24 20:12:10 +01:00
donovaly
288456ee4b [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
325b31aae3 FEM: change behavior of Force dialog to the one of all other constraint dialogs 2020-02-20 18:07:52 +01:00
donovaly
97de09ad6f [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
018b41032a [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
480191c8ee fix -Wextra in Fem 2016-09-24 02:17:15 +02:00
wmayer
93f32d4dd1 + prepare string for translation 2016-02-29 13:22:49 +01:00
vginkeo
f14758d5e5 FEM: C++98 compatible fix to constraint displacement reference deletion, update vertice, edge, face selection 2016-02-29 13:06:16 +01:00
vginkeo
187894d8b5 FEM: remove some trailing whitespaces 2016-02-29 13:06:14 +01:00
Yorik van Havre
577f208da7 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
ac4d466443 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
b1dc2cbf94 FEM: Implement constraint displacement in C++ 2016-02-12 11:09:58 +02:00