# Gas pressure in Garfield++

**URL:** <https://root-forum.cern.ch/t/gas-pressure-in-garfield/48140>\
**Category:** Garfield++\
**Created:** [December 21, 2021, 8:47am UTC](https://root-forum.cern.ch/t/gas-pressure-in-garfield/48140 "2021-12-21T08:47:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![changjh12](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/cc9497/32.png) [@changjh12](https://root-forum.cern.ch/u/changjh12)\
**Post date:** [December 21, 2021, 8:47am UTC](https://root-forum.cern.ch/t/gas-pressure-in-garfield/48140/1 "2021-12-21T08:47:54Z")

</div>

Hello

In my work, I need to set the gas pressure to 1, 3, 5, 7, 10 atm. I am not sure whether Garfield++ can be set like this?  
In the user guide, I did not find relevant information. What is the gas pressure setting range in Garfield++? In other words, where can I find information about gas pressure?

Thank 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:** [December 21, 2021, 10:26am UTC](https://root-forum.cern.ch/t/gas-pressure-in-garfield/48140/2 "2021-12-21T10:26:59Z")

</div>

Yes, of course you can set the gas pressure. The function is called `MediumGas::SetPressure`, see for instance the [drift tube example](https://garfieldpp.web.cern.ch/garfieldpp/examples/tube/), [GEM example](https://garfieldpp.web.cern.ch/garfieldpp/examples/gem/) (also discussed in the user guide), the [gas file tutorial](https://garfieldpp.web.cern.ch/garfieldpp/examples/gasfiles/), or Section 3.3 of the [user guide](https://garfieldpp.web.cern.ch/garfieldpp/documentation/UserGuide.pdf).

---

<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 4, 2022, 10:27am UTC](https://root-forum.cern.ch/t/gas-pressure-in-garfield/48140/3 "2022-01-04T10:27:58Z")

</div>

Closed on January 4, 2022, 10:27am UTC

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