Commit Graph

36 Commits

Author SHA1 Message Date
wmayer
3863cff6c0 Fem: Apply clang-format 2023-09-25 14:50:43 +02:00
wmayer
10ae6c06ad FEM: modernize C++: use default member init 2023-08-23 00:55:03 +02:00
Uwe
65b1952cad [FEM] improve pvtu file filtering
- catch case of only 2D objects
- use vtkDataSet as input for all filters
2023-02-24 03:46:47 +01:00
Uwe
92b1e6a6fb [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
Uwe
72969d5931 [FEM] ViewProviderFemPostObject: fix a typo 2023-02-10 16:08:03 +01:00
Uwe
2ffd650f20 [FEM] add support to show absolute value result fields
- for harmonically driven forces, the results of course also have an imaginary part. Elmer outputs the real and the imaginary parts as separate result field. However, for several applications one needs the absolute (sqrt(Re^2+Im^2)
- therefore offer also absolute field if there are real/imaginary results
2023-02-09 14:36:26 +01:00
Uwe
6757d1e853 [FEM] ViewProviderFem*: remove unused includes
- also sort includes
2022-10-03 15:01:37 +02:00
wmayer
c87e1cc1c2 clang: fix warnings [-Winconsistent-missing-override] 2022-08-09 17:36:25 +02:00
berniev
71dc5ead2f Mod: Use override etc 2 2022-08-09 12:52:26 +02:00
berniev
f4ffd15864 Mod: redundant void 2 2022-08-08 10:27:50 +02:00
Uwe
ee127273c1 [FEM] fix pipeline recompute issue
- after a simulation was run, the pipelines and its childs are recomputed but its shape coloring is not updated.

- also update XML documentation
- also remove comment in tasks.py for now
2022-08-08 02:04:07 +02:00
wmayer
a5ccef8146 Fem: use SoAnnotation to highlight result pipeline objects 2022-07-31 17:51:31 +02:00
wmayer
9ddbecb864 Fem: implement a selection observer to notify a ViewProviderFemPostObject when its selection status has changed 2022-07-31 14:01:23 +02:00
Uwe
591b0f3e1b [FEM] update ViewProvider selection code
as suggested in
7884cb92d9 (r79459854)
2022-07-27 03:51:46 +02:00
Uwe
ac27f4700a [FEM] fix missing colorbar update for FemPostObject
- fixes issue #7230

- to update the color bar for post objects, the Field property has to be reset to trigger this. This PR does this.
2022-07-22 01:20:18 +02:00
wmayer
05f024678c Fem: scale imported vtk data set 2022-04-15 21:07:40 +02:00
wmayer
7ffc05ec59 Fem: fix error: Unhandled Base::Exception caught in GUIApplication::notify 2022-03-28 15:56:49 +02:00
Uwe
5212bd79fe [skip CI] [FEM] fix a comment
- remove misleading comment
- add a comment
2022-03-24 14:52:28 +01:00
Uwe
a8d398e896 [FEM] fix deletion issue
- as reported here: https://forum.freecadweb.org/viewtopic.php?p=582532#p582532

Now only a warning is issued if the user tries to delete the main PostObject if it is not empty.
2022-03-24 05:44:02 +01:00
Uwe
89d1446a13 [FEM] scale fix for post meshes
- post result meshes must inherit the parent scaling
- also change Scale to enum as proposed by @wwmayer
2022-03-24 02:37:10 +01:00
Uwe
e09383ce6f [FEM] revert incorrect header removal
- also add comment to prevent this in future
2022-03-23 16:22:57 +01:00
Uwe
a908e6fece [FEM] remove some unused includes 2022-03-23 05:43:40 +01:00
Uwe
80ad680dc9 [FEM] SI unit fixes for Elmer
- since we use consistently SI units (as recommended my the Elmer forum), we need to scale the input mesh (we use ElmerGrid that has an option fur this purpose)
- Since the result will be in the scaled mesh, we need to scale it back

With this PR, one gets now correct result independent of
- the used unit scheme
- the simulation type (electrical or thermo-mechanical)
2022-03-23 05:00:40 +01:00
wmayer
99dc3fec76 Fem: include FemGlobal.h 2021-12-18 14:35:20 +01:00
wmayer
103f094088 PVS: V1762 It is possible a virtual function was overridden incorrectly 2020-07-18 10:59:28 +02:00
Bernd Hahnebach
e680701037 FEM: add gitattributes file to let git manage file endings and normalize them 2019-12-12 07:29:15 +01:00
Bernd Hahnebach
063a3e56ab FEM: vtk post, typo in Tranparency property 2018-08-26 20:47:37 +02:00
luz.paz
1d8aaad976 FEM: typo fixes 2018-04-29 20:40:15 +02:00
luzpaz
0c0a7824e1 FEM: Typo residuals 2018-01-01 22:54:46 +01:00
Bernd Hahnebach
e1c5c8fe38 FEM: code formating: remove trailing white spaces 2016-08-04 17:45:04 +02:00
Bernd Hahnebach
21b68eb263 FEM: vtk color bar: fix change of min max value 2016-06-20 17:20:07 +02:00
Stefan Tröger
3d5bcb5083 FEM Post: Handle wireframe with internal wires 2016-05-18 21:35:15 +02:00
Stefan Tröger
524dd7dbdc FEM Post: integrate FreeCAD color system 2016-05-18 21:35:15 +02:00
Stefan Tröger
43a298ee24 FEM Post: Command for creation of post pipeline from result 2016-05-18 21:35:15 +02:00
Stefan Tröger
d0a8f6d820 FEM Post: Detail filter infrastructure 2016-05-18 21:35:15 +02:00
Stefan Tröger
02095a49af FEM Post: Move post processing to fem objects 2016-05-18 21:35:15 +02:00