Commit Graph

209 Commits

Author SHA1 Message Date
Uwe
f6abb77758 [FEM] add new constraint for magnetization 2023-02-09 14:41:25 +01:00
Uwe
a841eee7bb [FEM] Elmer: better sorting of equations
- the elctricforce equation is actually a postprocessor and thus should not be first in the list, but after the electrostatics equation (where it belongs to technically)
- also change menu name to be consistent with the other FEM menus
2023-02-07 14:19:56 +01:00
Uwe
ca05213e2e [FEM] Elmer: add support for 2D magnetodynamics
- adds the corresponding Elmer equation (it is now possible to do Elmer's tutorial example no. 16)
2023-02-07 11:06:22 +01:00
Uwe
0bbf9fa4b0 [FEM] shorten too long lines
- reformatting was done by the MSVC formatter according to our current clang file
2023-02-06 23:12:53 +01:00
Uwe
65eb154eac [FEM] add current density constraint
- also add corresponding App::PropertyCurrentDensity

- also fix a typo in test_object.py
2023-02-05 21:10:15 +01:00
Uwe
767624ca74 [FEM] change default pressure
- a default of 1 GPa for a pressure onto a face is not suitable. use 1 bar (100 kPa) instead
2022-08-14 07:16:25 +02:00
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
a5b50fd114 [FEM] set default selection mode to BoundBox for post objects
- this fixes a long-standing annoyance that popped up also from time to time in the forum:
  the post objects deliver information via its coloring but a selection in the tree changed the shape color

Even experienced users like me did not know about the SelectionStyle property and always had to click into the model to see the real color, not the selection color.
Therefore SelectionStyle set to BoundBox is sensible as default settings for post objects since this assures that the users always see the right coloring.
2022-07-24 16:24:01 +02:00
Uwe
f467451ae3 [FEM] remove more superfluous nullptr checks 2022-07-18 02:34:57 +02:00
wmayer
d5340a82ab Gui/Mod: replace several reinterpret_cast with static_cast 2022-06-25 11:36:55 +02:00
wmayer
6e80ffaec3 Fem: remove some superfluous const_cast 2022-06-24 19:43:33 +02:00
Uwe
a289ec4a06 [FEM] fix a variable casting
- reported by MSVC not to cast a float to a double but as double directly

- also remove some superfluous Boolean comparisons
2022-06-19 15:15:18 +02:00
wmayer
46ce091344 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
Uwe
082eacf139 [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
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
44fd302964 [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/307bab074
2022-06-10 00:34:05 +02:00
Chris Hennes
b6eb112eee FEM: Enable translation of plot labels 2022-06-07 13:44:01 -05: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
8a8fe98454 fix some occurrences where size() is misused as Boolean
- as suggested by @wwmayer: 70714eedc9 (r69648152)
2022-03-27 21:38:15 +02:00
wmayer
5591f98b17 FEM: [skip ci] fix possible crash in setupFilter() function 2022-03-27 11:32:33 +02:00
Uwe
93482ea8e5 [FEM] more work on filter activation
- warp, clip filters etc. are perfectly valid over a line filter
- handle activation for line, stress line and point filter
2022-03-27 07:44:35 +02:00
Uwe
d62f2895e2 [FEM] fix some post filter creation issues
- only one object can be used
- don't forbid to use another filter as input for a new filter
2022-03-27 07:09:36 +02:00
Uwe
dfd91f3ea2 [FEM] fix activation logic of post filters
only activate them when sensible/possible
2022-03-27 00:57:41 +01:00
Uwe
4dbb0f9155 [FEM] fix activation of post pipeline
it can only be activated if a result object is selected from which the pipeline can be loaded
2022-03-27 00:22:06 +01:00
Uwe
a450c50765 [FEM] fix creation of PostPipeline object
- the object was not created inside the analysis container (while this was correctly done when it is created from a solver run)
- after the creation, the object was only hardly visible for the user
2022-03-26 04:37:17 +01:00
Uwe
b186269f54 [skip CI] [FEM] some style changes by MSVC
- to avoid annoying unnecessary diffs while working on the FEM module
2022-03-25 18:55:33 +01:00
wmayer
bde17e1b9f Fem: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
Uwe
ebff4fddcc [FEM] remove unused headers from WBs main files
- also some code style fixes by MSVC
2022-03-17 20:33:33 +01:00
wmayer
8f786ea6ef Gui: Optimize includes to reduce compile time 2022-03-07 20:29:18 +01:00
Preslav
fb0e670d8a Added spring boundary condition 2021-09-17 11:08:08 +02:00
marioalexis
a0d8b26f21 FEM: Fix typo in filter function tooltip 2021-02-17 15:54:17 +01:00
luz paz
3830b562d5 FEM: Issue #0004473: Expose openCommand() to translation
Continuing the work to expose the undo/redo functionality to translation. This commit does so for the FEM Wb.  
Ticket: https://tracker.freecadweb.org/view.php?id=4473
2020-12-01 14:53:35 +01:00
Bernd Hahnebach
7a49d61f62 FEM: typo 2020-03-06 18:19:45 +01:00
Bernd Hahnebach
b92ad7759a FEM: rename icon, post pipeline from result 2020-03-06 08:40:46 +01:00
Bernd Hahnebach
3cd271581d FEM: rename icon, post filter warp 2020-03-06 08:40:44 +01:00
Bernd Hahnebach
cee44e15ab FEM: rename icon, post filter linearized stresses 2020-03-06 08:40:42 +01:00
Bernd Hahnebach
e2e71dfb61 FEM: rename icon, post filter data at point 2020-03-06 08:40:40 +01:00
Bernd Hahnebach
1472974875 FEM: rename icon, post filter data along line 2020-03-06 08:40:38 +01:00
Bernd Hahnebach
9fb0c94d20 FEM: rename icon, post filter cut function 2020-03-06 08:40:36 +01:00
Bernd Hahnebach
a290dfdcc2 FEM: rename icon, post filter clip scalar 2020-03-06 08:40:34 +01:00
Bernd Hahnebach
2854fa25ee FEM: rename icon, post filter clip region 2020-03-06 08:40:32 +01:00
Bernd Hahnebach
1707c1960a FEM: rename icon, solver standard 2020-03-06 08:40:26 +01:00
Bernd Hahnebach
1b8fb0bc21 FEM: rename icon, mesh creat node set 2020-03-06 08:40:10 +01:00
Bernd Hahnebach
5c51eb86e7 FEM: rename icon, Constraint Transform 2020-03-06 08:39:29 +01:00
Bernd Hahnebach
190690555f FEM: rename icon, Constraint Temperature 2020-03-06 08:39:27 +01:00
Bernd Hahnebach
1514b85366 FEM: rename icon, Constraint Pulley 2020-03-06 08:39:23 +01:00
Bernd Hahnebach
50ea796f17 FEM: rename icon, Constraint Pressure 2020-03-06 08:39:21 +01:00
Bernd Hahnebach
41133faade FEM: rename icon, Constraint Plane Rotation 2020-03-06 08:39:19 +01:00
Bernd Hahnebach
34cbca72ca FEM: rename icon, Constraint Initial Temperature 2020-03-06 08:39:17 +01:00