Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve field energy integration for electrostatic and magnetostatic simulations #211

Merged
merged 4 commits into from
Mar 14, 2024

Conversation

sebastiangrimberg
Copy link
Contributor

@sebastiangrimberg sebastiangrimberg commented Mar 14, 2024

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.

…problems

This can actually become a bottleneck for large cap. or ind. matrix sizes.
@sebastiangrimberg sebastiangrimberg added performance Related to performance postprocessing Related to simulation postprocessing labels Mar 14, 2024
@sebastiangrimberg
Copy link
Contributor Author

A brief performance assessment:

  • Mesh: 56.7M elements, mixed tet/prism
  • p = 4: 658M H1 dofs, 2.46B ND dofs
  • N = 258 terminals (cap. matrix is N x N, require N * (N+1) / 2 energy calculations)

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

Copy link
Collaborator

@hughcars hughcars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sebastiangrimberg sebastiangrimberg merged commit 102eef9 into main Mar 14, 2024
17 checks passed
@sebastiangrimberg sebastiangrimberg deleted the sjg/statics-energy-dev branch March 14, 2024 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Related to performance postprocessing Related to simulation postprocessing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants