Sudden loss of coolant in a pressurized water reactor due to failure of a coolant pipe would result in flashing of the coolant accompanied by the propagation of a rarefaction wave into the downcomer. A computer program that simultaneously calculates the behavior of the coolant and the accompanying motion of the core support barrel which is considered as a three-dimensional shell with both membrane and bending stresses is discussed.