[report] implementation of electrodynamics

About the development of the FEM module/workbench.

Moderator: bernd

david69
Veteran
Posts: 1774
Joined: Wed Jan 01, 2014 7:48 pm

Re: [report] implementation of electrodynamics

Post by david69 »

uwestoehr wrote: Mon Feb 20, 2023 12:53 am https://crowdin.com/translate/freecad/559/en-fr#6610749 seems to be stuck
https://crowdin.com/translate/freecad/559/en-fr#6611295 seems to be stuck

I don't know. the source code seems correct.
there were translated in same time with other strings of your adding, and these last translated strings are well present.
uwestoehr wrote: Mon Feb 20, 2023 12:53 am It seems the feature was added after the last Crowdin sync.
it might be the reason. the English wording is well present on

Code: Select all

OS: Ubuntu 22.04.2 LTS (LXQt/Lubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31917 (Git) AppImage
Build type: Release
Branch: master
Hash: 4639283b459f9ff9093e289908cc003db8745b82
Python 3.10.9, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: French/France (fr_FR)
Installed mods: 
  * Help 1.0.3
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: [report] implementation of electrodynamics

Post by uwestoehr »

The project is over and here is what I achieved:

1. implemented support for the basic Electromagnetic solver equation of Elmer in 3D and 2D:
* https://wiki.freecad.org/FEM_EquationMagnetodynamic
* https://wiki.freecad.org/FEM_EquationMagnetodynamic2D

This includes new necessary constraints:
* https://wiki.freecad.org/FEM_ConstraintCurrentDensity
* https://wiki.freecad.org/FEM_ConstraintMagnetization
* the extension of https://wiki.freecad.org/FEM_Constraint ... cPotential for vector fields

2. implement a new result filter to display field lines in 2D and 3D:
* https://wiki.freecad.org/FEM_PostFilterContours

3. since the simulation requires a lot of CPU power, it is more or less mandatory to perform the calculations using several CPU cores.
The existing multi-CPU support had some issues in visualizing the results. These could be resolved by the new implemented result filtering:
* https://wiki.freecad.org/FEM_Preferences#Elmer

4. the FEM examples (https://wiki.freecad.org/FEM_Examples) received new example analyses, demonstrating the new capabilities of the Elmer support:
* 2 examples of electrodynamics
* an example of magnetostatics
* an example of air that is heated while flowing
* an example of potential and heat flux

5. for practical usage it is important to quickly setup analyses. Existing issues in the Material handling made this hard (depending on the language settings in FreeCAD).
I was able to fix all remaining Material handling issues: viewtopic.php?p=489666#p489666

To test the new features, you need a version of FreeCAD master from February 27th or newer.
Here is a Windows build: https://github.com/FreeCAD/FreeCAD-Bund ... taller.exe
For Linux and Mac, check the next Weekly build released after February 27th: https://github.com/FreeCAD/FreeCAD-Bund ... kly-builds
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: [report] implementation of electrodynamics

Post by uwestoehr »

@bitacovir , for the new features, FreeCAD got theses new icons:
* https://wiki.freecad.org/File:FEM_Equat ... ynamic.svg
* https://wiki.freecad.org/File:FEM_Equat ... amic2D.svg
* https://wiki.freecad.org/File:FEM_Const ... zation.svg
* https://wiki.freecad.org/File:FEM_Const ... ensity.svg
* https://wiki.freecad.org/File:FEM_PostF ... ntours.svg

They are all by me but I am a poor designer ;) . Especially the one for the contours is MS Paint style. :lol:
Would you like to improve them?
timmwille
Posts: 17
Joined: Sat Jan 23, 2021 12:41 am

Re: [report] implementation of electrodynamics

Post by timmwille »

Wow, thank you for the detailed documentation. I'm still going through the wiki pages and am trying to work out the best example to test with FreeCAD, as my own electrodynamics skills and in general FEM is a bit rusty I'm sending this over to some friends as well. In any case one can see the effort put into this and it is adding great value to FreeCAD. :) Thank you!
david69
Veteran
Posts: 1774
Joined: Wed Jan 01, 2014 7:48 pm

Re: [report] implementation of electrodynamics

Post by david69 »

david69 wrote: Sun Feb 19, 2023 3:59 pm thanks for the progress and reporting.

on Crowdin,
https://crowdin.com/translate/freecad/559/en-fr#6610741 --> typo
https://crowdin.com/translate/freecad/559/en-fr#6611303 --> typo

https://crowdin.com/translate/freecad/559/en-fr#6610749 seems to be stuck
https://crowdin.com/translate/freecad/559/en-fr#6611295 seems to be stuck

I keep an eye on that one https://crowdin.com/translate/freecad/559/en-fr#6611301 as it was translated 6 days ago, but may be too early to see it on the GUI.

I don't see "Contours filter" in crowdin for translation.

Code: Select all

