Skip to content

[4/n][Adjoint Module] Launch a mode through a stratified stack into the simulation (and backprop) - #3284

Draft
smartalecH wants to merge 1 commit into
feat/adjoint-source-gradientsfrom
feat/adjoint-asm-source
Draft

[4/n][Adjoint Module] Launch a mode through a stratified stack into the simulation (and backprop)#3284
smartalecH wants to merge 1 commit into
feat/adjoint-source-gradientsfrom
feat/adjoint-asm-source

Conversation

@smartalecH

Copy link
Copy Markdown
Collaborator

No description provided.

incident_fields is the time reverse of spectrum: a Mode is specified where it
is physically meaningful -- at the fiber facet, on the far side of the stack --
and carried back down to the monitor plane, where Meep can inject it. The
scalar transfer function of a stratified medium is the same in both directions,
so the same product of transmission and propagation phases applies. The result
is purely in-going by construction, since it inverts decompose for a spectrum
with no outgoing part.

equivalent_sources then hands those fields to mp.get_equiv_sources, which
already applies the equivalence principle and emits sources carrying amp_data.
Because amp_data is differentiable, a beam injected this way backpropagates to
its own waist, tilt and offset.

from_volume builds a propagator without a monitor, which the injection path
needs: a DFT monitor requires the field components to be allocated, and that
does not happen until sources are added -- which is what is being built.

Verified end to end: the injected field is 99.997% in-going, the radiated beam
leaks 4e-3 in amplitude the wrong way (1.6e-5 in power), and the beam measured
downstream is still 99.99% travelling the direction it was sent.
@smartalecH smartalecH changed the title Launch a mode through a stratified stack into the simulation [3/n][Adjoint Module] Launch a mode through a stratified stack into the simulation (and backprop) Aug 27, 2026
@smartalecH smartalecH changed the title [3/n][Adjoint Module] Launch a mode through a stratified stack into the simulation (and backprop) [4/n][Adjoint Module] Launch a mode through a stratified stack into the simulation (and backprop) Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant