Simulation of Flow-Control Devices With Feedback Control for Thermal Operations