# Why use diameter instead of radius in ComponentAnalyticField::AddWire()

**URL:** <https://root-forum.cern.ch/t/why-use-diameter-instead-of-radius-in-componentanalyticfield-addwire/50640>\
**Category:** Garfield++\
**Created:** [July 3, 2022, 1:32pm UTC](https://root-forum.cern.ch/t/why-use-diameter-instead-of-radius-in-componentanalyticfield-addwire/50640 "2022-07-03T13:32:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crisps](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/crisps/32/39101_2.png) [@Crisps](https://root-forum.cern.ch/u/Crisps)\
**Post date:** [July 3, 2022, 1:32pm UTC](https://root-forum.cern.ch/t/why-use-diameter-instead-of-radius-in-componentanalyticfield-addwire/50640/1 "2022-07-03T13:32:37Z")

</div>

Dear experts

I found that the `ComponentAnalyticField::AddWire()` require the diameter of the wire, where `AddTube()`, `SolidWire()`, `SolidTube` require the radius. Why only the `AddWire()` require diameter?

---

<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:** [July 4, 2022, 6:02am UTC](https://root-forum.cern.ch/t/why-use-diameter-instead-of-radius-in-componentanalyticfield-addwire/50640/2 "2022-07-04T06:02:14Z")

</div>

No particular reason. I think the idea was to use the same parameters as in the [ROWS command](https://garfield.web.cern.ch/help/garfield_2.html#Ref0166) of classic (Fortran) Garfield.

---

<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:** [July 18, 2022, 6:02am UTC](https://root-forum.cern.ch/t/why-use-diameter-instead-of-radius-in-componentanalyticfield-addwire/50640/3 "2022-07-18T06:02:30Z")

</div>

Closed on July 18, 2022, 6:02am UTC

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