# Warning energy out of range when generate the gas file

**URL:** <https://root-forum.cern.ch/t/warning-energy-out-of-range-when-generate-the-gas-file/48395>\
**Category:** Garfield++\
**Created:** [January 15, 2022, 3:50am UTC](https://root-forum.cern.ch/t/warning-energy-out-of-range-when-generate-the-gas-file/48395 "2022-01-15T03:50:42Z")\
**Posts on this page:** 8\
**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:** [January 15, 2022, 3:50am UTC](https://root-forum.cern.ch/t/warning-energy-out-of-range-when-generate-the-gas-file/48395/1 "2022-01-15T03:50:42Z")

</div>

When I run the programme to generate the He.gas, the warning show like the screenshot in the below.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/2/7/270942c180159150fd68881606ae69acb1822bf7.png)

---

<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:** [January 15, 2022, 10:26am UTC](https://root-forum.cern.ch/t/warning-energy-out-of-range-when-generate-the-gas-file/48395/2 "2022-01-15T10:26:02Z")

</div>

What is the gas mixture and pressure you are using?

---

<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:** [January 15, 2022, 3:42pm UTC](https://root-forum.cern.ch/t/warning-energy-out-of-range-when-generate-the-gas-file/48395/3 "2022-01-15T15:42:47Z")

</div>

Helium gas only, pressure is 740 Torr. I change the value of the gas.Setfieldgrid, the emin to 0.65, the emax to 3. That means the field intensity is from the range 0.65 V/cm/Torr to 3V/cm/Torr. And the gas file can get now.  
So is that 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:** [January 15, 2022, 6:34pm UTC](https://root-forum.cern.ch/t/warning-energy-out-of-range-when-generate-the-gas-file/48395/4 "2022-01-15T18:34:40Z")

</div>

> [@XiCheng](#):
>
> So is that right?

I’m not sure. The values you specify in `SetFieldGrid` are supposed to be electric fields (in V/cm), not reduced electric fields [V/(cm Torr)]. Is that what you did?

---

<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:** [January 15, 2022, 6:36pm UTC](https://root-forum.cern.ch/t/warning-energy-out-of-range-when-generate-the-gas-file/48395/5 "2022-01-15T18:36:42Z")

</div>

Anyway, I take it that you are using pure Helium at 740 Torr, and I’ll try to run Magboltz for an electric field of 100 V/cm (as shown in your screenshot).

---

<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:** [January 16, 2022, 12:45am UTC](https://root-forum.cern.ch/t/warning-energy-out-of-range-when-generate-the-gas-file/48395/6 "2022-01-16T00:45:46Z")

</div>

Hi，  
Thanks a lot for your reply  
My original data is 0.5V/cm/atm to 3V/cm/atm  
Because 1 Torr=1.33atm, So I set the 0.665-3.99。  
because my pressure is now set to 740Torr, So should I multiply the 740?

---

<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:** [January 16, 2022, 12:47am UTC](https://root-forum.cern.ch/t/warning-energy-out-of-range-when-generate-the-gas-file/48395/7 "2022-01-16T00:47:54Z")

</div>

Yep, It is indeed 760Torr at the beginning, Now I reduced it to see the changing situation about the induced current

---

<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:** [January 30, 2022, 12:48am UTC](https://root-forum.cern.ch/t/warning-energy-out-of-range-when-generate-the-gas-file/48395/8 "2022-01-30T00:48:45Z")

</div>

Closed on January 30, 2022, 12:48am UTC

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