Numerical analysis of the stability and transient behavior of natural convection loops