# How to write a custom gas file to use in Geant-4 and garfield++ interface

**URL:** <https://root-forum.cern.ch/t/how-to-write-a-custom-gas-file-to-use-in-geant-4-and-garfield-interface/62347>\
**Category:** Garfield++\
**Created:** [November 29, 2024, 7:43am UTC](https://root-forum.cern.ch/t/how-to-write-a-custom-gas-file-to-use-in-geant-4-and-garfield-interface/62347 "2024-11-29T07:43:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ujjwal-gh](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ujjwal-gh/32/37306_2.png) [@Ujjwal-gh](https://root-forum.cern.ch/u/Ujjwal-gh)\
**Post date:** [November 29, 2024, 7:43am UTC](https://root-forum.cern.ch/t/how-to-write-a-custom-gas-file-to-use-in-geant-4-and-garfield-interface/62347/1 "2024-11-29T07:43:08Z")

</div>

Hello

I am modifying the Geant-4 and Garfield ++ interface example code to try and understand the workings of this interface. Now the .gas file used in this interface is ar\_70\_co2\_30\_1000mbar.gas, I want to use p10 gas which is filled with the pressure of 1 atm inside a cuboidal Proportional counter of dimension 600cmX10cmX10cm. This proportional counter has a central anode wire of length 600 cm and radius 50 micrometres on which 3000 V is applied.  
Now how should I create a suitable gas file? (I want to study the effects of electric field on energy deposition)

Thanks

---

<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:** [November 29, 2024, 9:30am UTC](https://root-forum.cern.ch/t/how-to-write-a-custom-gas-file-to-use-in-geant-4-and-garfield-interface/62347/2 "2024-11-29T09:30:04Z")

</div>

[https://garfieldpp.web.cern.ch/garfieldpp/examples/gasfiles/](https://garfieldpp.web.cern.ch/garfieldpp/examples/gasfiles/)

---

<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:** [December 13, 2024, 9:31am UTC](https://root-forum.cern.ch/t/how-to-write-a-custom-gas-file-to-use-in-geant-4-and-garfield-interface/62347/3 "2024-12-13T09:31:05Z")

</div>

Closed on December 13, 2024, 9:31am UTC

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