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

Capacitance postprocessing by surface charge integration when the boundary encloses a volume #163

Closed sebastiangrimberg closed 4 months ago

sebastiangrimberg commented 9 months ago

The current config["Boundaries"]["Postprocessing"]["Capacitance"] assumes the boundary for integration is an infinitely thin rectangular prism and thus calculates the 2-sided integral of D \cdot n to get the charge. If the given boundary actually encloses a finite volume, the integral should be 1-sided as it is for a true external boundary.

This might be able to automatically detected by checking if the boundary elements for the given attribute list form a watertight surface.