Spatial Temperature averaging in non-isothermal confined flow

Sorry very little time here to look at your script (incomplete and with names to be guessed). Why not testing a simpler case by turning off the constant force you seem to be applying to your fluid? Then you could make sure your system reaches its steady state and your are monitoring the temp accordingly.

Carlos

Sorry for not providing comments about defined variables.
Actually before the main simulation I applied an equilibrium step without externall force to check wall temperatures and didn’t apply any thermostat to fluid.
Could you tell me if compute temp/profile is the correct command to get spatial temperature? Because I define bins in y direction in this command but it gives a single value as the total average, and I can not get temperatures in each bin seperately.

Any comments would be appreciated.
Thanks

Sorry for not providing comments about defined variables.
Actually before the main simulation I applied an equilibrium step without
externall force to check wall temperatures and didn't apply any thermostat
to fluid.
Could you tell me if compute temp/profile is the correct command to get
spatial temperature? Because I define bins in

​as in most cases, the only viable answer to this question in this
generality is "it depends".​

y direction in this command but it gives a single value as the
total average, and I can not get temperatures in each bin seperately.

​this is the wrong question and the wrong approach. like carlos already
stated, you should do the following:

build a few as simple as possible a test case​s that do only one thing and
make sure they work correctly.
then combine them one by one and watch the outcome carefully. then post the
two test cases where it goes from "good" to "bad" here and explain why you
think the "bad" case is not what you expect. people can then comment on
this with certainty rather than having to speculate and guess. by jumping
ahead you are making your own life harder than it need to be.

axel.

Yes, you are right Axel.
It is better to be more specific. I will follow your instruction.

Thanks for your comment.