Uh oh!
There was an error while loading. Please reload this page.
Conversation
stevengj
commented
Jun 25, 2026
cc @smartalecH and @romanodev — it would be good to add this to the Python API too. |
smartalecH
commented
Jun 25, 2026
I have a draft for the python implementation locally -- I'll try to push something soon. |
Note that this is the algorithm from NanoComp/meep#3087 (comment), which I assume is the same as @smartalecH's draft. Any comments on the API? A |
Uh oh!
There was an error while loading. Please reload this page.
romanodev
commented
Jun 26, 2026
The API is straightforward. @smartalecH: if your draft is different than the intended approach, I can take a crack at this (or feel free to address only SSP1, and I will follow with SSP2) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This PR adds a
dilation_distancekeyword to theProjectionProblemAPI in the Julia API that provides an easy way to expand the solid region by approximatelydilation_distancein all directions (or shrink/erode it ifdilation_distanceis negative).Additionally, in the high-level api, the functions
ssp1,ssp1_linear, andssp2accept an optional trailing positional argument for thedilation_distance.Tests were added for the adjoints w.r.t. the filtered density in the presence of a non-zero dilation for both the low-level and high-level APIs.
Additionally, I added an example that demonstrates the effect of the dilation/erosion on Cassini ovals.