A Framework for Modeling Complex Well Configurations