Commit Graph

30076 Commits

Author SHA1 Message Date
Uwe
3a2c408c8f [Gui] fix NaviCube step handling
- as reported in https://forum.freecadweb.org/viewtopic.php?f=3&t=71050
2022-08-13 15:02:26 +02:00
Uwe
70ac983f2a [FEM] Elmer: only output a property if necessary 2022-08-13 14:39:06 +02:00
Uwe
5368f496b7 [FEM] Elmer: fix heat flux handling
- the heat flux in the temperature constraint is not the heat flux from the heatflux constraint. The latter is in W/m² while the first one is W/mesh node
2022-08-13 05:54:34 +02:00
Uwe
c183228fc3 [FEM] Elmer: add support to turn off solvers
- with this property the linear solver is turned off. As consequence one can this way also disable the execution of an equation without the need to delete the equation object

- also add missing preconditioners
2022-08-13 05:51:26 +02:00
Uwe
7c04752859 [FEM] Elmer: add tooltips 2022-08-13 03:45:42 +02:00
Uwe
a2ac0ddc9a [FEM] Flow constraints: fix wrong tooltips 2022-08-13 03:35:22 +02:00
Wanderer Fan
817aca49f4 [TD]fix merge conflicts 2022-08-12 18:13:52 -04:00
Benjamin Bræstrup Sayoc
b498e85f43 [TechDraw] Remove uneeded redefinitions of inherited functions 2022-08-12 18:13:52 -04:00
Wanderer Fan
93fb6b999c [TD]fix LineFormat ctor line color 2022-08-12 13:00:21 -04:00
wmayer
779a728a8c Gui: remove redundant void 2022-08-12 17:59:59 +02:00
grubertechnic
fd0a0dd1a2 [TechDraw] fix up button in TaskProjGroup 2022-08-12 10:40:33 -04:00
wmayer
71caf67686 Gui: clear combo boxes before re-filling them, fix handling of icon size in preferences pack 2022-08-12 14:08:04 +02:00
Uwe
be50ea3d8f [FEM] Elmer: fix handling if fluids + solid materials
- as already reported in the forum, it was not possible to make a flow simulation when there is also solid material.
2022-08-12 05:29:42 +02:00
Uwe
41e0d94467 [FEM] Selection: fix error for 2D shapes
- 2D shapes have no "Shape" attribute. This attribute was accessed before checked it it exists
2022-08-12 05:26:56 +02:00
Uwe
9c68960a18 [FEM] Elmer: allow lower relaxation factor
- despite the Elmer docs say 0.01 is the lover limit, for fluids like water, one might need down to 1e-4
2022-08-12 05:24:55 +02:00
wmayer
f632712724 Gui: don't show non-existing and unusual directories in file dialog 2022-08-11 17:46:13 +02:00
Tobias Frost
d20a2c60a1 Replace edit-cut.svg
Replace 2 instances of edit-cut.svg with the version from the tango icon
library to reslove license issue. Closes #7347.

