pymiediff.helper

pymiediff.helper#

package for various tools for pymiediff

helper modules#

helper

pymiediff.helper – Utility functions for Mie‑scattering calculations.

tg

pymiediff.helper.tg

relevant tools#

helper.get_truncution_criteroin_wiscombe(ka)

helper.detach_tensor(args[, item])

helper.transform_fields_spherical_to_cartesian(...)

Convert spherical vector components (E_r, E_theta, E_phi) into Cartesian components (Ex,Ey,Ez).

helper.transform_spherical_to_xyz(r, theta, phi)

Transform spherical to cartesian coordinates

helper.transform_xyz_to_spherical(x, y, z)

Transform cartesian to spherical coordinates

helper.interp1d(x_eval, x_dat, y_dat)

1D bilinear interpolation

helper.funct_grad_checker(z, funct, inputs)

helper.plane_wave_expansion(n)

VSH plane wave expansion coefficients up to order n

tg.StructAutodiffMieEffPola3D(mie_particle, ...)

TorchGDM Mie-theory based 3D point polarizability with auto-diff support

tg.StructAutodiffMieGPM3D(mie_particle, ...)

Autodiff‑enabled 3‑D Global Polarizability Matrix (GPM) structure based on Mie‑theory for a core‑shell sphere.