Commit Graph

3672 Commits

Author SHA1 Message Date
Uwe
fea1e816cb [skip CI] [FEM] cleanup SVG code of new icon 2022-03-18 00:45:08 +01:00
Uwe
d1c582191a [FEM] add icon for the new supported MYSTRAN solver 2022-03-18 00:18:25 +01:00
Uwe
ba01b19432 [skip CI] [FEM] save an icon as plain SVG 2022-03-18 00:16:57 +01:00
Uwe
7ccfe10af4 [FEM] task dialogs: remove unused includes
- also some code style fixes from MSVC
2022-03-17 23:31:17 +01:00
Uwe
b7e1dd9ee9 [FEM] save new icon as plain SVG 2022-03-17 22:38:09 +01:00
Uwe
2769387d68 [FEM] add missing preferences settings
- since 0.19 we support to check meshes
- since 0.20 we support buckling

- also revise dialog to get rid of arbitrary limits etc.
2022-03-17 22:33:56 +01:00
Uwe
ac8fdfcad1 [FEM] settings dialogs: uniform width
- some minor changes automatically done by Qt Designer
2022-03-17 21:47:58 +01:00
Uwe
74482e9319 [FEM] settings dialogs: remove unused includes 2022-03-17 21:27:46 +01:00
Uwe
ebff4fddcc [FEM] remove unused headers from WBs main files
- also some code style fixes by MSVC
2022-03-17 20:33:33 +01:00
Uwe
4f0fd30371 [FEM] remove some unused includes for some dialogs
- also some style fixes made by MSVC
2022-03-17 19:53:12 +01:00
wmayer
e4d1ed8366 Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError 2022-03-17 14:45:48 +01:00
wmayer
1f12dca2b4 Py: replace BaseExceptionFreeCADError with more suitable exception types 2022-03-17 13:54:23 +01:00
Uwe
dd0d2686b9 [FEM] Contact and Displacement: remove unused headers 2022-03-17 03:46:41 +01:00
Uwe
23fa6ebaa9 [FEM] Bearing and FluidBoundary: code improvements
- get rid of UI-coded limits
- fix layout issues
- code simplifications
- remove unused headers
2022-03-17 03:45:38 +01:00
Uwe
1b829a560d [FEM] sanitize some dialogs
- uniform button layout
- uniform width
- fix layout issues reported by Qt Designer
2022-03-17 03:02:05 +01:00
Uwe
35e90db035 [FEM] fixes for displacement dialog
- add missing global dialog layout (reported by Qt Designer)
- get rid of arbitrary spinbox limits
- uniform UI element names
- simplify code
2022-03-16 01:29:46 +01:00
Uwe
5ca892e4aa [FEM] fix logic in electric potential dialog
if capacitance is not specified the spinbox must not be enabled
2022-03-15 04:53:59 +01:00
Uwe
95fe178d21 [FEM] add tooltips for electrostatic dialog 2022-03-15 04:27:31 +01:00
Uwe
6443310cf9 [FEM] fixes for electrostatic dialog
- fix form layout, fix distance between objects etc. (most reported by Qt's designer)
2022-03-15 03:06:15 +01:00
Uwe
3f4f885071 [FEM] fix Results dialog size
- reduce to a sensible size and get rid of unneeded spacer
- further changes automatically done by Qt's Designer
2022-03-14 22:14:06 +01:00
Uwe
66e807d98b [FEM] fix Centrif dialog size
- reduce to a sensible size and get git on unneeded spacer
2022-03-14 20:51:27 +01:00
Yorik van Havre
a55ee61840 Merged crowdin translations 2022-03-14 12:21:01 +01:00
wmayer
0f9768fb33 Fix coverity issue:
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
wmayer
d419b325fb Fem: Fix several coverity issues:
* make SelectionChangeModes an enum class
* CID 350596: Uninitialized scalar field
* CID 350572: Uncaught exception
* CID 350647: Uncaught exception
2022-03-13 14:09:04 +01:00
Anders Torger
2e6c4373bf Apply multi-thread configuration for Calculix also when started via task panel 2022-03-13 13:32:30 +01:00
Anders Torger
7d628a6e03 Add General.NumThreads = CPU core count setting to Gmsh
settings file to enable multi-threaded meshing (much faster
for larger models)
2022-03-12 23:26:55 +01:00
wmayer
08b77bff08 Core/Mod: modernize C++11
* use nullptr
2022-03-09 21:55:31 +01:00
Uwe
554635cc7d [Gui] rename the Qt header list 2022-03-07 20:35:38 +01:00
wmayer
8f786ea6ef Gui: Optimize includes to reduce compile time 2022-03-07 20:29:18 +01:00
Yorik van Havre
2cff977548 Merged crowdin translations 2022-03-07 14:55:22 +01:00
wmayer
91e4e468dd Base: move ILogger sub-classes to their own source files in order to reduce including stream classes in client code 2022-03-06 10:13:47 +01:00
wmayer
5e0cfc64ee App: use forward declarations 2022-03-04 21:09:46 +01:00
Syres916
c787a44f49 [FEM] Bugfix Gmsh Version check to be...
...Python 3.6 compatible
2022-02-26 17:15:28 +01:00
Uwe
933484e387 fix more typos to silence the spellchecker CI 2022-02-21 13:20:06 +01:00
Yorik van Havre
e1028eb65e Merged crowdin translations 2022-02-14 12:31:57 +01:00
marioalexis
705d6f139e Fem: Call PyMem_Free() to free allocated buffer 2022-02-09 16:05:14 +01:00
wmayer
eedc96b9fd Fem: fix crash caused by PropertyPostDataObject::getPyObject() 2022-02-02 16:34:30 +01:00
Yorik van Havre
d7c5800da2 Merged crowdin translations 2022-02-01 12:59:42 +01:00
wmayer
6d52673021 Fem: for view provider of post-object enable two-side rendering because the coloured object could look broken depending on the range of the color bar 2022-01-28 11:24:36 +01:00
wmayer
96aa87a45f Fem: fix possible crash when loading a VTK file 2022-01-27 10:37:16 +01:00
Yorik van Havre
233182dcd6 Merged crowdin translations 2022-01-26 14:15:14 +01:00
wmayer
eb4197aa25 Fem: [skip ci] fix runtime failure when using Py3.10 2022-01-24 10:28:22 +01:00
Ajinkya Dahale
94a71f67aa [FEM] Add reference highlighting for FEM constraints
Following constraints affected:

`ViewProviderFemConstraint`
`ViewProviderFemConstraintDisplacement`
`ViewProviderFemConstraintFixed`
`ViewProviderFemConstraintFluidBoundary`
`ViewProviderFemConstraintForce`
`ViewProviderFemConstraintHeatflux`
`ViewProviderFemConstraintPressure`
`ViewProviderFemConstraintSpring`
`ViewProviderFemConstraintTemperature`
2022-01-19 22:22:42 +01:00
Yorik van Havre
c24ca51a44 Merged crowdin translations 2022-01-10 11:23:59 +01:00
Yorik van Havre
e7e3a7517b Updated ts files (after @chennes ludate fix) 2022-01-10 11:15:28 +01:00
Uwe
b8bdf9f67c [FEM] use predefined M_PI 2022-01-07 21:50:47 +01:00
Ajinkya Dahale
e92cc10819 [FEM] Use modal add/remove for more constraints (8/??)
Use the previously added superclass `TaskConstraintOnBoundary` for more
constraints where it's usable.

Currently done:
TaskFemConstraintDisplacement
TaskFemConstraintForce
TaskFemConstraintSpring
TaskFemConstraintFluidBoundary
TaskFemConstraintHeatflux
TaskFemConstraintFixed
TaskFemConstraintTemperature
TaskFemConstraintPressure

Too different:
TaskFemConstraintTransform (single selection)
TaskFemConstraintContact (single selection, two fields)
TaskFemConstraintPlaneRotation (single selection)
(Other constraint tasks, which do not use `addToSelection`)
2022-01-07 05:33:42 +01:00
Ajinkya Dahale
744e57a963 [FEM] Add modal add/remove for dispacement constraint
With this, add/remove buttons for displacement constraint will put the user in a
selection mode if pressed when nothing is selected.

Superclass `TaskFemConstraintOnBoundary` Allows code reuse for other
constraints. We do not need this in `TaskFemConstraints` because it is only used
in a subset of constraints, particularly that applies on only some of the
boundary entities.

TODO: Confirm Undo/Redo works appropriately.
TODO: Optimize `onSelectionChanged()`.
2022-01-07 05:33:42 +01:00
Ajinkya Dahale
bdedb27d49 [FEM] Use OpenMP for FemMesh::{getNodesByEdge, getNodesByVertex} 2022-01-07 01:23:01 +01:00
Ajinkya Dahale
7e0b89a619 [FEM] Possibly fix race conditions
Race conditions introduced after using OpenMP in `FemMesh::getNodesByFace` and
`FemMesh::getNodesBySolid` because of which nodes were randomly added or removed
from sets. Solved by replacing `SMDS_MeshNode::X()` etc., which are not thread
safe, with the thread-safe `SMDS_MeshNode::GetXYZ()`.
2022-01-07 01:23:01 +01:00