3D Field and Detector Response Calculations With Boundary Element - - PowerPoint PPT Presentation

3d field and detector response calculations with boundary
SMART_READER_LITE
LIVE PREVIEW

3D Field and Detector Response Calculations With Boundary Element - - PowerPoint PPT Presentation

3D Field and Detector Response Calculations With Boundary Element Method Brett Viren Physics Department DUNE FD Sim/Reco August 1, 2016 Outline Formalism Calculating Detector Response Geometry Parallel Wires / fake-2D MicroBooNE-like


slide-1
SLIDE 1

3D Field and Detector Response Calculations With Boundary Element Method Brett Viren

Physics Department

DUNE FD Sim/Reco August 1, 2016

slide-2
SLIDE 2

Outline

Formalism Calculating Detector Response Geometry Parallel Wires / fake-2D MicroBooNE-like Initial Response Function Results To Do Software

Brett Viren (BNL) LARF August 1, 2016 2 / 20

slide-3
SLIDE 3

Formalism

Detector Response

  • A single charge passing near a LArTPC wire induces a

current waveform which is then shaped and digitized.

  • Collection wires too, truly collected charge makes a short, current spike.
  • The waveform of a single charge depends, in fine detail, on

the instantaneous values of the:

  • charge velocity (vector), ie, drift velocity.
  • charge location relative to the wire of interest as well as every other

electrode in the vicinity.

  • In reality, we measure an ensemble of superimposed

waveforms from multiple, distributed charges.

  • We must deconvolve the ensemble waveforms with some

average response function to produce a good measure of distribution of drifting charge.

→ the more the average response function matches the the true, instantaneous response function the better the deconvolved LArTPC image.

Brett Viren (BNL) LARF August 1, 2016 3 / 20

slide-4
SLIDE 4

Formalism

Instantaneous Induced current

Current in kth wire due to charge q at position r(t) at time t: ik( r(t)) = q × ( Eweight,k · v)

  • v = µ

Edrift( r(t)) Drift field Edrift from applied high voltage Weight field Eweight,k constructed Shockley-Ramo field. Drift Velocity v(t) determines (mean) drift path of an electron. Mobility µ = µ(Edrift) of the drifting charge in LAr.

( Eweight,k calculated by setting wire k to 1V and all other electrodes to 0V .)

Brett Viren (BNL) LARF August 1, 2016 4 / 20

slide-5
SLIDE 5

Calculating Detector Response

The Game

1 Define electrode geometry (eg, some wires + cathode). 2 Calculate scalar and vector fields:

  • φdrift and its

Edrift for the given geometry.

  • φweight,k and its

Eweight,k for each wire of interest.

  • v velocity vector field.
  • i instantaneous scalar current field.

3 Step through vector vector field while sampling current field. 4 Explore ways to average sampled currents to form

average response functions.

Brett Viren (BNL) LARF August 1, 2016 5 / 20

slide-6
SLIDE 6

Calculating Detector Response

The Boundary Element Method (BEM)

1 Discretize electrode surfaces with a triangular mesh. 2 Define potential boundary conditions on mesh elements. 3 Integrate Laplace equation ∇2φ = 0. 4 Fit integral equation to boundary values. 5 Evaluate at points in the volume to get φ(

r). A lot of math and code: rely on GMSH for meshing (1-2) and BEM++ for solving/evaluating (3-5).

Brett Viren (BNL) LARF August 1, 2016 6 / 20

slide-7
SLIDE 7

Calculating Detector Response

Element Methods: Boundary vs. Finite

BEM

  • Meshes the surfaces.
  • Fast for low

surface-to-volume. ( Eweight,k)

  • Performance relies on

relatively new math discoveries.

  • Relatively few software

implementations. This work. FEM

  • Meshes the volume.
  • Fast for high

surface-to-volume. ( Efield)

  • Adaptive meshes can

improve performance.

  • Many implementations,

heavily used in industry. Past 2D and new 3D →

Brett Viren (BNL) LARF August 1, 2016 7 / 20

slide-8
SLIDE 8

Calculating Detector Response

Plug for Leon Rochester’s FEM Work

  • Contemporaneous and collaborative work with Leon Rochester @ SLAC.
  • Custom C++/ROOT FEM code inspired by ICARUS’ FORTRAN codes.
  • Realizes the benefit of the FEM approach (eg, near-surface precision).

→ Potential BEM/FEM hybrid to get the best of both.

Brett Viren (BNL) LARF August 1, 2016 8 / 20

slide-9
SLIDE 9

Geometry

Wires Meshes

