If I'm not mistaken, the state equation $$PV=nRT$$ also known as the 'ideal gas law' serves as a mathematical model relating pressure-volume-mass-temperature states of an assumed ideal gas. In other words it generally is applied as a 'static' transformation - providing a way to predict what values one or more of the other variables will change to at steady state.
But in practical situations, and perhaps even when one holds to the ideal gas assumptions, there are transients occurring when gases transition from one set of states to another.
So my question - is (or can) the state equation (be) derived from a more general dynamic physical law for gases?
To further illustrate the motivation for this question, consider a system where the number of gas molecules and the volume remain constant, but where pressure and temperature can vary. So from the state equation we predict what resulting temperature we would have in state $2$ starting with the temperature in state $1$ by $$T_2=\frac{P_2}{P_1}T_1$$ Again this equation has no dynamic components, and therefore a step change in pressure leads to an instant step change in temperature. But we know nothing happens instantly. Since the volume and number of particles assumed constant in this example, the only way to get to $P_2$ from $P_1$ is to increase the internal energy, so heat must be input (or if $T_2 < T_1$ , taken) from the system.
So then are the limitations of how fast you are able to move energy into the system the factor that determines the dynamic nature - and thus the differential heat transfer equations that I should be considering to model this physical behavior?