The presentation outlines simulations of electromagnetic fields in photonic nanostructures. It discusses modeling light scattering from 1D and 2D grids of nanoparticles, as well as 2D grids with sequentially twisted ellipsoids. The polarization response is calculated as the number of particles increases. Computing efficiency and applications in optics and microwave engineering are also reviewed. The author acknowledges support from research programs and mentors.