Commit Graph

28728 Commits

Author SHA1 Message Date
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
Uwe
b397633f27 [FEM] add framework to scale result mesh values
- it seems that we will need to scale result values (probably for the Elmer Eigen solver)
  This PR adds the framework to do this. It is meant for Elmer but designed versatile.
2022-08-08 01:48:08 +02:00
Uwe
e27da52b9c [FEM] fix pipeline recompute bug
- on recomputing scalar or warp filters the information about the field was lost.
  This is because the validity of an array was tested before it is actually filled

- also fix MSVC warning of using a C++ keyword as variable
- also avoid an unnecessary recompute after Elmer solver was run
2022-08-08 00:06:54 +02:00
wmayer
2d592e06a0 Gui: improve integrated Python console:
* correctly handle the case that Py_BuildValue() can return a null pointer
* fix a latin1 <-> UTF-8 conversion problem
2022-08-07 17:50:28 +02:00
Uwe
05816ee764 [FEM] Elmer: use defaults of ElmerGUI
- use also for the linear solver the defaults of ElmerGUI
2022-08-07 16:19:20 +02:00
Uwe
306cf25894 [FEM] Elmer: fix for electricforce
- the default is to execute this solver after previous solution converged. This has to be output via the Exec Solver parameter
2022-08-07 16:17:55 +02:00
Uwe
c98864ebc9 [FEM] pipeline fix when there is no field
- for the case that pipeline with a field is active, then another pipeline that does not display any field, we cannot just return because the pipeline cannot have the color bar range of the prevision pipeline
2022-08-07 15:17:50 +02:00
Uwe
b6d0eeaf66 [FEM] [skip CI] set unit for potential loads 2022-08-07 15:15:23 +02:00
Bernd Hahnebach
d9fcdb8c3f FEM: Python pep8 code formatting 2022-08-07 09:56:52 +02:00
Uwe
c86e4b7685 [FEM] update Elmer test files 2022-08-07 06:54:16 +02:00
Uwe
42e4f53366 [FEM] Elmer: fix pipeline update issue
- the existing result pipeline can have several children. They must all be updated.
2022-08-07 06:22:42 +02:00
Uwe
31a3a14b98 [FEM] Elmer: resale the mesh using Elmer
- according to Peter from the Elmer team, we can use Elmer for both, scaling in and scaling back just for consistency
2022-08-07 05:32:54 +02:00
Uwe
2b7d893b46 [FEM] [skip CI] fix a typo for nonlinear solving 2022-08-07 05:24:37 +02:00
Uwe
93398ebdd9 [Fem] Elmer: change default nonlinear tolerance
- ElmerGUI uses 1e-7 as default, so we should do too
2022-08-07 04:33:21 +02:00
Uwe
a2bd654fd1 [FEM] make point filter aware of force density 2022-08-07 04:32:12 +02:00
Uwe
c4097ede8f [FEM] Elmer: fix default for heat
- revert change from comm it commit 117d789e - "None" is the correct default. (I mixed this up with Navier-Stokes)
2022-08-07 02:45:08 +02:00
Uwe
7ffbf56c4e [FEM] fix selection issues with electrostatic 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 voltage and you cannot figure out which ones.
To fix this use another selection widget
2022-08-07 02:33:09 +02:00
Uwe
e3edfc1ca3 [FEM] [skip CI] ViewProviderAnalysis.cpp: .clang formatting fixes
- done automatically by MSVC
2022-08-07 02:28:40 +02:00
Bernd Hahnebach
e93f61081a FEM: Python pep8 code formatting 2022-08-07 01:39:52 +02:00
Uwe
0b969fbc0a [FEM] Elmer: polishing for nonlinear system
- add tooltips
- relaxation factor is usually not below 0.1 thus no expression is necessary
- sorting
2022-08-07 01:21:42 +02:00
Uwe
f7099cd43c [FEM] Elmer: fixes for electrostatics
- one needs to specify a file when calculating the capacitance matrix
- add electric flux to point filter results
- add missing parameters
- also some sorting
2022-08-07 01:11:07 +02:00
Uwe
f782c46f72 [FEM] Elmer: add missing parameters for Navier-Stokes solver 2022-08-06 23:36:40 +02:00
Bernd Hahnebach
dc05f8e9b9 FEM: Python pep8 code formatting 2022-08-06 22:29:12 +02:00
Uwe
25c33ade64 [FEM] Elmer: code improvements
- don't redefine lists twice
- also fix mistake for heat - the default is computed convection
2022-08-06 22:20:44 +02:00
Uwe
4a8e4a8429 [FEM] Elmer: output the equation-specific settings for Navier-Stokes 2022-08-06 22:01:25 +02:00
Uwe
057a19af82 [Fem] Elmer: output the equation-specific settings
- equation-specific things were not set at all. This is the first step for the heat and Stress equation
2022-08-06 21:26:23 +02:00
wmayer
1f20e692ac Mod: [skip ci] minor improvements 2022-08-06 20:32:37 +02:00
Bernd Hahnebach
0ed91f1b6a FEM: Python pep8 code formatting 2022-08-06 20:16:10 +02:00
Uwe
d3e920f7cd [Fem] Elmer: writer: remove unused variable 2022-08-06 20:05:23 +02:00
Uwe
40629bb2bf [Fem] Elmer: update tolerances
- update tolerances also for existing analyses to fix the bug that users see e.g. "0.001" and not the actual used tolerance
- also a fix for new stress analyses
- also a formatting fix
2022-08-06 20:01:24 +02:00
Uwe
e324532cd8 [App] [Spreadsheet] fix compilation errors
- introduced by #7318 and #7319
2022-08-06 19:59:06 +02:00
berniev
53ba98d636 Mod: use empty 2022-08-06 19:30:13 +02:00
berniev
22dcf5866f App: use empty 2022-08-06 19:29:59 +02:00
Uwe
125d2962c7 [FEM] Elmer: next step to fix eigenfrequency analysis
- add missing parameters to perform modal analyses
- set mandatory complex statement
2022-08-06 18:27:51 +02:00
berniev
2db561561e Gui: use empty 2022-08-06 16:35:45 +02:00
wmayer
54a0f44b81 Mesh: implement smoothing based on median filter 2022-08-06 16:08:20 +02:00
Uwe
ebda764bf1 [FEM] Elmer: fix mistake with transient solving
- there is proper info, just in another Elmer manual. This unveiled my mistake - the timestepping parameters are a list
2022-08-06 16:01:55 +02:00
Bernd Hahnebach
83172137e7 FEM: Python pep8 code formatting 2022-08-06 13:33:01 +02:00
Uwe
0567a7c026 [FEM] Elmer: fixes for the simulation parameters
- output equation-specific values only if this equation is used
- use Elmer's default for BDF order as default for FC too and allow to change it
- don't hardcode to Steady State. Transient must be possible too, this way add parameters to run a transient analysis
2022-08-06 04:32:18 +02:00
Uwe
3ab3319c65 [FEM] Elmer: update test files 2022-08-06 04:22:08 +02:00
Uwe
46b084e5f6 [Fem] Elmer: don't output unused parameters
- many of the new parameters don't have to be output if they are not used

