Hello, I am trying to create a theoretical model of pressurizing air in a constant volume tank to a pre-set pressure. We are increasing the pressure using a standard pressure regulator. From the equation PV=nRT I know that an increase in pressure at a constant volume can result from an increase in mass and/or temperature. In our model I believe the main source of pressure increase is due to mass increase, but I have experienced and increase of temperature due to recompression as well. Is there a way to determine how much of the pressure increase is due to mass flow and how much is due to temperature increase? And is there an equation or model I could use to predict how much the temperature of the gas will increase when the pressure increases a certain amount?