I'm in agreement with Khalidmf, except I would like to add that you need to consider at which point you need to measure your loads.
I typically put an Anchor+CNODE at the flange/flange connection, as well as at the nozzle wall, just in case I am ever queried, the information is available.
E.G. if your pipe is valve + flange + nozzle neck + header
Normal:
10-20 valve
20-30 flange
30-120 nozzle neck to center of header
110-120-130 header
Instead model:
10-20 valve,Anchor at 20, CNODE to 21
21-30 flange
30-40 nozzle neck to pipe OD, Anchor at 40, CNODE to 41
41-120 nozzle neck from pipe OD to center of header, branch connection at 120.
110-120-130 per normal
This will report simple loads at the header wall and flange/flange interface.
An even more adanced model would be as follows:
10-20 anchor at 20, cnode to 21
21-30
30-40 Y with K value, X with K value, Z with K value, all three at node 40, CNODE to 41
41-120 RX with K value, RZ with K value, both at node 41 CNODE to 40, SIFs input at 120.
The K values and SIF values can come from nozzlepro, fe/pipe, etc, or calculated through FEA tools. This will result in more flexibility and lower stresses and forces, typically.