lbolla / EMpy

Electromagnetic Python
MIT License
194 stars 83 forks source link

How to define periodic boundaries? #49

Closed paulxshen closed 1 month ago

paulxshen commented 2 months ago

I see boundary = "0000" - how to instead set periodic BC?

lbolla commented 1 month ago

The possible values of boundary are described in the docstring of SVFDModeSolver: https://github.com/lbolla/EMpy/blob/master/EMpy/modesolvers/FD.py#L54 I don't think the algorithm implemented in that class (see paper referenced in module docstring) described periodic boundary conditions. Maybe later papers have an implementation, but EMpy doesn't.