A 2-piece flanged end ball valve can be modeled by creating the valve body in two halves with flanges on both ends, the spherical ball inside with a flow passage, and the stem for rotation. The two body parts are assembled together with the ball placed inside, and the flanges are designed to allow easy connection to pipelines. By applying mates, the ball can be rotated using the stem to simulate opening and closing of the valve. This model is great for visualizing how ball valves control fluid flow in industrial piping systems.