# No calculation of electrons related information

**URL:** <https://root-forum.cern.ch/t/no-calculation-of-electrons-related-information/51700>\
**Category:** Garfield++\
**Created:** [September 25, 2022, 9:30am UTC](https://root-forum.cern.ch/t/no-calculation-of-electrons-related-information/51700 "2022-09-25T09:30:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Zhang](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alex_zhang/32/29158_2.png) [@Alex\_Zhang](https://root-forum.cern.ch/u/Alex_Zhang)\
**Post date:** [September 25, 2022, 9:30am UTC](https://root-forum.cern.ch/t/no-calculation-of-electrons-related-information/51700/1 "2022-09-25T09:30:01Z")

</div>

Hi! I use comsol to build a model and import it into Garfield for signal simulation. During operation, the program don’t report errors and the electric field map have been successfully displayed, but the information about the track and position of electrons has not been calculated. I want to know what’s going on.  
This is the running result:

> Heed:  
> Database path: /home/jack/garfield/Heed/heed++/database  
> MediumMagboltz::LoadGasFile: Reading p160kpa.gas.  
> MediumMagboltz::LoadGasFile: Version 12  
> MediumMagboltz::LoadGasFile:  
> Gas composition set to Ar/CH4 (90/10)  
> MediumMagboltz::LoadIonMobility:  
> Read 26 values from file /home/jack/garfield/Data/IonMobility\_Ar+\_Ar.txt  
> ComponentComsol::Initialise: 149389 nodes.  
> ComponentComsol::Initialise: 109951 elements.  
> ComponentComsol::Initialise: Reading potentials.  
> [======================================================================]  
> ComponentComsol::Initialise: Done.  
> ComponentComsol::PrintRange:  
> Dimensions of the elementary block  
> -15 \< x \< 15 cm,  
> -15 \< y \< 15 cm,  
> -20 \< z \< 20 cm,  
> 0 \< V \< 1000 V.  
> Periodicities  
> x: none  
> y: none  
> z: none  
> ComponentComsol::PrintMaterials:  
> Currently 2 materials are defined.  
> Index Permittivity Resistivity Notes  
> 0 1 -1 Ar/CH4, drift medium, ionisable (drift medium)  
> 1 1e+10 -1  
> Sensor::AddElectrode:  
> Added readout electrode “cathode”.  
> All signals are reset.  
> Sensor::AddElectrode:  
> Added readout electrode “anodeT”.  
> All signals are reset.  
> Sensor::AddElectrode:  
> Added readout electrode “anodeB”.  
> All signals are reset.  
> Sensor::SetTimeWindow: Resetting all signals.  
> ComponentComsol::FindElement13:  
> Caching the bounding boxes of all elements… done.  
> ComponentComsol::InitializeTetrahedralTree: Success.  
> TrackSrim::Print:  
> SRIM energy loss table

```
Energy EM Loss HD loss Range l straggle t straggle
 [MeV] [MeV/cm] [MeV/cm] [cm] [cm] [cm]

     1 3.20501 0.00383607 0.363 0.027555 0.035188
   1.1 3.10563 0.00354538 0.394 0.02819 0.036077
   1.2 3.00873 0.00329942 0.427 0.028837 0.036971
   1.3 2.91432 0.00308823 0.461 0.0295 0.037874
   1.4 2.82488 0.0029019 0.495 0.030181 0.038791
   1.5 2.73792 0.0027404 0.531 0.030881 0.039726
   1.6 2.65842 0.0025963 0.568 0.031601 0.040681
   1.7 2.5814 0.00246761 0.606 0.032341 0.041659
   1.8 2.51183 0.00235208 0.645 0.033103 0.04266
     2 2.37965 0.00215232 0.726 0.035626 0.04474
  2.25 2.23506 0.00194859 0.834 0.039475 0.047493
   2.5 2.10884 0.00178213 0.949 0.043405 0.050426
  2.75 1.99779 0.00164375 1.071 0.047419 0.053542
     3 1.89915 0.00152623 1.198 0.051515 0.056843
  3.25 1.8112 0.00142536 1.333 0.055693 0.060328
   3.5 1.73194 0.0013379 1.474 0.059951 0.063995
  3.75 1.66039 0.00126113 1.621 0.064286 0.067842
     4 1.5953 0.00119331 1.774 0.068697 0.071865
   4.5 1.48151 0.00107827 2.098 0.084203 0.080431
     5 1.38461 0.000984607 2.446 0.09916 0.089663
   5.5 1.30138 0.000906842 2.818 0.114 0.099535
     6 1.22908 0.000841003 3.212 0.129 0.11

```

> Work function: 27000 eV  
> Fano factor: 0.19  
> Ion charge: 2  
> Mass: 3728.77 MeV  
> Density: 0.0024845 g/cm3  
> A, Z: 21.3904, 10  
> New Track  
> New Track  
> New Track  
> New Track  
> New Track  
> New Track  
> New Track  
> New Track  
> New Track  
> New Track  
> Sensor::IntegrateSignal: No signals present.  
> Sensor::IntegrateSignal: No signals present.  
> Sensor::IntegrateSignal: No signals present.  
> Done

I sincerely thank you for your help.

---

<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:** [September 25, 2022, 10:01am UTC](https://root-forum.cern.ch/t/no-calculation-of-electrons-related-information/51700/2 "2022-09-25T10:01:03Z")

</div>

Hi,  
this doesn’t seem right:

```auto
Work function: 27000 eV

```

Do you set the W value explicitly in your code?

---

<div class="post-metadata">

**Author:** ![Alex\_Zhang](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alex_zhang/32/29158_2.png) [@Alex\_Zhang](https://root-forum.cern.ch/u/Alex_Zhang)\
**Post date:** [September 26, 2022, 1:27am UTC](https://root-forum.cern.ch/t/no-calculation-of-electrons-related-information/51700/3 "2022-09-26T01:27:23Z")

</div>

Sorry, I’m a beginner. What does the W value mean?  
This is my code:  
[tpctest.cpp](https://root-forum.cern.ch/uploads/short-url/bNXdS9mwM0EpbBaBTpM6F9ARIdA.cpp) (9.7 KB)

---

<div class="post-metadata">

**Author:** ![Alex\_Zhang](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alex_zhang/32/29158_2.png) [@Alex\_Zhang](https://root-forum.cern.ch/u/Alex_Zhang)\
**Post date:** [September 26, 2022, 1:56am UTC](https://root-forum.cern.ch/t/no-calculation-of-electrons-related-information/51700/4 "2022-09-26T01:56:36Z")

</div>

Thank you very much for your suggestion. I turned down the value of w, and the program calculated the electron trajectory, but no signal came out. Are there any other problems in the code?

---

<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:** [October 3, 2022, 7:48am UTC](https://root-forum.cern.ch/t/no-calculation-of-electrons-related-information/51700/5 "2022-10-03T07:48:18Z")

</div>

Sorry for my late reply. I didn’t spot anything obvious in the code. If you provide your gas file and SRIM output file I can take a look…

---

<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:** [October 17, 2022, 7:48am UTC](https://root-forum.cern.ch/t/no-calculation-of-electrons-related-information/51700/6 "2022-10-17T07:48:34Z")

</div>

Closed on October 17, 2022, 7:48am UTC

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