NAME

Physics::Ellipsometry::VASE::Anisotropy - Anisotropic optical models and 4×4 Berreman transfer matrix

SYNOPSIS

use PDL;
use Physics::Ellipsometry::VASE::Anisotropy qw(
    uniaxial_epsilon biaxial_epsilon tensor_epsilon berreman_4x4
);

my $lambda = sequence(100) * 10 + 300;

# Uniaxial crystal (e.g., sapphire, quartz, TiO2 rutile)
my $eps_o = pdl(3.1) + i() * pdl(0.0);  # ordinary
my $eps_e = pdl(3.4) + i() * pdl(0.0);  # extraordinary
my $tensor = uniaxial_epsilon($eps_o, $eps_e, theta => 45);

# Compute Psi/Delta for anisotropic film
my $result = berreman_4x4($lambda, 70, $tensor, 100,
                          1.0, pdl(3.94)+i()*pdl(0.02));
my $psi   = $result->{psi};
my $delta = $result->{delta};

DESCRIPTION

This module provides tools for modeling optically anisotropic thin films where the dielectric response depends on the direction of the electric field. In isotropic media, the permittivity is a scalar; in anisotropic media it becomes a 3×3 tensor:

D = epsilon_0 * epsilon_tensor * E

The module supports three levels of anisotropy:

Uniaxial - Two independent constants (ordinary and extraordinary). The material has one optic axis. Examples: sapphire, quartz, TiO2, calcite, liquid crystals.
Biaxial - Three independent constants along three principal axes. Examples: mica, aragonite, orthorhombic crystals, organic films.
General tensor - Arbitrary 3×3 complex tensor with off-diagonal elements. Required for magneto-optic materials, tilted crystals, or materials under stress.

The Berreman 4×4 formalism extends the standard 2×2 transfer matrix to handle anisotropic layers. Instead of treating s- and p-polarizations independently, it uses a 4-component field vector [Ex, Hy, Ey, -Hx] and 4×4 transfer matrices. This naturally handles polarization conversion (rps, rsp ≠ 0) that occurs in anisotropic systems.

FUNCTIONS

uniaxial_epsilon

my $tensor = uniaxial_epsilon($eps_ordinary, $eps_extraordinary,
                               theta => $tilt_deg,
                               phi   => $azimuth_deg);

Constructs the dielectric tensor for a uniaxial crystal. In the principal frame:

epsilon = diag(eps_o, eps_o, eps_e)

Optional rotation parameters tilt the optic axis (c-axis) away from the surface normal:

theta - tilt angle of c-axis from surface normal [deg] (default 0)
phi - azimuthal rotation about surface normal [deg] (default 0)

Returns a hashref {xx, yy, zz, xy, xz, yz} representing the tensor in the laboratory frame.

# TiO2 rutile, c-axis perpendicular to surface
my $t = uniaxial_epsilon(pdl(6.0)+i()*0, pdl(8.4)+i()*0);

# Same crystal, c-axis tilted 30° from normal
my $t = uniaxial_epsilon(pdl(6.0)+i()*0, pdl(8.4)+i()*0, theta=>30);

biaxial_epsilon

my $tensor = biaxial_epsilon($eps_x, $eps_y, $eps_z,
                              phi => $phi, theta => $theta, psi => $psi);

Constructs the dielectric tensor for a biaxial crystal with three distinct principal values. Optional ZYZ Euler angles rotate from the crystal frame to the laboratory frame.

# Mica (orthorhombic)
my $t = biaxial_epsilon(
    pdl(2.56)+i()*0,   # eps_x
    pdl(2.62)+i()*0,   # eps_y
    pdl(2.60)+i()*0,   # eps_z
);

tensor_epsilon

my $tensor = tensor_epsilon(
    xx => $exx, yy => $eyy, zz => $ezz,
    xy => $exy, xz => $exz, yz => $eyz,
);

Constructs a general 3×3 dielectric tensor from explicit components. Off-diagonal elements enable modeling of magneto-optic effects, chirality, or non-reciprocal media. The tensor is assumed symmetric unless separate yx, zx, zy components are provided.

berreman_4x4

my $result = berreman_4x4($lambda_nm, $theta_deg,
                           $eps_tensor, $d_nm,
                           $N_ambient, $N_substrate);

Calculates the reflection of a single anisotropic layer on an isotropic substrate using the 4×4 Berreman transfer matrix method.

Returns: hashref with keys:

rpp - p-to-p reflection coefficient (complex PDL)
rss - s-to-s reflection coefficient (complex PDL)
rps - s-to-p cross-polarization (complex PDL)
rsp - p-to-s cross-polarization (complex PDL)
psi - standard ellipsometric Ψ [degrees]
delta - standard ellipsometric Δ [degrees]

Example — liquid crystal cell:

my $lambda = sequence(200) * 5 + 400;
my $eps_o = pdl(2.25) + i()*pdl(0);
my $eps_e = pdl(3.06) + i()*pdl(0);

# LC director tilted 45° from normal
my $tensor = uniaxial_epsilon($eps_o, $eps_e, theta => 45);

my $r = berreman_4x4($lambda, 60, $tensor, 5000,
                      1.0, pdl(1.52)+i()*pdl(0));
printf "Psi at 600nm: %.2f deg\n", $r->{psi}->at(40);
printf "Cross-pol |rps| at 600nm: %.4f\n", abs($r->{rps})->at(40);

SEE ALSO

Physics::Ellipsometry::VASE::TMM, Physics::Ellipsometry::VASE::MagnetoOptic, Physics::Ellipsometry::VASE::Dispersion

M. Schubert, "Polarization-dependent optical parameters of arbitrarily anisotropic homogeneous layered systems", Phys. Rev. B 53, 4265 (1996).

D.W. Berreman, "Optics in Stratified and Anisotropic Media: 4×4-Matrix Formulation", J. Opt. Soc. Am. 62, 502 (1972).