Plotting field versus space

I want to simulate a drift chamber cell
Cell.pdf (58.9 KB).
When I plot the field, the result is not the same as others’ work.
FieldPlot.pdf (20.0 KB)

My code:

  ViewField fieldplot; 
  fieldplot.PlotProfile(-0.5, 0., 0., 0.5, 0., 0., "field", true);

Can you show the other plot that you are comparing with?

Such as this bro’s plot: Plotting the electric field profile - Garfield++ - ROOT Forum (

I know, maybe my result is proper.

I think so. I don’t see anything obviously wrong with your plot…

Thank you. My misunderstanding.

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