Commit Graph

263 Commits

Author SHA1 Message Date
Uwe
2bf7ccab68 [FEM] fix reported typos and inconsistencies 2023-02-20 02:07:33 +01:00
luzpaz
d4796dd1d4 FEM: fix trailing newlines 2023-02-15 13:41:38 +00:00
Uwe
fa780e8b5b [FEM] add new filter to display iso contours
- very valuable to display for example electromagnetic field lines
2023-02-13 16:53:21 +01:00
Uwe
95a6d1e208 [FEM] Elmer: add support for 3D magnetodynamics
- adds the corresponding Elmer equation (it is now possible to do Elmer's tutorial example no. 14)
2023-02-10 19:48:31 +01:00
Uwe
04915b694b [FEM] add new constraint for magnetization 2023-02-09 14:41:25 +01:00
Uwe
06100d97dd [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
d5ac0758cf [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
c8630fec0a [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
82b6e03625 [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
52b3c75eb4 [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
da9ebc572f Mod: redundant void 2 2022-08-08 10:27:50 +02:00
luz paz
d02f6330fc FEM: remove trailing whitespace from various FEM files 2022-08-08 02:10:17 +02:00
Uwe
864c9ecac5 [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
48af573746 [FEM] remove more superfluous nullptr checks 2022-07-18 02:34:57 +02:00
wmayer
e9890c0798 Gui/Mod: replace several reinterpret_cast with static_cast 2022-06-25 11:36:55 +02:00
wmayer
1aa897d450 Fem: remove some superfluous const_cast 2022-06-24 19:43:33 +02:00
Uwe
8e253cb4c8 [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
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
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
Chris Hennes
9570d88a39 FEM: Enable translation of plot labels 2022-06-07 13:44:01 -05:00
wmayer
c4c0304518 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
66e4c37a25 fix some occurrences where size() is misused as Boolean
- as suggested by @wwmayer: 4d51d1d0b1 (r69648152)
2022-03-27 21:38:15 +02:00
wmayer
4d51d1d0b1 FEM: [skip ci] fix possible crash in setupFilter() function 2022-03-27 11:32:33 +02:00
Uwe
7676216a7a [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
57cb8bd91b [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
2f8343b5c5 [FEM] fix activation logic of post filters
only activate them when sensible/possible
2022-03-27 00:57:41 +01:00
Uwe
1b7b72ea90 [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
2e67e70863 [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
7bc69a8cbb [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
7ae9fc0d67 Fem: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
Uwe
1ddb4d27e7 [FEM] remove unused headers from WBs main files
- also some code style fixes by MSVC
2022-03-17 20:33:33 +01:00
wmayer
1ca7429705 Gui: Optimize includes to reduce compile time 2022-03-07 20:29:18 +01:00
Preslav
1ceaa09d17 Added spring boundary condition 2021-09-17 11:08:08 +02:00
marioalexis
8b8b12b646 FEM: Fix typo in filter function tooltip 2021-02-17 15:54:17 +01:00
luz paz
be07e9a7ed 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
49049ddc02 FEM: typo 2020-03-06 18:19:45 +01:00
Bernd Hahnebach
1be796bff7 FEM: rename icon, post pipeline from result 2020-03-06 08:40:46 +01:00
Bernd Hahnebach
888fdfbe53 FEM: rename icon, post filter warp 2020-03-06 08:40:44 +01:00
Bernd Hahnebach
306f1c0c55 FEM: rename icon, post filter linearized stresses 2020-03-06 08:40:42 +01:00
Bernd Hahnebach
65e0db5f6c FEM: rename icon, post filter data at point 2020-03-06 08:40:40 +01:00
Bernd Hahnebach
3d31ff5001 FEM: rename icon, post filter data along line 2020-03-06 08:40:38 +01:00
Bernd Hahnebach
fd6e9acd5c FEM: rename icon, post filter cut function 2020-03-06 08:40:36 +01:00
Bernd Hahnebach
164f04a395 FEM: rename icon, post filter clip scalar 2020-03-06 08:40:34 +01:00
Bernd Hahnebach
46531ed92e FEM: rename icon, post filter clip region 2020-03-06 08:40:32 +01:00
Bernd Hahnebach
769bb52305 FEM: rename icon, solver standard 2020-03-06 08:40:26 +01:00
Bernd Hahnebach
b3a2583e5e FEM: rename icon, mesh creat node set 2020-03-06 08:40:10 +01:00
Bernd Hahnebach
4d6e21e455 FEM: rename icon, Constraint Transform 2020-03-06 08:39:29 +01:00
Bernd Hahnebach
4446c2a256 FEM: rename icon, Constraint Temperature 2020-03-06 08:39:27 +01:00