# Materials in Meep

### From AbInitio

Revision as of 22:55, 21 August 2006 (edit)Stevenj (Talk | contribs) (→Nonlinearity) ← Previous diff |
Revision as of 22:55, 21 August 2006 (edit)Stevenj (Talk | contribs) (→Nonlinearity) Next diff → |
||

Line 44: |
Line 44: | ||

Currently, Meep supports instantaneous, isotropic Pockels and Kerr nonlinearities, corresponding to a frequency-independent <math>\chi_{ijk}^{(2)} = \chi^{(2)} \cdot \delta_{ij} \delta_{jk}</math> and <math>\chi_{ijk\ell}^{(3)} = \chi^{(3)} \cdot \delta_{ij} \delta_{k\ell}</math>, respectively. Thus, | Currently, Meep supports instantaneous, isotropic Pockels and Kerr nonlinearities, corresponding to a frequency-independent <math>\chi_{ijk}^{(2)} = \chi^{(2)} \cdot \delta_{ij} \delta_{jk}</math> and <math>\chi_{ijk\ell}^{(3)} = \chi^{(3)} \cdot \delta_{ij} \delta_{k\ell}</math>, respectively. Thus, | ||

- | :<math>\mathbf{D} = \left( \varepsilon_\infty(\mathbf{x}) + \chi^{(2)}\cdot(\mathbf{x}) \mathrm{diag}(\mathbf{E}) + \chi^{(3)}(\mathbf{x}) \cdot |\mathbf{E}|^2 \right) \mathbf{E} + \mathbf{P}</math> | + | :<math>\mathbf{D} = \left( \varepsilon_\infty(\mathbf{x}) + \chi^{(2)}(\mathbf{x})\cdot \mathrm{diag}(\mathbf{E}) + \chi^{(3)}(\mathbf{x}) \cdot |\mathbf{E}|^2 \right) \mathbf{E} + \mathbf{P}</math> |

Here, "diag('''E''')" indicates the diagonal 3×3 matrix with the components of '''E''' along the diagonal. | Here, "diag('''E''')" indicates the diagonal 3×3 matrix with the components of '''E''' along the diagonal. |

## Revision as of 22:55, 21 August 2006

Meep |

Download |

Release notes |

FAQ |

Meep manual |

Introduction |

Installation |

Tutorial |

Reference |

C++ Tutorial |

C++ Reference |

Acknowledgements |

License and Copyright |

The material structure in Maxwell's equations is determined by the dielectric function ε(**x**), but ε is not only a function of position — in general, it also depends on frequency (*material dispersion*) and on the electric field **E** itself (*nonlinearity*). Material dispersion, in turn, is generally associated with absorption loss in the material, or possibly *gain*. All of these effects can be simulated in Meep, with certain restrictions.

In this section, we describe the form of the equations and material properties that Meep can simulate. The actual interface with which you specify these properties is described in the Meep reference.

## Contents |

## Material dispersion

Physically, material dispersion arises because the polarization of the material does not respond instantaneously to an applied field **E**, and this is essentially the way that it is implemented in FDTD. In particular, is expanded to:

where is the *instantaneous* dielectric function (the infinite-frequency response) and **P** is the *polarization* density in the material. **P**, in turn, has its *own* time-evolution equation, and the exact form of this equation determines the frequency-dependence ε(ω). In particular, Meep supports any material dispersion of the form of a sum of harmonic resonances:

where ω_{n}, γ_{n}, and are user-specified constants and is a user-specified function of position (usually 0 or 1). This corresponds to evolving **P** via the equations:

That is, we must store and evolve a set of auxiliary fields along with the electric field in order to keep track of the polarization **P**. Essentially any ε(ω) could be modeled by including enough of these polarization fields — Meep allows you to specify any number of these, limited only by computer memory and time (which must increase with the number of polarization terms you require).

To implement a *Drude model* of , in which ω_{n} is zero in the denominator, we just set ω_{n} to be a very small number (e.g. `1e-20`

) and make large to compensate in the numerator.

## Loss and gain

If γ above is nonzero, then the dielectric function ε(ω) becomes *complex*, where the imaginary part is associated with absorption loss in the material if it is positive, or gain if it is negative.

If you look at Maxwell's equations, then plays exactly the same role as a current . Just as is the rate of change of mechanical energy (the power expended by the electric field on moving the currents), therefore, the rate at which energy is lost to absorption is given by:

- absorption rate

Meep can keep track of this energy, which for gain gives the amount of energy expended in amplifying the field. Using this energy, Meep supports the idea of a *saturable gain* (e.g. a situation in which there is a depletable population inversion causing the gain). For more information, see saturable gain in Meep.

## Nonlinearity

In general, ε can be changed anisotropically by the **E** field itself, with:

where the *ij* is the index of the change in the 3×3 ε tensor and the χ terms are the nonlinear susceptibilities. The χ^{(2)} sum is the Pockels effect and the χ^{(3)} sum is the Kerr effect. (If the above expansion is frequency-independent, then the nonlinearity is *instantaneous*; more generally, Δε would depend on some average of the fields at previous times.)

Currently, Meep supports instantaneous, isotropic Pockels and Kerr nonlinearities, corresponding to a frequency-independent and , respectively. Thus,

Here, "diag(**E**)" indicates the diagonal 3×3 matrix with the components of **E** along the diagonal.

Normally, for nonlinear systems you will want to use real fields **E**. (This is usually the default. However, Meep uses complex fields if you have Bloch-periodic boundary conditions with a non-zero Bloch wavevector **k**, or in cylindrical coordinates with . In the C++ interface, real fields must be explicitly specified.)

For complex fields in nonlinear systems, the physical interpretration of the above equations is unclear because one cannot simply obtain the physical solution by taking the real part any more. In particular, Meep simply *defines* the meaning of the nonlinearity for complex fields as follows: the real and imaginary parts of the fields do not interact nonlinearly. That is, the above equation should be taken to hold for the real and imaginary parts (of **E** and **D**) *separately*. (e.g. |**E**|^{2} is the squared magnitude of the *real* part of **E** for when computing the real part of **D**, and conversely for the imaginary part.)

**Note**: This behavior was changed for Meep 0.10. Also, in Meep 0.9 there was a bug: when you specified χ^{(3)}in the interface, you were actually specifying . This was fixed in Meep 0.10.

For a discussion of how to relate χ^{(3)} in Meep to experimental Kerr coefficients, see Units and nonlinearity in Meep.