awslabs / palace

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

Add conductivity boundaries to Dirichlet BC list for wave ports #264

Closed sebastiangrimberg closed 2 weeks ago

sebastiangrimberg commented 3 weeks ago

Wave port mode calculation right now inherits all PEC boundary conditions from the 3D problem. Conductivity boundaries should also be considered as PEC for mode calculation (otherwise it was expected the user adds them with "WavePortPEC").

Also updates the eigenvalue target for the shifted wave port eigemode problem to EigenvalueSolver::WhichType::SMALLEST_REAL, which appropriately deprioritizes evanescent modes with large imaginary part and small real part of k_n.

sebastiangrimberg commented 2 weeks ago

Note: This resolves #251 and #267.