Electromagnetic Template Library (EMTL)
Loading...
Searching...
No Matches
medium.h File Reference

Interface for optical media. More...

#include <vector>
#include "emdefs.h"
#include <emtl_export.h>
Include dependency graph for medium.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  emDrude
 Drude pole, see http://fdtd.kintechlab.com/en/fitting. More...
 
struct  emLorentz
 Lorentz pole. More...
 
struct  emDebye
 Debye pole. More...
 
struct  Med
 Basic structure to specify (frequency dependent) dielectric permitivitty and magnetic permeability. More...
 

Enumerations

enum  emMEDIUM_UNITS { emMEDUIM_NOCONV = 0 , emMEDUIM_SI2UM = 1 , emMEDUIM_SIRAD2UM = 2 , emMEDIUM_EV2UM = 3 }
 Conversion to common units. More...
 
enum  emIMET_TYPES {
  emIMET_EREFL = 0 , emIMET_HREFL = 0 , emIMET_ESYM = 0x1 , emIMET_HSYM = 0x2 ,
  emIMET_PEC = emIMET_EREFL|emIMET_HSYM , emIMET_PMC = emIMET_HREFL | emIMET_ESYM , emIMET_SYM = emIMET_HSYM | emIMET_ESYM , emIMET_REFL = emIMET_HREFL | emIMET_EREFL
}
 Flags to indicate ideal metal border types. More...
 

Variables

const valtype c_si = (valtype ) 299792458.
 Speed of light in SI (m/s)
 
const valtype hbar_si = (valtype)1.0545718e-34
 hbar SI units
 
const valtype eV_si = (valtype)1.6021766208e-19
 eV in J (SI)
 
const valtype unitpresets [4] = { 1.f, (valtype)(2.*M_PI*1e-6 / c_si), (valtype)(1e-6 / c_si) , (valtype) (eV_si/hbar_si) }
 Conversion coefficients corresponding to emMEDIUM_UNITS.
 

Detailed Description

Interface for optical media.

Enumeration Type Documentation

◆ emIMET_TYPES

Flags to indicate ideal metal border types.

Enumerator
emIMET_EREFL 

Asymmetric in E.

emIMET_HREFL 

Asymmetric in H.

emIMET_ESYM 

Symmetric in E.

emIMET_HSYM 

Symmtric in H.

emIMET_PEC 

Perfect electric conductor.

emIMET_PMC 

Perfect magnetic conductor.

emIMET_SYM 

All symmetric border.

emIMET_REFL 

All asymmetric (reflective) border.

◆ emMEDIUM_UNITS

Conversion to common units.

Enumerator
emMEDUIM_NOCONV 

No conversion.

emMEDUIM_SI2UM 

Frequency in SI (1/s) to EMTL micrometers.

emMEDUIM_SIRAD2UM 

Circular frequency in SI (radians/s) to EMTL micrometers.

emMEDIUM_EV2UM 

Spectral frequency in eV to EMTL micrometers.