GTPhPixelStructure[pixel map,modification,structure]
allows to perform a modification of the permittivity distribution defined by a pixel map in the unit cell of a given structure.
GTPhPixelStructure
GTPhPixelStructure[pixel map,modification,structure]
allows to perform a modification of the permittivity distribution defined by a pixel map in the unit cell of a given structure.
Details and Options
- The permittivity in the unit cell of a two-dimensional structure can be defined by an arrangement of geometric objects of given permittivity, or it is defined in a pixelwise manner.
The pixel map is an
matrix and defines the subdevision of the unit cell. The entry
defines the permittivity of the pixel
. - The list modification allows the modification of a given pixel map:
-
modification =
- The list structure defines the structure of the unit cell:
- structure =

-
and
are the side lengths and
is the angle enclosed by the two sides.
- The following options can be given:
-
GOColorScheme "PearlColors" Defines the color scheme GOPlot True Plots the modified structure - See: W. Hergert, M. Geilhufe, Group Theory in Solid State Physics and Photonics. Problem Solving with Mathematica, chapter 10.4
Examples
open all close allBasic Examples (1)
Needs["GroupTheory`"]A permittivity map is defined.
map = {{1, 1, 1, 1}, {1, 12, 12, 1}, {1, 12, 12, 1}, {1, 1, 1, 1}};The unit cell is a square, i.e.
struct = {1, 1, π / 2};The structure is plotted. There is no modification defined.
GTPhPixelStructure[map, {}, struct]With a modification list the permittivity can be changed for certain pixels.
mod = {{2, 2, 5}, {3, 3, 7}};GTPhPixelStructure[map, mod, struct]The structure of the unit cell can be modified easily.
struct = {1, 2, π / 6};GTPhPixelStructure[map, mod, struct]Options (2)
GOColorscheme (1)
Color Schemes can be selected from Mathematica’s Palette.
map = Table[1, {20}, {20}];
Do[
Do[
If[i ≥ 5 && i ≤ 15 && j ≥ 5 && j ≤ 15,
map[[i, j]] = 13,
None]
, {j, 1, 20}]
, {i, 1, 20}]
mod = {{4, 9, 2}, {4, 10, 5}, {4, 11, 10}};
struct = {1, 1, π / 2};GTPhPixelStructure[map, mod, struct, GOColorScheme -> "GrayTones"]GOPlot (1)
Usually the command is used to check the defined permittivity distribution in the unit cell.
map = Table[1, {20}, {20}];
Do[
Do[
If[i ≥ 5 && i ≤ 15 && j ≥ 5 && j ≤ 15,
map[[i, j]] = 13,
None]
, {j, 1, 20}]
, {i, 1, 20}]struct = {1, 1, π / 2};GTPhPixelStructure[map, {}, struct, GOPlot -> True]If a modification is defined, it shoud be checked first:
mod = {{4, 9, 2}, {4, 10, 5}, {4, 11, 10}};GTPhPixelStructure[map, mod, struct, GOPlot -> True]The new permittivity distribution is exported.
epsnew = GTPhPixelStructure[map, mod, struct, GOPlot -> False]