Question regarding slug flow - static equivalent method.

How does one determine the force of a slug if it is hitting and stopping - either a closed valve, or an end cap, etc.? Most spreadsheets and analysis tools give an static load equivalent for a bend at90 or 45 degrees.

Thanks.