# How can I impalement only gases file like Ar , CO2 or N2

**URL:** <https://root-forum.cern.ch/t/how-can-i-impalement-only-gases-file-like-ar-co2-or-n2/59144>\
**Category:** Garfield++\
**Created:** [April 26, 2024, 1:52am UTC](https://root-forum.cern.ch/t/how-can-i-impalement-only-gases-file-like-ar-co2-or-n2/59144 "2024-04-26T01:52:25Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asmmaa\_Muhammeed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/asmmaa_muhammeed/32/36257_2.png) [@Asmmaa\_Muhammeed](https://root-forum.cern.ch/u/Asmmaa_Muhammeed)\
**Post date:** [April 26, 2024, 1:52am UTC](https://root-forum.cern.ch/t/how-can-i-impalement-only-gases-file-like-ar-co2-or-n2/59144/1 "2024-04-26T01:52:26Z")

</div>

how can I impalement only gases file like Ar , CO2 or N2 ?  
how can I get induced electric field ?

---

<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:** [April 26, 2024, 4:53am UTC](https://root-forum.cern.ch/t/how-can-i-impalement-only-gases-file-like-ar-co2-or-n2/59144/2 "2024-04-26T04:53:06Z")

</div>

Implement gases in what sense?

---

<div class="post-metadata">

**Author:** ![Asmmaa\_Muhammeed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/asmmaa_muhammeed/32/36257_2.png) [@Asmmaa\_Muhammeed](https://root-forum.cern.ch/u/Asmmaa_Muhammeed)\
**Post date:** [April 26, 2024, 5:06am UTC](https://root-forum.cern.ch/t/how-can-i-impalement-only-gases-file-like-ar-co2-or-n2/59144/3 "2024-04-26T05:06:08Z")

</div>

By using gase file or a function

---

<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:** [April 26, 2024, 5:19am UTC](https://root-forum.cern.ch/t/how-can-i-impalement-only-gases-file-like-ar-co2-or-n2/59144/4 "2024-04-26T05:19:14Z")

</div>

If your question is about how to create a gas file, maybe this helps:  
[https://garfieldpp.web.cern.ch/garfieldpp/examples/gasfiles/](https://garfieldpp.web.cern.ch/garfieldpp/examples/gasfiles/)

---

<div class="post-metadata">

**Author:** ![Asmmaa\_Muhammeed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/asmmaa_muhammeed/32/36257_2.png) [@Asmmaa\_Muhammeed](https://root-forum.cern.ch/u/Asmmaa_Muhammeed)\
**Post date:** [May 5, 2024, 1:32pm UTC](https://root-forum.cern.ch/t/how-can-i-impalement-only-gases-file-like-ar-co2-or-n2/59144/5 "2024-05-05T13:32:00Z")

</div>

Hello I hope you are doing great  
i got some error and i dont know what to do  
 ![image](https://root-forum.cern.ch/uploads/default/original/3X/a/c/ac2f62b2f513aafdee5ef7fe9c1e4831e78e38de.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:** [May 6, 2024, 4:32am UTC](https://root-forum.cern.ch/t/how-can-i-impalement-only-gases-file-like-ar-co2-or-n2/59144/6 "2024-05-06T04:32:19Z")

</div>

Maybe you forgot to call the function `SetMedium` of `ViewMedium`?

---

<div class="post-metadata">

**Author:** ![Piet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/piet/32/12536_2.png) [@Piet](https://root-forum.cern.ch/u/Piet)\
**Post date:** [May 6, 2024, 1:20pm UTC](https://root-forum.cern.ch/t/how-can-i-impalement-only-gases-file-like-ar-co2-or-n2/59144/7 "2024-05-06T13:20:40Z")

</div>

Dear @Asmmaa_Muhammeed please attach your full code here, that will be easier for us to understand which step you are missing.  
Thanks  
Piet

---

<div class="post-metadata">

**Author:** ![Asmmaa\_Muhammeed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/asmmaa_muhammeed/32/36257_2.png) [@Asmmaa\_Muhammeed](https://root-forum.cern.ch/u/Asmmaa_Muhammeed)\
**Post date:** [May 7, 2024, 10:29am UTC](https://root-forum.cern.ch/t/how-can-i-impalement-only-gases-file-like-ar-co2-or-n2/59144/8 "2024-05-07T10:29:10Z")

</div>

thank you very much and thank you for your time

but how can i convert of electric field V/cm to Townsend Td ? 😅

---

<div class="post-metadata">

**Author:** ![Piet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/piet/32/12536_2.png) [@Piet](https://root-forum.cern.ch/u/Piet)\
**Post date:** [May 7, 2024, 10:42am UTC](https://root-forum.cern.ch/t/how-can-i-impalement-only-gases-file-like-ar-co2-or-n2/59144/9 "2024-05-07T10:42:39Z")

</div>

You can convert a value of an electric field in V/cm to Td by dividing by the gas numberdensity (you can ask from mediumMagboltz) and multiplying with 1E17 to obtain the electric field in Td.

---

<div class="post-metadata">

**Author:** ![Asmmaa\_Muhammeed](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/asmmaa_muhammeed/32/36257_2.png) [@Asmmaa\_Muhammeed](https://root-forum.cern.ch/u/Asmmaa_Muhammeed)\
**Post date:** [May 7, 2024, 10:50am UTC](https://root-forum.cern.ch/t/how-can-i-impalement-only-gases-file-like-ar-co2-or-n2/59144/10 "2024-05-07T10:50:20Z")

</div>

thank you for your reply  
last question , how can i get the mean energy ?

---

<div class="post-metadata">

**Author:** ![Piet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/piet/32/12536_2.png) [@Piet](https://root-forum.cern.ch/u/Piet)\
**Post date:** [May 7, 2024, 1:36pm UTC](https://root-forum.cern.ch/t/how-can-i-impalement-only-gases-file-like-ar-co2-or-n2/59144/11 "2024-05-07T13:36:11Z")

</div>

mean energy of what?  
you can explore all avaliable methods here:  
[https://garfieldpp.web.cern.ch/documentation/doxygen/html/namespaceGarfield.html](https://garfieldpp.web.cern.ch/documentation/doxygen/html/namespaceGarfield.html)  
greets  
Piet

---

<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:** [May 21, 2024, 1:48pm UTC](https://root-forum.cern.ch/t/how-can-i-impalement-only-gases-file-like-ar-co2-or-n2/59144/12 "2024-05-21T13:48:39Z")

</div>

Closed on May 21, 2024, 1:48pm UTC

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