Commit Graph

139 Commits

Author SHA1 Message Date
Uwe
548cab1fd8 [FEM] Elmer: add missing direct variant MUMPS
- also use capitalized wording to Umfpack as Elmer does
2022-07-30 14:40:10 +02:00
Uwe
bc69cfd19b [FEM] Elmer: a fix for keywords
- according to the Elmer solver manual, check keywords have to be quoted
2022-07-27 01:48:10 +02:00
Uwe
c4b8983a27 [FEM] Elmer writer: fix errors on missing material properties
- we must in this case raise an error and stop the writer script
2022-07-26 03:37:55 +02:00
Uwe
12440921bb [FEM] Elmer: fix python error when solver failed
we must then stop the execution of the script
2022-07-25 02:54:12 +02:00
Uwe
3a993abfb4 [FEM] fix Z88 binary handling
- when the binary was not found, the function called the non-existing binary
- also push error message for Elmer and Z88 to the status info so that user gets feedback also when report view console is not shown
- uniform wording to 'binary'
- avoid unnecessary console output
2022-07-17 01:18:21 +02:00
Uwe
4a5bf895ed [FEM] [skip CI] inform user about used CPU cores for Elmer
Since the number of used cores can for Elmer have the impact that a solver run converges or not, output this info prominently
2022-07-16 19:46:46 +02:00
Uwe
3542c73966 [FEM] [skip CI] tell user when Elmer write succeeded
At the moment the user gets no feedback, while for Z88 and CCX he gets a result
2022-07-16 19:41:43 +02:00
Uwe
6625281986 [FEM] enable to run Elmer multi-threaded
- this needs proper testing, especially on a non-Windows system

- note that for some tasks multi-threading requires non-standard additional solvers like MUMPS. Ideally the user should be informed about this, depending on the equations he uses. But this should not block this PR, meaning to use multi-threading in general.
2022-07-16 14:59:25 +02:00
Marshal Horn
cf27c91a2e Replaced python2 usage of next()
iterator.next() is deprecated in python3.
next(iterator) is the direct replacement.
In some cases a for() loop makes more sense
2022-07-14 01:28:10 +02:00
Bernd Hahnebach
edcd16afaf FEM: Python code formatting 2022-07-13 12:04:52 +02:00
Uwe
c8064ed059 [FEM] fix solver console bugs
- for Elmer and Z88 on Windows several windows pop up (console windows). This is maybe annoying and the user is wondering what is going on, but the main problem is that when you close them, you break the solving process.
Therefore, on Windows only, hide the empty popup windows.
2022-07-13 02:51:31 +02:00
Bernd Hahnebach
e49abfb350 FEM: python code formatting 2022-07-12 15:04:26 +02:00
Bernd Hahnebach
ff802c7274 FEM: elmer solver writer, add some comment in the regard of units 2022-07-12 11:35:45 +02:00
Mihail
8afc5d3f0a 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
wmayer
93d745235c Fem: scale imported vtk data set 2022-04-15 21:07:40 +02:00
Uwe
30928c0710 [FEM] Elecrostatic: use App::PropertyElectricPotential 2022-03-26 02:29:19 +01:00
Uwe
3904da9d93 [FEM] handle Elmer result mesh zoom properly
- also fix an issue that after a successful simulation, no result was visible
2022-03-24 22:01:45 +01:00
Uwe
876b694230 [skip CI] [FEM] whitespace fix 2022-03-23 05:21:48 +01:00
Uwe
389ae0ab39 [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
Uwe
b935de6851 [FEM] fix unit for Elmer
to assure we use SI units
2022-03-22 05:11:02 +01:00
Uwe
29f5e78583 [FEM] proper Elmer input file write solution
- assure that independent on the used unit scheme, SI units are written to the Elmer input file
- reverts commits https://github.com/FreeCAD/FreeCAD/commit/4a7f7a0faa and https://github.com/FreeCAD/FreeCAD/commit/28a4f6aef
2022-03-19 17:48:11 +01:00
Uwe
28a4f6aefa [FEM] fix vacuum permittivity for the Elmer solver
also a missing fix for the density
2022-03-19 03:06:27 +01:00
Uwe
4a7f7a0faa [FEM] fix the Elmer solver writer
- fixes #6604
as it was, Elmer was almost unusable because most values were input with wrong units to Elmer.
Elmer uses pure SI units

ToDo: fix the still wrong Vacuum permittivity
2022-03-19 01:53:26 +01:00
wmayer
3dfdc6804f Fem: [skip ci] fix runtime failure when using Py3.10 2022-01-24 10:28:22 +01:00
Bernd Hahnebach
c0c6212f0c FEM: solver, improve analysis member tests 2021-07-27 23:42:09 +02:00
Bernd Hahnebach
241a6a4eac FEM: tasks and writer, use generic solver input writing method name 2021-07-18 14:47:50 +02:00
Bernd Hahnebach
3e1b16b198 FEM: elmer writer, only write denisty if really needed, partitially revert 2d73444a66, unit test fix in separate commit 2021-03-17 09:26:48 +01:00
Bernd Hahnebach
69aacc2fc5 FEM: pep8 2021-03-13 21:47:50 +01:00
Bernd Hahnebach
a8c1624b94 FEM: elmer writer, add comment 2021-03-13 21:47:40 +01:00
Bernd Hahnebach
2d73444a66 FEM: elmer writer, do write density in any case 2021-03-13 20:58:56 +01:00
Bernd Hahnebach
a62b5b314b FEM: code formatting, revert parts of commit f4a65dcbb6 2021-02-16 16:17:47 +01:00
luz paz
f4a65dcbb6 FEM: doxygen 2020-12-04 17:50:00 +01:00
Bernd Hahnebach
cdc01cb20c FEM: elmer solver, add newline in output 2020-11-11 16:52:16 +01:00
Bernd Hahnebach
1ad4417b03 FEM: python code formating 2020-09-26 23:17:27 +02:00
wmayer
40bbe3515c Base: [skip ci] add an enum for unit schemes in Python to avoid to work with numbers 2020-08-07 23:02:25 +02:00
Bernd Hahnebach
557f5f30a7 FEM: elmer writer, make use of new unit schema FEM: mm, N 2020-08-07 19:19:44 +02:00
Bernd Hahnebach
15495db5df FEM: coverity, control flow issues 2020-07-20 22:34:04 +02:00
Bernd Hahnebach
33f716d78f FEM: elmer and z88 writer, add input files directory print 2020-07-20 19:37:34 +02:00
Bernd Hahnebach
ff85177526 FEM: elmer tasks, better handling of not available elmer env variables 2020-07-20 19:37:25 +02:00
Bernd Hahnebach
ce18f6afdb FEM: elmer tasks, comment regression added with ece663444c 2020-07-20 08:09:52 +02:00
Bernd Hahnebach
04ef25dc87 FEM: elmer tasks, add TODO comments 2020-07-16 00:09:35 +02:00
Bernd Hahnebach
ece663444c FEM: elmer solver, improve binary handling on Linux 2020-07-16 00:09:28 +02:00
Bernd Hahnebach
1017eab8de FEM: elmer equations, delete wrong tool tips 2020-07-16 00:09:19 +02:00
Bernd Hahnebach
77ecd9bffd FEM: elmer solver, code formating 2020-07-15 08:57:51 +02:00
Bernd Hahnebach
11419ecfaf FEM: elmer equations, code formatting 2020-07-14 22:55:33 +02:00
Bernd Hahnebach
902ef51f8b FEM: elmer writer, move constants and unit code inside class as it can change after module import 2020-07-13 16:24:53 +02:00
Bernd Hahnebach
c3da895a1f FEM: elmer writer, equation elasticity, only write needed material values 2020-07-07 12:33:54 +02:00
Bernd Hahnebach
d8a2da610f FEM: elmer writer, fix self weight 2020-07-07 12:33:45 +02:00
Bernd Hahnebach
9bfd947886 FEM: elmer equation flux, better name without word solver 2020-06-29 22:28:26 +02:00
Bernd Hahnebach
c43b3c2b2a FEM: elmer writer, better messages and code formating 2020-06-29 20:21:51 +02:00