Commit Graph

3779 Commits

Author SHA1 Message Date
wmayer
7261798eae FEM: automatically detect a suitable scale factor for old project files 2022-04-12 15:24:21 +02:00
wmayer
8da621e220 FEM: [skip ci] fix some typos 2022-04-12 11:03:03 +02:00
wmayer
dd2d3bcbc8 FEM: [skip ci] add missing files to PreCompiled.h 2022-04-12 11:00:54 +02:00
wmayer
7c400f114d FEM: use an SoJackManip for ViewProviderFemPostPlaneFunction 2022-04-12 10:16:54 +02:00
wmayer
98eb81d0ba Fem: remove the forced document recompute from ViewProviderFemPostSphereFunction::updateData
This is already handled in ViewProviderFemPostFunction::dragFinishCallback and can be switched on or off.

See also: https://forum.freecadweb.org/viewtopic.php?p=584481#p584481
2022-04-07 13:29:34 +02: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
wmayer
61ec7268a4 FEM: work around a crash with vtk9 on export of a vtkUnstructuredGrid 2022-04-05 16:27:16 +02:00
Uwe
b5a18cddcb [FEM] save all UI files using FreeCAD plugin for designer
in my FEM work the last weeks, I accidentally used a Qt Designer without a working FreeCAD plugin
2022-04-02 04:06:04 +02:00
wmayer
259cf03b25 Fem/Mesh: force update of shape nodes when changing the transparencies of a color plot 2022-04-01 16:40:34 +02:00
wmayer
97fbdec88c Fem: support transparencies of the colour plot in ViewProviderFemPostObject 2022-04-01 10:40:48 +02:00
Uwe
b234c00bcf [FEM] Material settings dialog: add missing slot and tooltips 2022-04-01 06:21:22 +02:00
Stefan Brüns
21f20065c0 [FEM] Avoid writing parse cache file to non-writable location
Creating the parsetab.py cache file in the same location as the tokrules
file will fail when FreeCAD is installed system wide.

Caching provides hardly any benefit here, as it only takes milliseconds,
and may even be negated by the additional required filesystem operations.

The debug output (parser.out) does not provide any useful information
for a regular FreeCAD user.

Fixes (part of) #6315.
2022-03-31 10:39:49 -05:00
Yorik van Havre
19feabd072 Merged crowdin translations 2022-03-31 11:41:28 +02:00
Uwe
75a015c925 [FEM] fix crash with result filters
fixes #6683

We cannot cast the object type before checking it and in case the object is wrong, the filter cannot be processed and the user needs info about his mistake that he can fix this.

- also some code style fixes by MSVC
2022-03-31 05:14:01 +02:00
Uwe
250695422f [FEM] fix function selection for cut filter
this is the same fix as https://github.com/FreeCAD/FreeCAD/commit/4143f3f62321
for the cut filter
2022-03-31 00:02:48 +02:00
Uwe
71b904e127 [FEM] fix a comparison operator
Fixes a mistake I introduced with https://github.com/FreeCAD/FreeCAD/commit/4143f3f62321
2022-03-30 23:54:42 +02:00
wmayer
25434ad3c3 Fem: [skip ci] issue #6673: selecting a point for the point result filter crashes 2022-03-30 08:23:55 +02:00
Uwe
16ef926fb1 [FEM] improve sphere cut function handling
This commit improves https://github.com/FreeCAD/FreeCAD/commit/e22bcb61
it turned out that it is valid to use a sphere being part of a Pipeline A ,a also for filters in a Pipeline B, C etc. Thus we must recompute the whole analysis container
2022-03-30 03:35:13 +02:00
Uwe
573e4cd772 [FEM] fix bug 4 of the cut filter bugs
as reported here: https://forum.freecadweb.org/viewtopic.php?p=584217#p584217
2022-03-30 02:57:35 +02:00
Uwe
f2ebc45a30 [FEM] [skip CI] remove superfluous ifs I introduced today 2022-03-30 01:45:59 +02:00
Chris Hennes
cb9c4ad696 FEM: PR6497 move return statement to new line 2022-03-29 12:35:58 -05:00
Uwe
06c10561d1 [FEM] fix sphere cut filter
when using a sphere as function for a filter, the pipeline must be recomputed when the sphere geometry is changed, not only the sphere
2022-03-29 04:48:59 +02:00
wmayer
5a0bcbbb9c Fem: in case the range collapses to a single value expand it to a valid range with +/- eps 2022-03-28 20:16:22 +02:00
Chris Hennes
c0de7e680a FEM: PR4556 Step 3: sort QGridLayout by row-col 2022-03-28 10:43:21 -05:00
Chris Hennes
28d23507e8 FEM: PR4556 Step 2: remove native=true 2022-03-28 10:43:21 -05:00
wmayer
7ffc05ec59 Fem: fix error: Unhandled Base::Exception caught in GUIApplication::notify 2022-03-28 15:56:49 +02:00
Uwe
e4cec83945 [FEM] fix crash in pipeline creation
fixes #6670
2022-03-28 02:41:38 +02:00
Uwe
cdd1b0e9ae [FEM] fix network pressure value display in result pipelines
was forgotten in https://github.com/FreeCAD/FreeCAD/commit/8a6f7cb687a
2022-03-28 02:25:19 +02:00
Uwe
09069fb4ee [FEM] some fixes for the Z88 settings dialog
- separate the solver from the binary settings
- fix tooltips and label names
2022-03-28 01:37:54 +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
96de83006b Fem: [skip ci] use the required type for the vtk API 2022-03-27 20:54:26 +02:00
wmayer
06aa45d7d4 Fem: fix segmentation fault in FemPostDataAlongLineFilter::GetAxisData()
It's possible that pdata becomes a null pointer.
Forum thread: https://forum.freecadweb.org/viewtopic.php?f=18&t=67507
2022-03-27 19:18:33 +02:00
Uwe
42596f2f1b [FEM] fix value display in result pipelines
- as reported here: https://forum.freecadweb.org/viewtopic.php?p=583133#p583133

