3d Maxwell equations solver