# More than one cylindrical components

**URL:** <https://root-forum.cern.ch/t/more-than-one-cylindrical-components/42687>\
**Category:** Garfield++\
**Created:** [December 10, 2020, 4:57pm UTC](https://root-forum.cern.ch/t/more-than-one-cylindrical-components/42687 "2020-12-10T16:57:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mugiwara](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@mugiwara](https://root-forum.cern.ch/u/mugiwara)\
**Post date:** [December 10, 2020, 4:57pm UTC](https://root-forum.cern.ch/t/more-than-one-cylindrical-components/42687/1 "2020-12-10T16:57:57Z")

</div>

Hello,

I want to create 3 2d “cylindrical” components,with some holes in them,in a specific location in y/x axis and pass them to a sensor.Is it possible by using Garfield++ or will I need Ansys/Elmer/Comsol ?

Thank you.

---

<div class="post-metadata">

**Author:** ![hschindl](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/977dab/32.png) [@hschindl](https://root-forum.cern.ch/u/hschindl)\
**Post date:** [December 11, 2020, 10:57am UTC](https://root-forum.cern.ch/t/more-than-one-cylindrical-components/42687/2 "2020-12-11T10:57:07Z")

</div>

Hi,  
can you make a sketch of the layout you have in mind? I’m not sure I understand how it’s supposed to look like…  
If you want to calculate the electric field without going through an external finite-element solver like Ansys, Elmer, or Comsol, the options you have are `ComponentAnalyticField` (which can be used for 2D arrangements for wires and planes and/or a tube) and neBEM.

---

<div class="post-metadata">

**Author:** ![mugiwara](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@mugiwara](https://root-forum.cern.ch/u/mugiwara)\
**Post date:** [December 13, 2020, 3:38pm UTC](https://root-forum.cern.ch/t/more-than-one-cylindrical-components/42687/3 "2020-12-13T15:38:53Z")

</div>

Hello,

Thank you for your response.The geometry script below is following the includes list:

```
using namespace Garfield;

int main(int argc, char * argv[]){
TApplication app("app", &argc, argv);
plottingEngine.SetDefaultStyle();

// Outer radius of the tube [cm]
const double rTube = 4.75;
// Half-length of the tubes [cm]
const double lpad = 2.5*pow(10,-4);
const double lmesh = 2.5*pow(10,-4);
const double ldrift = 2.5*pow(10,-2);
// Distances between the tubes
const double padmesh=5*pow(10,-3);
const double meshdrift=0.6;
//Tubes' potentials
const double vpad=0.;
const double vmesh=-300.;
const double vdrift=-800.;

// Creating the tubes
SolidTube pad(0., 0., 0., 0., rTube, lpad);
pad.SetBoundaryPotential(vpad);
SolidTube mesh(0., 0., padmesh+2*lpad, 0., rTube, lmesh);
mesh.SetBoundaryPotential(vmesh);
SolidTube drift(0., 0., padmesh+2*lpad+2*lmesh+meshdrift, 0., rTube, ldrift);
drift.SetBoundaryPotential(vdrift);

   // (Cu)
Medium padmeshmed;
padmeshmed.SetAtomicNumber(29);
padmeshmed.SetAtomicWeight(63.54604);
padmeshmed.SetMassDensity(8.96);

 // (Al)

Medium driftmed; 
driftmed.SetAtomicNumber(13);
driftmed.SetAtomicWeight(26.98154); 
driftmed.SetMassDensity(2.7);

GeometrySimple geo;
geo.AddSolid(&pad,&padmeshmed);
geo.AddSolid(&mesh,&padmeshmed);
geo.AddSolid(&drift,&driftmed);

ViewGeometry geoView;
geoView.SetGeometry(&geo);
geoView.Plot3d();

   app.Run(kTRUE);
 }

```

I realized that ComponentNeBem3d can be used for this geometry.Is it a good approximation for this geometry or should i try using an external finite-element solver? What’s your opinion?

Additionally i would like to add some questions here.They are not related to this topic but i do not know if a new topic is needed for these details.

a)In Medium::AtomicWeight, atomic weight is actually the atomic mass?If not,which quantity is it referring to?  
b)Are the atomic weight units u/amu , eV/c^2 or something else?

Thank you,  
Marios Davis.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [December 27, 2020, 3:38pm UTC](https://root-forum.cern.ch/t/more-than-one-cylindrical-components/42687/4 "2020-12-27T15:38:55Z")

</div>

Closed on December 27, 2020, 3:38pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
