# The relationship between the gas pressure and induced current

**URL:** <https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761>\
**Category:** Garfield++\
**Created:** [February 11, 2022, 9:04am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761 "2022-02-11T09:04:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [February 11, 2022, 9:04am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/1 "2022-02-11T09:04:23Z")

</div>

I have simulated the induced current in the gas ionization chamber caused by proton based on different gas pressure value to find the optimization gas pressure value. However the result seems unreasonable and wrong.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/2/0/207865a2adc1870cd776d576fc486c9336e10f25.png)  
When the gas pressure goes down, the induced current comes up .

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [February 11, 2022, 1:52pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/2 "2022-02-11T13:52:25Z")

</div>

I am sure @hschindl can help you.

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [February 11, 2022, 2:05pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/3 "2022-02-11T14:05:12Z")

</div>

Ok, Thanks a lot 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:** [February 11, 2022, 4:50pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/4 "2022-02-11T16:50:16Z")

</div>

Hmm, interesting…

Can you provide a bit more details how you got these results? I assume you ran TRIM for each gas pressure?

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [February 12, 2022, 1:33am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/5 "2022-02-12T01:33:04Z")

</div>

Hi,  
Thanks a lot for your reply  
You always find the key point. Last night I suddenly realized that I should use different EXYZ files under different pressure by setting different gas density. I will try to see if it can work

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [February 12, 2022, 3:10am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/6 "2022-02-12T03:10:12Z")

</div>

Hi,  
I ran TRIM for each gas, however the result is still not right.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/4/4/444df241e6ff109bab46f890d248717b1a8bb2aa.png)

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [February 12, 2022, 3:30am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/7 "2022-02-12T03:30:40Z")

</div>

![image](https://root-forum.cern.ch/uploads/default/original/3X/9/e/9ea4423d9994db72fa0ec5f37d0d49cbb92c2a55.png)

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [February 12, 2022, 3:58am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/8 "2022-02-12T03:58:47Z")

</div>

```auto
#include <iostream>

#include "Garfield/MediumMagboltz.hh"
#include "Garfield/FundamentalConstants.hh"

using namespace Garfield;

int main(int argc, char * argv[]) {

  const double pressure = 700;
  const double temperature = 293.15;
 
  // Setup the gas.
  MediumMagboltz gas;
  gas.SetComposition("He", 100.);
  gas.SetTemperature(temperature);
  gas.SetPressure(pressure);

  // Set the field range to be covered by the gas table. 
  const size_t nE = 20;
  const double emin =262.5;//0.5/1.33=0.375
  const double emax =1575;//3/1.33=2.25
  // Flag to request logarithmic spacing.
  constexpr bool useLog = true;
  gas.SetFieldGrid(emin, emax, nE, useLog); 

  const int ncoll = 10;
  // Run Magboltz to generate the gas table.
  gas.GenerateGasTable(ncoll);
  // Save the table. 
  gas.WriteGasFile("He-700Torr.gas");

}

```

That’s my gas code generated, even under the same pressure, the induced current is not the same every time. I think maybe this is caused by the fluctuation. I don’t know how to solve the problem now.  
The higher pressure, the lower induced current. The same pressure , different current every time.

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [February 12, 2022, 2:10pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/9 "2022-02-12T14:10:26Z")

</div>

Hi,  
I have calculated the cumulative current value during the 100ns. then I plot the relationship between the gas pressure and current.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/7/b/7b5379fd045616afbf7c15f714cb2ec4b59f8bf7.png)  
The curve seems to oscillate  
I don’t know whether if it is probably right.

---

<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:** [February 13, 2022, 4:04pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/10 "2022-02-13T16:04:56Z")

</div>

Can you attach

- your gas file for 550 Torr,
- your `EXYZ.txt` file for 550 Torr,
- your gas file for 700 Torr,
- and your `EXYZ.txt` file for 700 Torr?

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [February 14, 2022, 3:01am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/11 "2022-02-14T03:01:19Z")

</div>

Hi,Thanks a lot for your help.  
I only have the 540Torr gas file and EXYZ.txt file, the 700Torr gas file and EXYZ.txt file  
Is that OK?  
I will send them to your email

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [February 15, 2022, 10:37am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/12 "2022-02-15T10:37:50Z")

</div>

Hi,  
I have send the files to your email, although the induced current is the descending trend along with the decrease in pressure,but the curve’s fluctuation is so big that I doubt that maybe all the results are wrong .I don’t know why

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [February 15, 2022, 10:45am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/13 "2022-02-15T10:45:58Z")

</div>

I found when the pressure decreased to 600 and below, the oscillation would go down. So I tried to simulate to the lowest pressure to find the rule. However when I generated the gas file at 520 Torr, the error notice that" Warning energy out of range,increase electron energy integration range "

---

<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:** [February 15, 2022, 2:02pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/14 "2022-02-15T14:02:49Z")

</div>

Yes, thanks, I got your email but I haven’t had time to take a look yet. Sorry…

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [February 16, 2022, 3:46am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/15 "2022-02-16T03:46:11Z")

</div>

Hi,  
Thanks a lot for your reply  
It’s ok, you can take a look when you have time.  
Thanks a lot for your help again ,and it’s really interesting and helpful to communicate with you.

---

<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:** [February 21, 2022, 10:02am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/16 "2022-02-21T10:02:37Z")

</div>

You’ll find attached a simple program that imports tracks from a TRIM EXYZ.txt output file and calculates the average deposited charge. It also calculates the average induced charge (which for long enough integration times corresponds to the deposited charge). For simplicity, it doesn’t use your field map but a simple parallel-plate geometry.

Running this program I get an average of about 21 electron/ion pairs per cm at 560 Torr and about 23.1 electron/ion pairs per cm at 700 Torr, so the average deposited charge does increase with increasing pressure.  
[test.C](https://root-forum.cern.ch/uploads/short-url/sVq1nWGQW9JwHZDTJyMU8torWAb.C) (3.2 KB)

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [February 21, 2022, 12:07pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/17 "2022-02-21T12:07:46Z")

</div>

Hi,  
Thanks a lot for your reply  
So the reason is the fault of the field map, Otherwise the result would be normal, is that right.  
But I can’t find the problem in my field map, I just set six gas regions stacked up and there are gaps between them. The voltage is set on the areas of the gas region.

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [February 21, 2022, 12:14pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/18 "2022-02-21T12:14:57Z")

</div>

So what should I do now to find the problem of the field map. My result is generally the downtrend, I think the abnormally enlarged portions may be the reason of statistical fluctuation. Is that possible?

---

<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:** [February 21, 2022, 1:03pm UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/19 "2022-02-21T13:03:51Z")

</div>

I don’t think there is a problem with the field map. You should average over many (few hundred or thousand) tracks to draw a conclusion.

---

<div class="post-metadata">

**Author:** ![XiCheng](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/x/aca169/32.png) [@XiCheng](https://root-forum.cern.ch/u/XiCheng)\
**Post date:** [February 22, 2022, 5:49am UTC](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761/20 "2022-02-22T05:49:07Z")

</div>

HI,  
Thanks a lot for your reply  
So what means to average over many tracks? I should simulate one track at 740 Torr 1500V, just for example, several times and then finally calculate the average value. Is that right?

[Next page](https://root-forum.cern.ch/t/the-relationship-between-the-gas-pressure-and-induced-current/48761.md?page=2)
