Uniform Static Field
Definition
The static electric field with amplitude $a$ and direction $\hat{\bm p}$ is given by
\[\bm e(\bm r) = a \, \hat{ \bm p} \,.\]
API
The API provides the following constructor with default values:
SphericalScattering.UniformField
— Typeex = UniformField(;
embedding=Medium(ε0, μ0),
amplitude=1.0,
direction=SVector{3,typeof(amplitude)}(1.0, 0.0, 0.0)
)
The direction
vector is automatically normalized to a unit vector during the initialization.
Incident Field
The electric field is as given above.
API
The general API is employed:
Φ = field(ex, ScalarPotential(point_cart))
E = field(ex, ElectricField(point_cart))
Scattered Field
The scattered field computation follows [3].
API
The following API is employed:
Φ = scatteredfield(sp, ex, ScalarPotential(point_cart))
E = scatteredfield(sp, ex, ElectricField(point_cart))
For the dielectric sphere with thin impedance layer two additional quantities are available:
Φ = scatteredfield(sp, ex, ScalarPotentialJump(point_cart))
E = scatteredfield(sp, ex, DisplacementField(point_cart))
Total Field
API
The following API is employed:
Φ = field(sp, ex, ScalarPotential(point_cart))
E = field(sp, ex, ElectricField(point_cart))