“Parallel”: 3mm pitch and gap all wires parallel “MicroBooNE”-like: 3mm pitch and gap 60◦ angles for U/V . “DUNE”-like: 5mm pitch and gap 35.7◦ angles for U/V . Wire generation is parameterized so easy to explore different wire patterns.

Brett Viren (BNL) LARF August 1, 2016 9 / 20

slide-10
SLIDE 10

Geometry Parallel Wires / fake-2D

Parallel Wires - Slice Through Weighting Potentials

U plane V plane W plane

  • X-Z slice through plane of symmetry (Y=0).
  • Color shows weighting potential: 0-100%.
  • Lines: 5%, 10%, 20%, 40% weights.

Brett Viren (BNL) LARF August 1, 2016 10 / 20

slide-11
SLIDE 11

Geometry Parallel Wires / fake-2D

Weighting Potential - 2D vs “2D”

Weighting Field of a U Wire

Garfield 2D calculation from Bo

20 15 10 5 5 10 15 20 20 15 10 5 5 10 15 20

BEM Calculation (potential)

0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0

3D BEM, parallel wires, sliced at Y=0.

Initial, qualitative agreement. More checks would be good but, good enough to continue.

Brett Viren (BNL) LARF August 1, 2016 11 / 20

slide-12
SLIDE 12

Geometry MicroBooNE-like

Wire Geometry with Cathode Plane

Wires parameterized by pitch, angle, bounding box, radius.

Brett Viren (BNL) LARF August 1, 2016 12 / 20

slide-13
SLIDE 13

Geometry MicroBooNE-like

V-plane Eweight Slices

Brett Viren (BNL) LARF August 1, 2016 13 / 20

slide-14
SLIDE 14

Geometry MicroBooNE-like

Paraview stepping from line source

Brett Viren (BNL) LARF August 1, 2016 14 / 20

slide-15
SLIDE 15

Initial Response Function Results

Initial Response Function Results

10 20 30 40 50 60 Digitization time [us] 8 6 4 2 2 4 6 Current (x 1e+13) [amp]

Induced Current Response (3D)

Response for charge near a U-plane wire and charge passing near its nearest and next-nearest wires.

2D equivalent (from uB signal note)

Preliminary, hot off the press!

Brett Viren (BNL) LARF August 1, 2016 15 / 20

slide-16
SLIDE 16

To Do

Next steps

  • More validation with 2D and Leon’s 3D FEM work.
  • Initial results unfortunately very similar to 2D!
  • Just 2D→3D not sufficient!?
  • Go to +/- 10 neighbor wires for good 2D-deconvolution.
  • Computation increases ∼ linearly with number of wires

→ (for BEM, FEM is N2!).

  • Implement protoDUNE/SP and DUNE FD geometries!
  • Many more weighting fields needed due to non-uniform wire

crossing pattern

  • Need ∼30 unique

Eweight,k instead of 3.

  • Can look at “edge effects” such as at APA boundaries.

Anyone wanting to get involved is welcome!

Brett Viren (BNL) LARF August 1, 2016 16 / 20

slide-17
SLIDE 17

Software

LARF - Liquid Argon TPC Field Calculator

Some features:

  • Handles pretty much everything with a simple command

line interface and configuration file.

  • Standard Python installation.
  • Heavy lifting: BEM++, GMSH and Numpy.
  • Results stored in Sqlite3 database with result provenance.
  • Multiple, common data export methods (.npz, .vtk)
  • Playes well with paraview!

→ users/developers welcome. Code and docs on GitHub: https://github.com/brettviren/larf.

Warning: docs need a refresh, contact me before reading so I can clean up.

Brett Viren (BNL) LARF August 1, 2016 17 / 20

slide-18
SLIDE 18

extras

Brett Viren (BNL) LARF August 1, 2016 18 / 20

slide-19
SLIDE 19

Stepping

Evolution of position rk ≡ r(tk) from step k to k + 1:

  • rk →

rk+1 = rk + v( rk) × ∆tk Use Adaptive Runge-Kutta + Cash/Karp (∼ 5th order)

  • From Numerical Recipes
  • Take two different 6th order steps.
  • Distance between each estimates error.
  • Adjust ∆tk+1 based on error
  • Hugely more efficient than simple RK4
  • Must still watch for stepping to get stuck at maximum.

Brett Viren (BNL) LARF August 1, 2016 19 / 20

slide-20
SLIDE 20

Induced Current (Krabby) Field for U Wire

U-wire at center, drift goes upward, Y-Z slice, 0.5 mm voxels, current in Amps.

Brett Viren (BNL) LARF August 1, 2016 20 / 20