% Created 2026-10-06 Tue 12:46
% Intended LaTeX compiler: pdflatex
\documentclass[usenames,dvipsnames,colorlinks,aspectratio=169]{beamer}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{capt-of}
\usepackage{hyperref}
\usepackage{color}
\usepackage{listings}
\usepackage{pdfpages}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{xspace}
\usepackage{siunitx}
\usepackage{libertine}
\usepackage{fontawesome}
\mode<beamer>{\usetheme{Boadilla}}
\setbeamertemplate{navigation symbols}{}
\setbeamerfont{alerted text}{series=\bfseries}
\setbeamercolor{alerted text}{fg=blue}
\usecolortheme{default}
\usefonttheme{serif}
\usefonttheme{professionalfonts}
\lstloadlanguages{[ISO]C++}
\definecolor{codegreen}{rgb}{0,0.6,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\definecolor{codepurple}{rgb}{0.50,0,0.82}
\definecolor{codeorange}{rgb}{0.95,0.3,0.1}
\definecolor{backcolour}{rgb}{0.95,0.95,0.92}
\lstdefinestyle{mystyle}{
commentstyle=\color{codegreen},
keywordstyle=\color{codeorange},
numberstyle=\tiny\color{codegray},
stringstyle=\color{codepurple},
basicstyle=\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=left,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2
}
\lstset{style=mystyle}
\usepackage{amsmath}
\author{Brett Viren}
\date{\today}
\title{Learning Responses}
\subtitle{Applications of SIREN}
\hypersetup{
 pdfauthor={Brett Viren},
 pdftitle={Learning Responses},
 pdfkeywords={},
 pdfsubject={},
 pdfcreator={},
 pdflang={English}}
\begin{document}

\maketitle
\newcommand{\rvec}{\mathbf{r}}
\newcommand{\Evec}{\mathbf{E}}
\newcommand{\vvec}{\mathbf{v}}
\newcommand{\dd}{\,\mathrm{d}}
\newcommand{\Ntheta}{N_{\theta}}
\newcommand{\Vref}{V_{\mathrm{ref}}}
\include{figs/pixel-opt.tex}
\begin{frame}[label={sec:orgb8cde37}]{Basics of usual field response / induced current calculation}
\begin{block}{Step 1: Solve Laplace equation with two sets of boundary conditions}
\begin{equation*}
\nabla^2 \Phi(\rvec) = 0 \quad \text{in } \Omega,
\qquad
\Phi(\rvec) = g(\rvec) \quad \text{on } \partial\Omega .
\label{eq:bvp}
\end{equation*}
\begin{description}
\item[{drift}] \(\Phi_d\) potential with boundary electrodes at applied voltages.
\item[{weighting}] \(\Phi_{w,k}\) a single electrode \(k\) at 1V, all others are 0V.
\end{description}
\end{block}
\begin{block}{Step 2: Combine by stepping through \textbf{drift} and applying Shockley-Ramo}
\[
I_k(t_i) = q\, \vvec_d \cdot \Evec_{w,k},
\qquad \vvec_d = \mu \Evec_d = - \mu \nabla \Phi_d,
\qquad \Evec_{w,k} = -\nabla \Phi_{w,k} .
\]
\end{block}
\begin{block}{Step 3: Tabulate paths starting at grid of \emph{impact positions} \(\{x_j\}\) at \emph{response plane}}
Discrete array in transverse location vs drift step: \(I_{ij}\).

Typically sampled at 100ns over 10cm (wires) or 20cm (strips) across 0+/-10 wire/strip regions.
\end{block}
\end{frame}
\begin{frame}[label={sec:org041f375}]{LArTPC field response calculators / Laplace solvers}
\begin{description}
\item[{GARFIELD}] \textbf{Finite Element Method} (FEM) okay for 2D wire model.  FORTRAN, arcane config, single-threaded, slow.  Garfield++ is a C++ rewrite (see \href{https://github.com/brettviren/drifires}{drifiers})
\item[{pochoir}] \textbf{Finite Difference Method} (FDM) okay for hybrid 2D+3D strips+holes or pixels.  Modern Python with GPU acceleration but computation speed and result correctness still needs optimizing.
\item[{larf}] \textbf{Boundary Element Method} (BEM) in principle can solve bigger problems (eg, 3D, larger domain) but hasn't been explored since initial work.
\end{description}

These all have some shared limitations:
\begin{itemize}
\item Computational resources require hours to days of CPU or GPU.
\item Results tabulated as discrete steps along pre-defined paths.
\begin{itemize}
\item Nice match to the FFT-based simulation and signal processing.
\item Fail to sample certain important transitions and subject to falling into saddle points.
\end{itemize}
\end{itemize}

New (to me) 4th method: a learned solution.
\end{frame}
\begin{frame}[label={sec:orgb4e9476}]{Learning Laplace}
The basic idea is:
\begin{itemize}
\item Pick some artificial neural network architecture.
\item Form a \emph{loss function} in terms of Laplace's equation and boundary comparisions.
\item Turn the crank to train.

\vfill
\end{itemize}

This approach \textbf{learns physics} directly.
\begin{itemize}
\item Not a \emph{surrogate model}, there is no training set produced by some simulation.
\end{itemize}

\vfill

But, there are some caveats.  
\end{frame}
\end{document}
