equinor / flownet

FlowNet - Data-Driven Reservoir Predictions
GNU General Public License v3.0
63 stars 29 forks source link

Expose angle removal constraint for connections to user #297

Closed wouterjdb closed 3 years ago

wouterjdb commented 3 years ago

We currently have a hard-coded constraint that a triangle create by the Delaunay triangulation will removed if it has an angle larger than 150 degrees.

https://github.com/equinor/flownet/blob/6eb0fd57d1a328567a46b68b0afdf17aa6117f56/src/flownet/network_model/_generate_connections.py#L50

This seems to lead to a lot of duplicate connections in the case of multiple connections per well:

image

After changing the angle to 80 (maybe a bit too strict), the same area looked like:

image

By letting the user tweak this number the number of duplicate connections could be reduced significantly.