Tango Icon Library used: http://tango.freedesktop.org/releases/tango-icon-theme-0.8.90.tar.gz
Location within the tarball:
./tango-icon-theme-0.8.90/scalable/actions/edit-cut.svg
2022-08-11 10:23:02 -04:00
wmayer
838a91fafb Draft: fix snapper icons
* Add convenience function to get 3D views from MDI area
* Use 'inherits' instead of 'QMetaObject.className()' to check more reliably for sub-classes
2022-08-11 11:50:53 +02:00
Wanderer Fan
cf52d87dba [TD]fix multiple dimension drag 2022-08-10 14:09:08 -04:00
Chris Hennes
765031b634 Addon Manager: Finish pylint cleanup of startup workers 2022-08-10 10:53:54 -05:00
Chris Hennes
69ed6aa1c1 Addon Manager: pylint cleanup in startup workers 2022-08-10 09:17:02 -05:00
Uwe
49d4b75716 [FEM] [skip CI] formatting fix for potential 2022-08-10 13:42:29 +02:00
Uwe
96cd900691 [FEM] electric Potential: add missing conversion
- add missing conversion of property change that was already done before FC 0.20
2022-08-10 13:32:32 +02:00
Uwe
1dc4ed454e [FEM] Elmer: fix material bug and improve material handling
- for fluid material writing the elasticity solver failed with unknown Young Modulus
- fix regression with checking for fluid material. Checking the material of the bodies is not sufficient. One can e.g. have a solid without bodies defined, then it applied to all bodies and there might be a fluid defined for only one body. Checking the body's material would then deliver there is no fluid
2022-08-10 06:16:38 +02:00
Uwe
88155e105a [FEM] update a bimetal testfile 2022-08-10 04:26:19 +02:00
Uwe
6b9e822f03 [FEM] Elmer: set constraints for relaxation factor
- the relaxation factor is crucial for nonlinear systems thus help the user by setting constraints and convenient steps.
Since the property stays a float no update is necessary, existing properties just stay a normal float
2022-08-10 04:10:47 +02:00
Uwe
4c34d5f092 [FEM] Elmer: notify users about missing fluid material
- it was often unclear when no flow equation was written to the case.sif (was a regression FC0.20)
2022-08-10 03:29:34 +02:00
Uwe
cd1991f4ea [FEM] fix bimetall example
- add missing density
- set a second temperature to make the heat solver actually working
- adapt to new defaults
2022-08-10 02:27:27 +02:00
Uwe
388dab1cf2 [Material] add materials used by our examples
- add generic copper and invar
- also extend the generic aluminum card
2022-08-10 02:08:35 +02:00
Uwe
430ddac697 [FEM] Elmer: automatic update for BiCGstablDegree
- up to last week we used the invalid BiCGstablDegree 0 thus update to the default of 2
2022-08-10 01:50:19 +02:00
Uwe
03406e7949 [FEM] fix selection issues with flow velocity constraint
- same fix as commit dc851bd8 for flow velocity constraint
- the used selection widget did not highlight the selected faces. This made it very hard to work with when one has an existing document where e.g. 5 faces have a certain velocity and you cannot figure out which ones.
To fix this use another selection widget
2022-08-10 01:17:53 +02:00
wmayer
81ce5cb8ce Gui: revert changes of 3fd70d378b for GestureNavigationStyle 2022-08-09 23:50:05 +02:00
wmayer
c78e792737 Part: fix build failures with OCC >= 7.6 2022-08-09 18:42:38 +02:00
wmayer
c87e1cc1c2 clang: fix warnings [-Winconsistent-missing-override] 2022-08-09 17:36:25 +02:00
Chris Hennes
1ec8775c2c Addon Manager: Unit tests for cache loading 2022-08-09 10:23:27 -05:00
Chris Hennes
4def062fe2 Addon Manager: Improve unit tests for utlility 2022-08-09 10:23:27 -05:00
Chris Hennes
b6e2fb17d0 Addon Manager: Refactor to improve testability 2022-08-09 10:23:27 -05:00
Chris Hennes
db0afb08b2 Addon Manager: Add unit test for addon fetch 2022-08-09 10:23:27 -05:00
Chris Hennes
5bc4445ede Addon Manager: Fix macro-loading bug from refactoring 2022-08-09 10:23:27 -05:00
Chris Hennes
2e51954b2b Addon Manager: Worker refactor (round 1) 2022-08-09 10:23:26 -05:00
berniev
71dc5ead2f Mod: Use override etc 2 2022-08-09 12:52:26 +02:00
berniev
75fa455c5d Gui: Use override etc 2 2022-08-09 12:43:23 +02:00
berniev
810c3780de App: Use override etc 2 2022-08-09 12:42:02 +02:00
wmayer
00bdd16dff Base: extend Placement/Rotation API
* Add Placement::isSame() and expose to Python
* Add Placement::multRight/Placement::multLeft
* Fix PlacementPy::rotate
* Add Rotation::multRight/Rotation::multLeft
* Add a test feature FeatureTestPlacement for uni tests
* Add unit tests
2022-08-09 11:54:05 +02:00
wmayer
b35f66e7c6 Base: [skip ci] improve whitespaces 2022-08-09 08:25:59 +02:00
Markus Fröschle
0c06f0d01d Fix Placement.rotate() to match documentation
Documentation for Placement.rotate() claims this function would be
compatible to TopoShape.rotate() which isn't exactly correct as the
generated placements differ because of backwards multiplication.

This commit adds a "comp" (as in "compatible") keyword argument that -
when "True" (default is False) - produces a Placement that is interchangable with the one
that is generated from TopoShape.rotate().
2022-08-09 07:22:46 +02:00
Uwe
f8769643cd [FEM] Elmer: fix broken example
- (a regression to FC 0.20.0), use new settings ("direct" is already the default, iterative solving takes here about 5 times longer, DisplaceMesh must be False)
2022-08-09 05:38:02 +02:00
Uwe
8c351a3c3c [FEM] increase size of generic solver task panel
- increase it to size of CCX panel to create more room for the log output
2022-08-09 03:23:12 +02:00
sliptonic
ebb0f5934c Merge pull request #7333 from mlampert/bugfix/external-thread-issues
PATH: Bugfix/external thread issues
2022-08-08 10:11:23 -05:00
berniev
5fa05ab83d Mod: Redundant_string_initialization 2022-08-08 16:52:42 +02:00