Development of a numerical thermal-hydraulic model to simulate forced and natural circulation reactor loop and non-linear analysis of parallel channel instabilities