Commit Graph

24683 Commits

Author SHA1 Message Date
Chris Hennes
a79b397e85 OpenSCAD: Correct QFileDialog usage
Fixes #8577
2023-02-21 20:50:29 -06:00
Chris Hennes
eeb481207f Addon Manager: Fix bug in dependency installer 2023-02-21 13:33:20 -06:00
Chris Hennes
3826042529 Addon Manager: pylint cleanup of devmode 2023-02-21 12:11:35 -06:00
Uwe
d13926baa8 [FEM] add example for flux equation
- also fine-tune flow example
2023-02-21 13:01:14 +01:00
Chris Hennes
43cc8b12c1 Addon Manager: Cleanup package_details.py 2023-02-20 21:09:51 -06:00
Chris Hennes
4d6e7cd3a4 Addon Manager: pylint cleanup of package_list.py 2023-02-20 21:09:51 -06:00
Chris Hennes
892c0a95f6 Addon Manager: Remove direct FreeCAD import in tests 2023-02-20 21:09:51 -06:00
Chris Hennes
2e2153813f Addon Manager: Silence linter test setup complaints 2023-02-20 21:09:51 -06:00
Chris Hennes
b4ac20b50b Addon Manager: HTML standard compliance 2023-02-20 21:09:51 -06:00
marioalexis
976b0b8d3f Fem: Implement getNodeElements function 2023-02-21 03:13:13 +01:00
Chris Hennes
9c6164bc07 Addon Manager: Add SPDX license ID to all files 2023-02-20 15:39:47 -06:00
Uwe
b6d186ef73 [FEM] [skip ci] Command.cpp: fix loo long line 2023-02-20 03:13:19 +01:00
Uwe
60e089d52a [FEM] fix typo in command
- to be uniform as all other commands begin with "CmdFem..."
2023-02-20 02:45:14 +01:00
Uwe
2bf7ccab68 [FEM] fix reported typos and inconsistencies 2023-02-20 02:07:33 +01:00
Uwe
1f8f2bf6cb [FEM] add new example file for flow and heat
- also extend examples libraries for (more to come) examples with multiphysics (multiple equations)
2023-02-20 02:06:48 +01:00
Chris Hennes
b00572548f Addon Manager: Refactor macro
Reduce coupling with FreeCAD core.
2023-02-19 15:49:24 -06:00
Chris Hennes
7b590eace0 Addon Manager: Refactor interface to FreeCAD 2023-02-19 15:49:24 -06:00
luzpaz
c14f58d6f3 Fix various trailing whitespace issues and typos 2023-02-19 10:59:14 -06:00
Uwe
902566c6ce [FEM] improve pvtu file filtering
- only filter when necessary
- avoid unnecessary function calls
- fix bug that objects were not made visible but invisible
2023-02-19 17:37:11 +01:00
Uwe
14de59ec35 [Material] fix card selection bug
- fixes bug number 7 of this list: https://forum.freecad.org/viewtopic.php?style=5&p=489666#p489666

- also fix warning about too short variable name
2023-02-19 07:46:52 +01:00
Uwe
8a16e01e39 [FEM] fix material dialog logic
- when the option "use this task panel" is not checked the edit fields must be disabled.
  This also fixes the often hard to understand issue that while scrolling to the end of the dialog the material suddenly changes to "_transient" because the scroll wheel can trigger to change the edit fields.
2023-02-19 04:44:07 +01:00
Uwe
b31d9d1e34 [FEM] fix material handling of fluids
- the material editor failed for Fluid materials because this info was not passed to it. Instead always solid materials were loaded.

- also fix warning about too long variable name and remove unnecessary debug code
2023-02-19 02:57:12 +01:00
Uwe
4b99ce1aac [Material] fix bugs with missing icons
- at the moment you get several warnings about missing icons when starting the Material editor
  The reason is that they are not registered in CMake

- also remove icon from Material icon editor. As it is a child of FreeCAD it should have the same FreeCAD icon as all other FreeCAD widgets.

