# Confusion about the longitudinal diffusion coefficient in Garfield

**URL:** <https://root-forum.cern.ch/t/confusion-about-the-longitudinal-diffusion-coefficient-in-garfield/55392>\
**Category:** Garfield++\
**Created:** [June 22, 2023, 7:32am UTC](https://root-forum.cern.ch/t/confusion-about-the-longitudinal-diffusion-coefficient-in-garfield/55392 "2023-06-22T07:32:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiangjc-github](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jiangjc-github/32/27278_2.png) [@jiangjc-github](https://root-forum.cern.ch/u/jiangjc-github)\
**Post date:** [June 22, 2023, 7:32am UTC](https://root-forum.cern.ch/t/confusion-about-the-longitudinal-diffusion-coefficient-in-garfield/55392/1 "2023-06-22T07:32:52Z")

</div>

@hschindl  
Dear hschindl,

I try to understand the longitudinal diffusion coefficient in the Garfield++.  
I compared two simulation results (drift distance is 1 cm), one code is the read.C in the ”GasFile“ director, another is [Examples/GainFluctuations/arco2.C]. In the file "read.C:, the longitudinal diffusion coefficient can be obtained directly and the value is 0.0085sqrt(cm)@2kV/cm (Figure 1). In the file “arco2.C”(just consider drift process), I obtained the drift path by using “GetElectronDriftLength()”，the length distribution is strange (Figure 2). However, the STD obtained from the distribution (Figure 3) of end points in the x-axis direction (transverse diffusion) is consistent with that value from Figure 1. Could you help me understand the results? Thanks very much.

 ![diffusion coefficients](https://root-forum.cern.ch/uploads/default/original/3X/3/5/35d1ea300958553959cbfbe4e9351e312bea374c.png)  
 ![drift length](https://root-forum.cern.ch/uploads/default/original/3X/7/3/737856f75f137247905a41104f0485762d947976.png)  
 ![Xposition](https://root-forum.cern.ch/uploads/default/original/3X/4/2/42b88521a3242250a2225c4388b749540175bbef.png)

Best regards,  
Jiechen

---

<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:** [June 22, 2023, 9:03am UTC](https://root-forum.cern.ch/t/confusion-about-the-longitudinal-diffusion-coefficient-in-garfield/55392/2 "2023-06-22T09:03:31Z")

</div>

Hi,  
thanks for your message! In what sense is the distribution in fig. 2 strange?

To verify that the longitudinal diffusion in your simulation is consistent with the longitudinal diffusion coefficient in the gas file, it’s probably more instructive to plot the distribution of drift times.

---

<div class="post-metadata">

**Author:** ![jiangjc-github](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jiangjc-github/32/27278_2.png) [@jiangjc-github](https://root-forum.cern.ch/u/jiangjc-github)\
**Post date:** [June 22, 2023, 10:26am UTC](https://root-forum.cern.ch/t/confusion-about-the-longitudinal-diffusion-coefficient-in-garfield/55392/3 "2023-06-22T10:26:03Z")

</div>

[hschindl](https://root-forum.cern.ch/u/hschindl)  
Dear hschindl,  
Thanks for your reply, as you suggested, if plot the distribution of drift times, the result is consistent with the longitudinal diffusion coefficient.  
Figure.2 is the distribution of drift length obtained from the function “GetElectronDriftLength()”, the strange point is that the longitudinal diffusion coefficient does not reflect from the distribution, and the sigma is very much smaller than longitudinal diffusion coefficient. Could you help me understand it?

Best regards,  
Jiechen

---

<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 6, 2023, 10:27am UTC](https://root-forum.cern.ch/t/confusion-about-the-longitudinal-diffusion-coefficient-in-garfield/55392/4 "2023-07-06T10:27:00Z")

</div>

Closed on July 6, 2023, 10:27am UTC

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