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
appears to be the local electric field magnitude squared. This seems inconsistent with the standard definition (ex. RP Photonics) which scales with the local refractive index in isotropic media or more generally as E*ε*E. Or maybe I am misunderstanding something?
If the fields have units of [Volt/micron] then it looks like this intensity has units of [Volt^2/micron^2] rather than [W/micron^2]or [W/cm^2].
I've been looking at this for ModeFieldData in case that changes the interpretation or units.
The text was updated successfully, but these errors were encountered:
I think I agree with you, that definition would make more sense. When it comes to units though the fields are indeed Volt/micron, so it is our definition of intensity that is kind of wrong, not the fields themselves.
I think part of the confusion came from the fact that the intensity function was implemented for the mode area computation, using the formula here where both |E|**2 and I can be used but that's just because the normalization constants cancel out, not because they are equivalent.
Unfortunately there are some caveats with modifying the intensity definition in our current code:
If we want to be able to return the value with the epsilon, we don't actually store the permittivity, and the permittivity obtained from the frontend Simulation.epsilon is not going to be the solver one in the subpixel regions. Also, we generally store colocated field values, and in principle to get an accurate epsilon * E * E you should do the product on the Yee grid and only then colocate.
We generally try not to introduce brekaing changes, so modifying the existing behavior of that specific function is something we would avoid even if wrong.. We might instead try to deprecate that function in favor of another one, but the first issue still remains and may require another refactor (like an option to store D in the monitors?)
The
intensity
property ofElectromagneticFieldData
, calculated here:tidy3d/tidy3d/components/data/monitor_data.py
Line 571 in 68a6e5b
appears to be the local electric field magnitude squared. This seems inconsistent with the standard definition (ex. RP Photonics) which scales with the local refractive index in isotropic media or more generally as
E*ε*E
. Or maybe I am misunderstanding something?If the fields have units of
[Volt/micron]
then it looks like this intensity has units of[Volt^2/micron^2]
rather than[W/micron^2]
or[W/cm^2]
.I've been looking at this for
ModeFieldData
in case that changes the interpretation or units.The text was updated successfully, but these errors were encountered: