Commit Graph

217 Commits

Author SHA1 Message Date
Uwe
3289a9cccc [FEM] improve cylinder function
- set better initial position and size
- add misting triggering of ViewProvider
- some code style improvements (fix too long lines, consistency etc.)
2023-03-09 17:25:46 +01:00
marioalexis
3e61ca0fbb FEM: Add cylinder filter function 2023-03-08 17:16:41 +01:00
Uwe
9323c23b3c [FEM] [skip ci] Command.cpp: fix loo long line 2023-02-20 03:13:19 +01:00
Uwe
971b2cb83f [FEM] fix typo in command
- to be uniform as all other commands begin with "CmdFem..."
2023-02-20 02:45:14 +01:00
Uwe
26f1861bf8 [FEM] fix reported typos and inconsistencies 2023-02-20 02:07:33 +01:00
luzpaz
61e96bd763 FEM: fix trailing newlines 2023-02-15 13:41:38 +00:00
Uwe
3c94e3d87e [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
3b653b78f9 [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
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