Automatic differentiation approach for solving one-dimensional flow and heat transfer problems. (15th September 2021)