Uwe
d00e52c81d
[FEM] settings dialogs: remove unused includes
2022-03-17 21:27:46 +01:00
Uwe
1ddb4d27e7
[FEM] remove unused headers from WBs main files
...
- also some code style fixes by MSVC
2022-03-17 20:33:33 +01:00
Uwe
2e084ed18a
[FEM] remove some unused includes for some dialogs
...
- also some style fixes made by MSVC
2022-03-17 19:53:12 +01:00
wmayer
9160f06e1c
Base: rename BaseExceptionFreeCADError to PyExc_FC_GeneralError
2022-03-17 14:45:48 +01:00
wmayer
d69defaa3c
Py: replace BaseExceptionFreeCADError with more suitable exception types
2022-03-17 13:54:23 +01:00
Uwe
c0ceecbcf6
[FEM] Contact and Displacement: remove unused headers
2022-03-17 03:46:41 +01:00
Uwe
dead2fc8f1
[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
c6ac4affc8
[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
122e137939
[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
e6f488393a
[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
14dd46a0fd
[FEM] add tooltips for electrostatic dialog
2022-03-15 04:27:31 +01:00
Uwe
0f05a7d378
[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
ac52b39328
[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
075276e215
[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
6efe74a554
Merged crowdin translations
2022-03-14 12:21:01 +01:00
wmayer
0054cbddaa
Fix coverity issue:
...
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
wmayer
76d1180283
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
08552c6e68
Apply multi-thread configuration for Calculix also when started via task panel
2022-03-13 13:32:30 +01:00
Anders Torger
65718f0e51
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
8d3c66cf18
Core/Mod: modernize C++11
...
* use nullptr
2022-03-09 21:55:31 +01:00
Uwe
bda12907de
[Gui] rename the Qt header list
2022-03-07 20:35:38 +01:00
wmayer
1ca7429705
Gui: Optimize includes to reduce compile time
2022-03-07 20:29:18 +01:00
Yorik van Havre
7653a9473d
Merged crowdin translations
2022-03-07 14:55:22 +01:00
wmayer
58a719e207
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
95c70e7f4c
App: use forward declarations
2022-03-04 21:09:46 +01:00
Syres916
896b036aee
[FEM] Bugfix Gmsh Version check to be...
...
...Python 3.6 compatible
2022-02-26 17:15:28 +01:00
Uwe
0ead5a793b
fix more typos to silence the spellchecker CI
2022-02-21 13:20:06 +01:00
Yorik van Havre
19b89b1085
Merged crowdin translations
2022-02-14 12:31:57 +01:00
marioalexis
efe0a39d34
Fem: Call PyMem_Free() to free allocated buffer
2022-02-09 16:05:14 +01:00
wmayer
343f31589a
Fem: fix crash caused by PropertyPostDataObject::getPyObject()
2022-02-02 16:34:30 +01:00
Yorik van Havre
b0b1c0afbb
Merged crowdin translations
2022-02-01 12:59:42 +01:00
wmayer
54e2eabccb
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
7ef448572d
Fem: fix possible crash when loading a VTK file
2022-01-27 10:37:16 +01:00
Yorik van Havre
b3e2c87530
Merged crowdin translations
2022-01-26 14:15:14 +01:00
wmayer
3dfdc6804f
Fem: [skip ci] fix runtime failure when using Py3.10
2022-01-24 10:28:22 +01:00
Ajinkya Dahale
ec00d35c5f
[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
e33ef084ff
Merged crowdin translations
2022-01-10 11:23:59 +01:00
Yorik van Havre
de374cbdfa
Updated ts files (after @chennes ludate fix)
2022-01-10 11:15:28 +01:00
Uwe
9057093f02
[FEM] use predefined M_PI
2022-01-07 21:50:47 +01:00
Ajinkya Dahale
c558fc7195
[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
0aeed0e53b
[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
8a59607517
[FEM] Use OpenMP for FemMesh::{getNodesByEdge, getNodesByVertex}
2022-01-07 01:23:01 +01:00
Ajinkya Dahale
147f2a0b07
[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
Philipp Knechtges
8087b34840
[FEM] OpenMP-parallelize FemMesh::{getNodesBySolid,getNodesByFace}
...
Projecting nodes onto TopoDS_Shapes is a costly task, which can
potentially take a lot of time, so let's parallelize it.
2022-01-07 01:23:01 +01:00
Philipp Knechtges
2336ea1b59
[FEM] speed up get_femelement_sets in meshtools.py
...
The previous implementation was quite slow in filling up the remaining_femelements list.
The new implementation fixes this by using numpy for the heavy work.
2022-01-07 01:23:01 +01:00
wmayer
e1b03bc0eb
[skip ci] fix some typos
2021-12-31 14:03:51 +01:00
Yorik van Havre
e8f723b99c
Fem: Fixing translation context
2021-12-30 13:06:05 +01:00
Yorik van Havre
6cb3782c03
Merged crowdin translations
2021-12-29 12:20:12 +01:00
wmayer
d88165c284
Fem: include FemGlobal.h
2021-12-18 14:35:20 +01:00
wmayer
e743c30f3b
Add Global.h headers to modules
2021-12-18 14:06:40 +01:00