interfacing nebem and garfield
play

Interfacing neBEM and Garfield++ RD51 collaboration meeting, 24 June - PowerPoint PPT Presentation

Interfacing neBEM and Garfield++ RD51 collaboration meeting, 24 June 2020 1/8 1 / 8 neBEM BEM field solvers are an attractive technique for MPGDs as they require discretising only the boundary of the domain, but not the domain itself. For an


  1. Interfacing neBEM and Garfield++ RD51 collaboration meeting, 24 June 2020 1/8 1 / 8

  2. neBEM BEM field solvers are an attractive technique for MPGDs as they require discretising only the boundary of the domain, but not the domain itself. For an in-depth introduction to the subject see Supratik’s lecture from earlier this week: https://indico.cern.ch/event/911950/contributions/3898133/ Up to now, neBEM has been available as a standalone package (written in C), and through an interface to classic (Fortran) Garfield. 2/8 2 / 8

  3. Garfield++ interface to neBEM Implementation follows closely what was done for (Fortran) Garfield. The geometry is described in terms of a list of Solid objects. Each Solid knows how to determine its surface panels (polygons). The ComponentNeBem3d interface class retrieves the surface panels of the solids present in the geometry, finds/resolves overlaps, and splits the polygons into rectangles and rectangular triangles (“primitives”). The primitives (together with their boundary conditions) are then passed on to neBEM. neBEM splits the primitives into smaller rectangles and rectangular triangles (“elements”), according to the specified target size, fills the influence matrix, performs the inversion, and calculates the charge density at each element. 3/8 3 / 8

  4. Example 1 As an example with only fixed-voltage boundary conditions, let’s consider a parallel-plate capacitor. // Create a geometry consisting of two boxes. SolidBox box1(0, 0, -0.5, 5, 5, 0.1); SolidBox box2(0, 0, 0.5, 5, 5, 0.1); GeometrySimple geo; MediumConductor metal; geo.AddSolid(&box1, &metal); geo.AddSolid(&box2, &metal); // Apply fixed potential boundary conditions to the boxes. box1.SetBoundaryPotential(1000.); box2.SetBoundaryPotential(0.); // Pass the geometry to the neBEM interface class. ComponentNeBem3d nebem; nebem.SetGeometry(&geo); nebem.SetTargetElementSize(1.); “Elements” as seen by neBEM. nebem.Initialise(); 4/8 4 / 8

  5. 10 [cm] 8 y 450 // Plot isopotential contours at z = 0.2. 6 ViewField fieldView; 4 fieldView.SetComponent(&nebem); 400 2 fieldView.SetArea(-10, -10, -1, 10, 10, 2); 0 fieldView.SetPlane(0, 0, 1, 0, 0, 0.2); 350 − 2 fieldView.PlotContour(); − 4 − 300 6 − 8 250 − 10 − − 10 5 0 5 10 x [cm] 5/8 5 / 8

  6. Example 2 Standard GEM. // Top and bottom planes. SolidBox box1(drftx, drfty, drftz, 0.5 * lX, 0.5 * lY, 0.5 * drftlZ); box1.SetBoundaryPotential(drftV); SolidBox box2(bkplx, bkply, bkplz, 0.5 * lX, 0.5 * lY, 0.5 * bkplLZ); box2.SetBoundaryPotential(bkplV); // Top and bottom metal layers. SolidHole topCu(upcprx, upcpry, upcprz, 0.5 * dia, 0.5 * dia, 0.5 * lX, 0.5 * lY, 0.5 * upcprLZ); topCu.SetBoundaryPotential(upcprV); topCu.SetSectors(3); SolidHole btmCu(lwcprx, lwcpry, lwcprz, 0.5 * dia, 0.5 * dia, 0.5 * lX, 0.5 * lY, 0.5 * lwcprLZ); btmCu.SetSectors(3); // Kapton SolidHole Kapton(kptx, kpty, kptz, 0.5 * dia, 0.5 * dia, 0.5 * lX, 0.5 * lY, 0.5 * kptLZ); Kapton.SetSectors(3); Kapton.SetBoundaryDielectric(); 6/8 6 / 8

  7. GeometrySimple geo; geo.AddSolid(&box1, &Cu); // ... ComponentNeBem3d nebem; nebem.SetGeometry(&geo); // Set the target element size. nebem.SetTargetElementSize(10.e-4); “Primitives” (after overlap removal). nebem.SetMinMaxNumberOfElements(1, 5); // Request periodicity. nebem.SetPeriodicityX(lX); nebem.SetPeriodicityY(lY); nebem.SetPeriodicCopies(10, 10, 0); nebem.UseLUInversion(); nebem.Initialise(); “Elements”. 7/8 7 / 8

  8. Next steps Finalise validation. Update user guide and provide tutorials/examples on the website. If you are curious: checkout the nebem branch of the Garfield++ repository ( https://gitlab.cern.ch/garfield/garfieldpp/-/tree/nebem ). Additional dependencies are minimal (GSL). To do Improve the speed of the field evaluation (in particular for periodic layouts). Implement charging up and other “advanced features”. . . . As usual, help and feedback are very welcome! 8/8 8 / 8

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend