Luis Mochán
and 6 contributors

Photonic - A perl package for calculations on photonics and metamaterials.

Copyright (C) 1916 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
62251 Cuernavaca, Morelos
México``````

# NAME

Photonic::Geometry::FromEpsilon

version 0.012

# 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 2: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.

• 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.