The point is that the user cannot know that he has to multiply the shown numbers for displacements by 0.001 but for the displayed stresses by 1e6 while the temperature is already correct.

The fix is to be consistent and display in SI units. This commit does this and was tested using unit systems with mm and meter based length.
2022-03-27 18:24:03 +02:00
wmayer
5591f98b17 FEM: [skip ci] fix possible crash in setupFilter() function 2022-03-27 11:32:33 +02:00
wmayer
aab8a91e08 Fem: [skip ci] fix compiler warnings
* add Python.h to PreCompiled.h to fix warning for MSVC: warning C4005: 'COMPILER': macro redefinition
* add Python.h to FemPostPipelinePyImp.cpp to fix warning for clang: pyconfig.h:1672:9: warning: '_LARGEFILE_SOURCE' macro redefined [-Wmacro-redefined]
2022-03-27 11:21:19 +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
0180a2ffff [FEM] introduce custom pipeline mode
- in order to benefit from the previous fix when e.g. setting up a clip filter of a clip filter one needs the set inputs untouched. The existing modes however changed all an the addition of a new filter.
Use this new mode as default since it preserves the inputs as the users set them on the filter creation
2022-03-27 07:19:56 +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
cebb40378d [skip CI] [FEM] improve wording in material settings dialog
- also improve layout settings
2022-03-26 06:13:27 +01:00
Uwe
84e55125f9 [skip CI] [FEM] uniform labeling in a settings dialog
- also improve layout settings
2022-03-26 05:59:44 +01:00
Uwe
db4bd62899 [skip CI] [FEM] fix a typo in a dialog 2022-03-26 05:31:19 +01:00
Uwe
045c609b3f [skip CI] [FEM] uniform labeling in a dialog 2022-03-26 05:22:29 +01:00
Uwe
0734cba01c [FEM] [Skip CI] improve Gmsh settings UI
- fix spelling of "Gmsh"
- fix layout issue reported by Qt Designer
2022-03-26 05:15:32 +01:00
Uwe
bff25dfdd1 [FEM] adapt electrostatic examples to changed unit handling
- also a coding improvement
2022-03-26 04:54:36 +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
067e2938d1 [skip CI] [FEM] remove an unused header
- also some code styles improvements
2022-03-26 04:32:17 +01:00
Uwe
a5b86128be [FEM] Elecrostatic: use App::PropertyElectricPotential 2022-03-26 02:29:19 +01:00
Uwe
f2def75852 [FEM] Elmer examples: use better names for constraints
fixes a ToDo and the unit tests work fine nevertheless
2022-03-26 01:46:54 +01:00