NAME
Photonic::WE::R2::Green
VERSION
version 0.023
COPYRIGHT NOTICE
Photonic - A perl package for calculations on photonics and metamaterials.
Copyright (C) 2016 by W. Luis Mochán
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA
mochan@fis.unam.mx
Instituto de Ciencias Físicas, UNAM
Apartado Postal 48-3
62251 Cuernavaca, Morelos
México
SYNOPSIS
use Photonic::WE::R2::Green;
my $G=Photonic::WE::R2::Green->new(metric=>$m, nh=>$nh, epsB=>$epsB);
my $GreenTensor=$G->greenTensor;
my $WaveTensor=$G->waveOperator;
my $EpsTensor=$W->epsilonTensor;
DESCRIPTION
Calculates the retarded green's tensor for a given fixed Photonic::WE::R2::Metric structure as a function of the dielectric functions of the components. Includes the antysimmetric part, unless it is not desired.
Can also calculate the macroscopic wave operator.
ATTRIBUTES
metric
Photonic::WE::R2::Metric describing the structure and some parameters. (required)
epsB
Dielectric function of component B (particle) (required)
nh
The maximum number of Haydock coefficients to use.
smallH, smallE
Criteria of convergence (default 1e-7) for Haydock coefficients and continued fraction
keepStates
Value of flag to keep Haydock states (default 0)
symmetric
Flags that you only want the symmetric part of the Green's tensor, default 0.
greenTensor
Macroscopic Green's operator for the dielectric functions of the particle
epsB
. The host's responseepsA
is taken from the metric.epsA
Dielectric function of component A (host) taken from the metric.
u
Spectral variable
haydock
Array of Photonic::WE::R2::Haydock structures, one for each polarization, from the geometry.
reorthogonalize
Reorthogonalize haydock flag
greenP
Array of Photonic::WE::R2::GreenP structures, one for each direction
nhActual
The actual number of Haydock coefficients used in the calculation
converged
Flags that the calculation converged before using up all coefficients
waveOperator
Returns the macroscopic wave operator for the Green tensor.
epsilonTensor
Returns the macroscopic dielectric tensor from the wave operator.