- also some sorting
2022-08-06 04:06:10 +02:00
berniev
47ac049e14 Mod: use emplace_back 2022-08-05 10:36:16 +02:00
berniev
066656f62a Gui: use emplace_back 2022-08-05 10:33:41 +02:00
berniev
ac81a8380f App: use emplace_back 2022-08-05 10:31:51 +02:00
Uwe
fce9a2fcfb [FEM] Elmer: add missing parameters for flux equation
- also add tooltips
2022-08-05 05:09:54 +02:00
Uwe
a046c1aaa6 [Fem] Elmer: add missing settings for the stress solver
- the usually mandatory setting DisplaceMesh was missing leading to imprecise results. Now the calculated faceload is almost the exact same as with CCX
- also add most of the other settings Elmer 9 provides
- also add tooltips
2022-08-05 04:17:39 +02:00
Uwe
e4fb05f151 [Fem] Elmer: update test files 2022-08-05 02:39:55 +02:00
Uwe
ddd7fb77c1 [FEM] Elmer: push mesh scaled to Elmer
- reverts commit 73fba1b7 - the scaling it correct
- there is a bug in Elmer that the heat source is not aware of the scaling
- write the scaling directly to the solver, not to the mesh itself. (make in principal no difference but we are closer to the solver)
2022-08-05 02:13:04 +02:00
wmayer
23b05a5fe7 Mesh: consider placement in MeshPy::foraminate 2022-08-05 00:46:48 +02:00
wmayer
0b4fcb8f20 Mesh: consider placement in MeshPy::nearestFacetOnRay 2022-08-04 20:47:33 +02:00