Thermal expansion as a result of the blocked-in liquid exposed to the higher fluid operating temperature within the system. For example, blocked in liquid and expose to hot sunny condition. If the operating condition of the fluid is above hot sun condition, then it is not a problem, as the temp won't rise above its initial operating condition. However, if there is a steam traced around the pipe (this is particularly true for the black product liquid, eg LSWR, in order to maintain the temp above its pour point or cloud point).
Normally, if a blocked in liquid having total volume of in excess of 500 l, then a thermal relief valve, TRV (size is normally 3/4" by 1" or sometime 1" x 1" though it is quite rate using this size) is required. The set pressure of TRV is maximum flange design pressure (MAWP/Design pressure) plus 20 %. Refer to B31.3 about this. Though sometime, the set point is the same with flange design pressure based on ANSI B16.5.
Based on previous experience and calculation, every 1 deg C increase in fluid inside temp, a pressure rise of 100 psi is expected. The calculation of pressure rise is independent of fluid volume as hilited by Butelja. It does depend on the behaviour of the fluid (cubical expansion), properties of pipe.
Another option of not having a TRV is by installing a permanent drilled check valve of small bypass of the block valve so that the rise in pressure within the block-in liquid can be expelled to the other reservoir/system/piping.
TRV is normally discharge back to the tankage of to the open/closed drain system. It can also be cascaded to the next line provided the TRV is installed and finally discharge back to the tankage.
I've a MS Excel spreadsheet for this calculation.
Hope this help.
Thanks