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
NAME
Photonic::Geometry::FromEpsilon
VERSION
version 0.023
SYNOPSIS
use Photonic::Geometry::FromEpsilon;
$g=Photonic::Geometry::FromEpsilon->new(epsilon=>$pdl);
$epsilon=$g->epsilon;
DESCRIPTION
Creates a geometry object to be used in a Photonic calculation from a dielectric function which specifies a complex dielectric function for each pixel or voxel within the unit cell.
METHODS
new(epsilon=>$pdl[, L=>$L])
Creates a new Ph::G::FromEpsilon object
$pdl is a nx,ny,nz complex pdl whose value is the complex dielectric function for each point (nx,ny,nz) within the unit cell. The number of dimensions of its real and imaginary parts are the dimension of space, and each dimension is the number of voxels of the unit cell along the corresponding direction.
$L is the size of the unit cell along the cartesian axes. By default, it is the number of voxels or pixels.
ACCESSORS (read only)
B
The characteristic function as a PDL. Note: this is not the true characteristic function, but just a PDL with the appropriate shape.
epsilon
The dielectric function as PDL
L
Unit cell sizes as a B->ndims pdl.