Uwe
fb5479e178
[FEM] update includes
...
- forgot to commit this in previous commit
2022-07-03 22:59:37 +02:00
Uwe
e899c221cc
[FEM] fix wrong console outputs for fluid materials
...
- since a while ThermalExpansionCoefficient is used, VolumetricThermalExpansionCoefficient is only used for the material task panel
- as already stated in a code comment, the unit of VolumetricThermalExpansionCoefficient is ThermalExpansionCoefficient, therefore we must check for ThermalExpansionCoefficient
- we must also check if ThermalExpansionCoefficient exists
- Adapt the existing fluid material cards to use the ThermalExpansionCoefficient
2022-07-02 05:36:43 +02:00
Mihail
6eae0c021a
FEM WB Elmer viscosity bug fix.
...
In Elmer there was errors "Viscosity not found" if used mixed solid and flow calculation.
This fix disables Stokes-Navier eruation for Solid objects.
modified: src/Mod/Fem/femsolver/elmer/writer.py
2022-07-02 05:16:50 +02:00
Uwe
5a6c52d8f3
[FEM] [skip CI] fix a typo
...
- spot by the spellchecker CI
2022-07-01 03:12:15 +02:00
wmayer
0f5725b34a
modernize C++: replace boost::function with std::function
2022-06-30 20:31:55 +02:00
mosfet80
c86f0ce670
Remove old msc ver. Freecad 0.20 require 64 bit and windows 7 or higher. For this reason, msc libraries less than 1800 will no longer be used. ( #7036 )
...
* remove msc<1800
2022-06-28 00:42:33 +02:00
Uwe
5f5ae2fe4a
[FEM] fix point filter initialization issue
...
- on opening the task dialog of existing point filter, the point value must be displayed
2022-06-27 01:07:36 +02:00
wmayer
2628fb0350
App: fix memory leaks in Enumeration class and simplify code
2022-06-25 18:18: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
wmayer
8b9484c82f
App: add pure virtual methods to PropertyGeometry to delegate it to the geometry of sub-classes
...
Following the law of Demeter add some wrapper methods to PropertyGeometry and implement them in sub-classes. As a side-effect this makes some const_cast obsolete
2022-06-24 16:15:02 +02:00
wmayer
f5235a8057
cppcoreguidelines-pro-type-union-access
...
According to https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md using union for type-punning is undefined behaviour.
Replace it with std::memcpy
2022-06-24 14:29:50 +02:00
Yorik van Havre
4c34ae7398
Merge pull request #7067 from Kuzma30/add_ts
...
Crowdin Add "new" WB to translations.
2022-06-24 13:50:43 +02:00
mosfet80
c48a569696
Boost version <=1.60 is never used in freecad 0.20 ( #7038 )
...
* Boost version 1.60 is never used in freecad 0.20
2022-06-24 02:20:26 +02:00
Kuzemko Alexsandr
b99ccc6193
Crowdin Update .ts files with current source.
2022-06-21 17:31:06 +03: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
052a2d8f82
Fem: remove string from translation
2022-06-14 01:43:45 +02:00
wmayer
d64b9750da
Fem: added signals and slots to notify when first function is added
2022-06-14 01:38:55 +02:00
Uwe
f1e3c30d6a
[FEM] point filter: use a LineEdit to output value
...
- that one copy the result to the clipboard
- also fix a typo
2022-06-14 01:21:17 +02:00
Uwe
6a0db7c42e
[FEM] next try to proper revert
2022-06-14 00:58:08 +02:00
Uwe
772a3c8ded
Revert "Fixing principal stress plots part 2"
...
This reverts commit 07119b9e5452e60a0514e43fecf95c9ebd109243.
2022-06-14 00:40:51 +02:00
FEA-eng
5f49558f6b
Fixing principal stress plots part 2
...
https://forum.freecadweb.org/viewtopic.php?f=18&t=69385
2022-06-13 19:52:16 +02:00
FEA-eng
1751520ffb
Fixing principal stress plots part 1
...
https://forum.freecadweb.org/viewtopic.php?f=18&t=69385
2022-06-13 19:51:53 +02:00
wmayer
66fab4bb81
Fem: for PointMarker and DataMarker use the internal name instead of label, in customEvent() do not expect a fix name
2022-06-13 17:37:26 +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
wmayer
6bc14921b5
Fem: do not use the Label property but the internal name to access an FEM post object via Python
2022-06-13 17:01:38 +02:00
wmayer
1da5971f00
Fem: do not access the active document but the document the FEM post object is part of
2022-06-13 16:46:15 +02:00
wmayer
82b8ddc042
Fem: use WeakPtrT classes instead of raw pointers to avoid possible dangling pointers and to avoid undefined behaviour if a wrong static_cast is performed
2022-06-13 14:21:18 +02:00
wmayer
b82230867b
Fem: improve TaskPostDataAtPoint:
...
* refactor TaskPostDataAtPoint::on_Field_activated()
* show results in a label instead of message box to reduce clicks
* in output window also print field and position as the pure values are useless
2022-06-13 12:31:37 +02:00
wmayer
0c098fe6b7
Fem: remove several superfluous casts
2022-06-13 11:14:29 +02:00
Uwe
496024af74
[FEM] make post filter Ui std::unique_ptr
2022-06-13 01:59:46 +02:00
Uwe
6df06ce223
[FEM] cut and clip filter: handle new functions
...
- on adding a new function, it should be used
- there is still a bug, see the added FIXME
2022-06-13 01:42:58 +02:00
Uwe
2879e92fb2
[FEM] line filter resolution fix
...
a resolution of zero is senseless, thus set minimum to 1
2022-06-12 23:09:33 +02:00
Uwe
007bbc532f
[FEM] fix 2 crashes with line and scalar filter
...
- same crash origin like the crash fixed earlier today: https://github.com/FreeCAD/FreeCAD/commit/c72f888682
2022-06-12 22:18:59 +02:00
wmayer
d49209049c
Gui: set a minimum width for quantity spin boxes in FEM dialogs to ignore the results of (minimum)sizeHint()
2022-06-12 20:25:40 +02:00
Uwe
950034f764
[FEM] line filter, resolution tweak
...
- disable keyboard tracking for the resolution
2022-06-12 18:22:24 +02:00
Uwe
391ed3db8a
[FEM] fix line filter resolution
...
- when the resolution changes, the data must be refreshed for visualization and the plot
2022-06-12 18:18:26 +02:00
Uwe
a0689c7f9f
[FEM] fix plots of line filter
...
- when the line geometry changed, the axis data must be refreshed to get correct plots
2022-06-12 17:24:41 +02:00
Uwe
c54e336073
[FEM] function dialogs size fix
...
- as suggested in 9713993233 (r75908012)
the labels should have maximum size policy
2022-06-12 16:52:41 +02:00
Uwe
88f48bc1c6
[FEM] remove hardcoding of spinbox sizes
2022-06-12 16:40:41 +02:00
Uwe
aefa08792a
[FEM] fixes for line filter
...
- on changing a point coordinate, either by clicking a point or by changing the spinbox in the dialog, the color bar must be refreshed and data must be evaluated for all fields along the new line
2022-06-12 16:35:08 +02:00
Uwe
f1fbc95b0d
[FEM] function dialogs fix
...
- keyboard tracking must be turned off
2022-06-12 16:25:02 +02:00
Uwe
b6ed98b5b6
[FEM] fix along line dialog
...
- as suggested in 9713993233 (r75908012)
- keyboard tracking must be turned off
2022-06-12 16:17:21 +02:00
Uwe
12b12fa941
[FEM] fix crash with data point filter
...
- when the filter is upon another filter that e.g. clipped all data, we cannot access data
2022-06-12 14:56:54 +02:00
Yorik van Havre
05301abfcb
Merged crowdin translations
2022-06-12 11:56:37 +02:00
Uwe
c33eaef4c9
[FEM] point filter: fix data display for coordinate change
...
- not only by clicking the data must be shown, also by changing a single coordinate value in the dialog.
2022-06-12 04:51:19 +02:00
Uwe
409ccfaaf8
[FEM] fix color bar handling of point filter
...
- recoloring the gradient bar for a single point is senseless. One therefore already got dozens of errors that max = min in the console. Therefore don't recolor for point filters
2022-06-12 04:02:11 +02:00
Uwe
64e6e7a781
[FEM] fix point filter output
...
fixes #7008 :
- the point data must be read also when the center changed
- when the dialog is called it has only the value for the current field, thus recompute the feature to fill all fields with data
- on clicking on a mesh point display the value at the clicked position
- due to the object's recomputation at the start, a complete recomputation (for the whole pipeline) is needed on closing the dialog
2022-06-12 03:34:02 +02:00
Uwe
94e376346e
[FEM] fix display of point filter
...
- results of 1e8 or 1e-7 in fixed notation are almost unreadable, therefore use scientific notation if necessary
2022-06-12 01:05:26 +02:00
Uwe
658d2b26e9
[FEM] point filter: fix initialization issue
...
- we cannot assume to have a geometry at position (0, 0, 1) this initialize at (0, 0, 0)
- also don't hardcode the unit in the UI file
- also fix wrong property description
- property "Radius" is not used in the code and it seems it is only there as copy paste bug once the point filter was implemented. However close to a release, keep the property and just mention it is unused.
2022-06-12 00:25:58 +02:00