A digital model for the application of analyzing the primary pressure transient of nuclear power plants is presented. No restrictive assumptions have been made, and a rigorous treatment of the conservation laws of energy and mass has been used. A comparison with experimental data from three different sources indicates good overall agreement. The model can be used as a design tool for pressurizer vessels and associated pressure control devices.