Flow simulation in Valves

I want to analyse the flow through a valve. To do this, howmuch length of a pipe should be taken across the valve to apply theboundary conditions? Is there any thumb rule for this?SolidworksFlow Simulation