Termostating particles near the wall

hi all

I’m simulating a Poiseuille flow, for controlling the heat transfer, I’m trying to thermostat the fluid particle that reach a thin layer near the walls. that means i want to thermostat a region instead of a group. for that i need a dynamic group so that it could be updated each time step.
the command temp/region does that but the problem is that it doesn’t remove the bias stream velocity before calculating the temperature. ( I need the compute temp/profile and temp/region at the same time for using as a fix modify command of a fix temp/rescale command)

can any one help me with my problem

thanks a lot

I don't think any of the existing temperature computes can do this. You'd have to write a new one, combining temp/region and temp/profile.