hammy4815 / VectorModesolver.jl

Vector Finite Difference Maxwell Modesolver
MIT License
14 stars 2 forks source link

mode functions #9

Open hammy4815 opened 1 year ago

hammy4815 commented 1 year ago

See #6

Implemented algebraic functions for the modes (treated as vectors, implemented *, / by numbers and + - by other modes).

Additionally, I included as given here functions for power, inner product, mode coefficients, and coupling ratios.

Finally, I included an example.

My only problem currently is I am normalizing to have unit power, yet the Lumerical formulate has a 1/2 that shouldn't exist if the inner product is to be unit. I could have made a mistake here though.