OS: Ubuntu 22.04.2 LTS (LXQt/Lubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.0.31917 (Git) AppImage
Build type: Release
Branch: master
Hash: 4639283b459f9ff9093e289908cc003db8745b82
Python 3.10.9, Qt 5.15.6, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: French/France (fr_FR)
Installed mods: 
  * Help 1.0.3
still stuck. Uwe, you can switch to French (FEM is 100% translated) and you'll see all what is still in English. since my first post, there have been 2 merges of crowdin and couple updates of FreeCAD.
User avatar
bitacovir
Veteran
Posts: 1570
Joined: Sat Apr 19, 2014 6:23 am
Contact:

Re: [report] implementation of electrodynamics

Post by bitacovir »

uwestoehr wrote: Mon Feb 27, 2023 2:26 am @bitacovir , for the new features, FreeCAD got theses new icons:
* https://wiki.freecad.org/File:FEM_Equat ... ynamic.svg
* https://wiki.freecad.org/File:FEM_Equat ... amic2D.svg
* https://wiki.freecad.org/File:FEM_Const ... zation.svg
* https://wiki.freecad.org/File:FEM_Const ... ensity.svg
* https://wiki.freecad.org/File:FEM_PostF ... ntours.svg

They are all by me but I am a poor designer ;) . Especially the one for the contours is MS Paint style. :lol:
Would you like to improve them?
I am a bit busy right now, but I will go through these and propose some designs...
::bitacovir::
==================
One must be absolutely modern.
Arthur Rimbaud (A Season in Hell -1873)

Canal Youtube Grupo Telegram de FreeCAD Español

My personal web site
My GitHub repository
Mini Airflow Tunnel Project
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: [report] implementation of electrodynamics

Post by uwestoehr »

bitacovir wrote: Sun Mar 05, 2023 3:49 pm I am a bit busy right now, but I will go through these and propose some designs...
Hi @bitacovir when you start working on this, we will also need a better icon for
- https://wiki.freecad.org/FEM_EquationElasticity (this is actually a solver for mechanical stresses)
and
- https://wiki.freecad.org/FEM_ConstraintSpring (looks a bit clumsy in my opinion)
User avatar
kaktus
Veteran
Posts: 1174
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: [report] implementation of electrodynamics

Post by kaktus »

hello board :mrgreen:

The latest release of appImage for linux generates an error when trying to run FEM.

Code: Select all

OS: Debian GNU/Linux 12 (bookworm) (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.0.33110 (Git) AppImage
Build type: Release
Branch: master
Hash: 18e40941ceb36c52701a7c74ea26043ef3385701
Python 3.11.3, Qt 5.15.8, Coin 4.0.0, Vtk 9.2.2, OCC 7.7.1
Locale: Polish/Poland (pl_PL)
Installed mods: 
  * Curves 0.5.0
  * sheetmetal 0.2.56
  * Reinforcement
  * BIM 2021.12.0
Screenshot_20230521_074022.png
Screenshot_20230521_074022.png (106.46 KiB) Viewed 9659 times

Code: Select all

07:39:47  /tmp/.mount_FreeCATYFghl/usr/lib/././libnglib4smesh.so: undefined symbol: _ZNK17XCAFDoc_ColorTool8GetColorERK9TDF_LabelR14Quantity_Color
07:39:47  Traceback (most recent call last):
  File "<string>", line 71, in Initialize
  File "/tmp/.mount_FreeCATYFghl/usr/lib/python3.11/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Translators have no way of verifying translation work and fixing translations in the GUI. :oops:
The Linux release has not appeared for two weeks. :roll:


As you know, we now have a hectic period of repairing translations before the announcement of a new edition.

I would like to ask everyone very much on behalf of the international translation team to support us in this regard.


My message is a reaction to the lack of response to the information provided by david69 :ugeek:
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
david69
Veteran
Posts: 1774
Joined: Wed Jan 01, 2014 7:48 pm

Re: [report] implementation of electrodynamics

Post by david69 »

same with

Code: Select all

OS: Ubuntu 22.04.2 LTS (LXQt/Lubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.0.33263 (Git) AppImage
Build type: Release
Branch: master
Hash: 864f99bf984c237ef38d9451fd6f3a5ec34e6eb4
Python 3.11.3, Qt 5.15.8, Coin 4.0.0, Vtk 9.2.2, OCC 7.7.1
Locale: French/France (fr_FR)
Installed mods: 
  * Help 1.0.3
the error message is:

Code: Select all

02:56:06  /tmp/.mount_FreeCAqrBvfd/usr/lib/././libnglib4smesh.so: undefined symbol: _ZNK17XCAFDoc_ColorTool8GetColorERK9TDF_LabelR14Quantity_Color
02:56:07  Traceback (most recent call last):
  File "<string>", line 71, in Initialize
  File "/tmp/.mount_FreeCAqrBvfd/usr/lib/python3.11/site-packages/shiboken2/files.dir/shibokensupport/feature.py", line 139, in _import
    return original_import(name, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
and
Capture d’écran du 2023-05-22 02-56-26.png
Capture d’écran du 2023-05-22 02-56-26.png (15.5 KiB) Viewed 9468 times
User avatar
kaktus
Veteran
Posts: 1174
Joined: Sun Aug 11, 2019 11:59 am
Location: opolskie
Contact:

Re: [report] implementation of electrodynamics

Post by kaktus »

Hi :mrgreen:

Since at this point I complained a little about the lack of a new appimage for linux so at this point I will also thank you for your quick intervention and the new release of packages. :ugeek:

This is really very helpful :!:
Twórca polskiej wersji Wiki dla FreeCAD, współwórca polskiej wersji GUI.
"Cierpliwym być musisz, by wiedzę zgłębiać tajemną, gdyż ciemna strona mocy niszczącą i silną jest".
Post Reply