- also fix warning about too short variable name
2023-02-19 00:47:44 +01:00
Uwe
65195d99b0 [FEM] update Elmer examples
- active already the analysis
- generate the mesh preferably directly, also if this fails, load the rough meshes
- use value for Air is they are in our Air material card
- apply material to the body (not necessary but good practice, the examples are there to teach people and for more complex models setting the material to a body is important)
2023-02-19 00:45:57 +01:00
Uwe
a7c5fde0e3 [FEM] fix analysis activation issue
- after activating an analysis the FEM toolbar buttons did not become active
2023-02-18 22:28:35 +01:00
Uwe
de95a22eae [FEM] connect CCX solver to results pipeline
- it was often criticized that our default solver CCX is not connected to the results pipeline system. One had to connect it manually, the create the different filter etc. but as soon as one changed a constraint and re-run the solver the whole work was gone and one had to recreate the pipeline.
This PR solves this by creating a pipeline and by reloading new results to it on a solver re-run.
The CCX results dialog feature is not touched, since the pipeline is hidden when the dialog is active.
2023-02-18 04:05:05 +01:00
luzpaz
c48b426182 Fix source comment and documentation typos
[skip ci]
2023-02-17 08:32:03 -06:00
Bernd Hahnebach
5888edef05 Arch: IFC, export, improve debug messages if axis object has not been exported 2023-02-17 15:02:18 +01:00
Bernd Hahnebach
dc580dd6b5 Arch: IFC, import, fix import break because of a missing variable 2023-02-17 13:18:32 +01:00
Bernd Hahnebach
acb78e8e88 Arch: IFC export, fix because one malformed geometry can break the whole export 2023-02-17 10:51:58 +01:00
Roy-043
b8a7ba0c2e [Arch] Arch_Site did not handle movable children (#8510) 2023-02-17 10:09:53 +01:00
Uwe
7534c6748c [FEM] fix possible crash on changing the VectorMode
- if pvtu file filtering is on, there is by design not on every call of WriteColorData() data
  (on other occasions of GetArray(array) the result is checked, for two calls is was forgotten)

- also some automatic code formatting according to our current clang file
2023-02-17 02:32:54 +01:00
Roy-043
29cebe45c0 [Arch] Arch_Stairs fix for #8444 (#8518)
- Recompute should not be called from onDocumentRestored. It causes issues when updating complex stairs.
2023-02-16 21:09:06 +01:00
Roy-043
dfc57aa80e [Arch] Allow Arch_stairs with 2 steps (#8515)
- Fixes #7050
2023-02-16 20:56:22 +01:00
luzpaz
08b3bf4462 Fix various trailing whitespace issues 2023-02-16 09:30:22 -05:00
Yorik van Havre
b88fb1bcfd Merge pull request #8506 from Roy-043/Arch-children-of-Component-did-not-rotate-with-Host
[Arch] children of Component did not rotate with Host
2023-02-16 09:28:32 +01:00
Uwe
4639283b45 [FEM] make pvtu file filtering optional
- it is sensible to filter by default, however, it turned out that on some complex models Elmer fails to compute if the mesh volume regions are too small (in most cases) or at a certain mesh region. By disabling the filtering, one gets at least for the latter case a visual feedback where the mesh volume of the different CPU are (by also setting a transparency to the result pipeline).
2023-02-16 02:32:40 +01:00
Roy-043
1474f36b74 [Arch] children of Component did not rotate with Host 2023-02-16 00:07:07 +01:00
Abdullah Tahiri
e566daa1af Sketcher: Correct font sizes and updates
========================================

Fonts:
- SoDatumLabel internally uses QFont and thus points. It was being fed pixels, for which the configured size in preferences did not match the actual on screen size. This is corrected.
- Font sizes fed directly from parameters to the coin nodes skeleton were not being updated, as the parameter observer is initialised after the nodes are created, and the parameter
observer was not configured to update this nodes. This is corrected.

Colors:
- Some color parameters were not being being updated by the parameter observer. This is corrected.
2023-02-15 17:29:46 +01:00
Yorik van Havre
39f4b8c091 Merge pull request #8495 from luzpaz/fem-trailing-newlines
FEM: fix trailing newlines
2023-02-15 17:02:16 +01:00
Yorik van Havre
2bcde04bfe Merge pull request #8491 from luzpaz/draft-typos
Draft: fix typos
2023-02-15 17:01:30 +01:00
wmayer
a2928cf0f6 Fem: fixes #8485: transparency of pipeline objects is visually lost 2023-02-15 14:52:44 +01:00
luzpaz
d4796dd1d4 FEM: fix trailing newlines 2023-02-15 13:41:38 +00:00
Uwe
b0e50b8eb2 [FEM] Contours: disable keyboard tracking
- otherwise the contour creating algorithm would be invoked on every keystroke
- also improve a code comment
2023-02-15 14:31:10 +01:00
Uwe
a84d6d19e6 [FEM] improve visualization of pvtu files
- To speed up analyses one calculates on several CPU cores. The result is a partial VTU file.
Unfortunately when applying a transparency the boundaries of the volumes computed by each CPU core are always visible. This makes it often unusable for visualizations.
The solution is to filter the results the same way a clip filter does.
2023-02-15 14:22:45 +01:00
luzpaz
e033dd6ba5 Draft: fix typos 2023-02-15 13:13:29 +00:00
Uwe
99a7262e60 [FEM] improve checks for datasets
- check if datasets exists before we access them
- speed up the check for the datatype by testing after the downcast
2023-02-15 10:54:45 +01:00
luzpaz
3b67713b24 FEM: fix trailing whitespace
Fix trailing whitespace in `Fem/App/FemPostFilter.cpp`
2023-02-15 10:45:00 +01:00
Uwe
ee59d2ce58 [FEM] [skip ci] add missing header for precompiled headers 2023-02-15 00:42:54 +01:00
wmayer
61d24dedf7 Part: add integration tests 2023-02-14 22:56:42 +01:00