CFD-based casing and distributor hydraulic design optimization