awslabs / palace

3D finite element solver for computational electromagnetics
https://awslabs.github.io/palace/dev
Apache License 2.0
237 stars 49 forks source link

Improve field energy integration for electrostatic and magnetostatic simulations #211

Closed sebastiangrimberg closed 6 months ago

sebastiangrimberg commented 6 months ago

Use the scalar voltage (H1) and vector potential (Nedelec) fields, which typically have smaller space dimension than the corresponding electric field (Nedelec) and magnetic flux density (Raviart-Thomas).

This can actually become a bottleneck for large capacitance or inductance matrix sizes, where O(N^2), with N the number of terminals, energy calculations are needed.

sebastiangrimberg commented 6 months ago

A brief performance assessment:

main (min/max/avg time in seconds on 4096 cores):

Postprocessing                3099.500    3099.783    3099.548

This PR:

Postprocessing                1060.840    1061.117    1060.878