In case you are using Cantera with Python, there is an example in the official website (
https://cantera.org/examples/python/reactors/combustor.py.html) that can help you. In this example, the mass flow rate is defined as a function(named mdot), such that is adjusts the inlet mass flow rate in order to keep the residence time in the reactor as the prescribed values. With this approach, you should be able to define a residence time for your PSR calculations. I hope this helps.