- 
                Notifications
    You must be signed in to change notification settings 
- Fork 75
Description
Hi, I am struggling to figure out how I can implement ports within Sparselizard that would allow for microwave simulations such as measuring S-parameters. Here I am talking about ports such as the ones described in https://innovationspace.ansys.com/courses/wp-content/uploads/sites/5/2021/07/HFSS_GS_2020R2_EN_LE6_Port_Basics.pdf and https://www.comsol.com/blogs/ports-and-lumped-ports-for-wave-electromagnetics-problems.
I think the "lumped port" should be easiest to start with as it just requires forcing a uniform electric field on a face. The halfwave-dipole-antenna-2d shows how a uniform electric field boundary condition can be applied to a face. This should be sufficient to create an incident wave, but I don't think such a simple condition would allow for a reflected wave to also exist at the face. That really is what I'm struggling with, how to create an fixed incident wave while also allowing an unknown reflected wave.
Another relevant example appears to be waveguide-3d which would allow for something similar to a "wave port" to be implemented. However, I believe it still has the same problem with disallowing reflected waves.
Any ideas or suggestions would be greatly appreciated, thanks!
P.S. any explanation as to why  the halfwave-dipole-antenna-2d example uses the "harmonics" feature at a single single harmonic frequency while the waveguide-3d instead just uses the frequency domain wave formulation. I would have assumed these are equivalent?