# Temperature and pressure control

**URL:** https://ask.bioexcel.eu/t/temperature-and-pressure-control/2696
**Category:** MDWeb
**Created:** [December 1, 2020, 9:52am UTC](https://ask.bioexcel.eu/t/temperature-and-pressure-control/2696 "2020-12-01T09:52:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![alves.chem](https://avatars.discourse-cdn.com/v4/letter/a/839c29/32.png) [@alves.chem](https://ask.bioexcel.eu/u/alves.chem)
#### Post date: [December 1, 2020, 9:52am UTC](https://ask.bioexcel.eu/t/temperature-and-pressure-control/2696/1 "2020-12-01T09:52:20Z")

</div>

My question is regarding the simultaneous control of temperature and pressure.

(a) To control the temperature a re-scale of particle velocities is needed and,  
(b) To control the pressure the volume (particle positons) re-scale is needed (which I believe implies on particle velocities).

(Question) Is there a specif combination of thermostat and barostat we should avoid? I mean since the thermostat will control the velocity and the barostat as well (in this case indirectly controlling the particle positions).

Thank you

---

<div class="post-metadata">

### Author: ![adam.hospital](https://dub1.discourse-cdn.com/flex013/user_avatar/ask.bioexcel.eu/adam.hospital/32/151_2.png) [@adam.hospital](https://ask.bioexcel.eu/u/adam.hospital)
#### Post date: [December 7, 2020, 10:01am UTC](https://ask.bioexcel.eu/t/temperature-and-pressure-control/2696/2 "2020-12-07T10:01:07Z")

</div>

Hi,

pressure control is done adjusting the size of the unit cell and rescaling atomic coordinates (see [https://www.ks.uiuc.edu/Research/namd/2.9/ug/node37.html](https://www.ks.uiuc.edu/Research/namd/2.9/ug/node37.html)). So no clash with temperature control, which re-scales velocities.
