Transient flow analysis in reactor coolant pump systems during flow coastdown period