You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(adjoint): Adaptively sample fields along slab height and polygon edges
- Implement adaptive field sampling for PolySlab and Cylinder for shape
derivatives
- Replace fixed grid with Gauss-Legendre quadrature
- Sample fields along all surface boundaries (edges and faces)
- Handle edge cases: slabs outside simulation, faces at ±inf, 2D simulations
- Add analytical tests for gradient computation
- Remove `DerivativeSurfaceMesh` abstraction in favor of direct evaluation
- Convert `DerivativeInfo` from Pydantic model to dataclass for efficiency
- Implement interpolator sharing at `GeometryGroup` level
- Add Gauss-Legendre quadrature caching
- Optimize memory allocation with pre-allocated arrays
- Ensure dtype consistency throughout gradient pipeline
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,8 @@ with fewer layers than recommended.
31
31
- Warnings are now generated (instead of errors) when instantiating `PML`, `StablePML`, or `Absorber` classes (or when invoking `pml()`, `stable_pml()`, or `absorber()` functions) with fewer layers than recommended.
32
32
-`Simulation.subsection` can no longer take `symmetry` as an argument - the symmetry is always taken from the original simulation.
33
33
- If a mode simulation is crossing a symmetry plane of the larger simulation domain, but the mode plane is not symmetric, a warning is issued that it will be expanded symmetrically. Previously this warning only happened during the solver run.
34
+
- Enhanced `PolySlab` and `Cylinder` gradient computation via adaptive field sampling along geometry boundaries instead of fixed-grid center sampling.
35
+
- Shape derivatives have been sped up significantly, especially for simulations containing many structures in a `GeometryGroup`.
34
36
35
37
### Fixed
36
38
- Arrow lengths are now scaled consistently in the X and Y directions, and their lengths no longer exceed the height of the plot window.
0 commit comments