Home | News | Documentation | Download

More than one cylindrical components

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.

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.

1 Like

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.

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