Midpoint of the fracture intersections

Hello,

I would like to know a way to find the midpoint of an intersection between fractures or between a fracture and a geometry. When the intersection is a straight line, it is relatively simple using fracture.intersect.pos (1 or 2). However, some intersections have more complex shapes, and I’m not sure if there is a simple way (function or command) to find the exact midpoint of the length of the intersection.

Thank you for the support

Hi there.

Did you have any chance to try the fracture.intersect.polylinept Fish command?

I am not a regular DFN functions user, but I guess any intersection (even curvy ones) will be approximated as a succession of segments.

How to define the middle is then up to you, but I guess it will require a bit of Fish or Python coding. E.g., you could search for the point on the polyline splitting the polyline into two equal lengths.

edit: just in case, I wrote a Python script you can find here. The polyline parameter would be the coordinates of all the successive points in fracture.intersect.polylinept.

Cheers!

Theophile

1 Like

Thank you @Theophile ! I wrote a script in FISH using the fracture.intersect.polylinept function as you suggested and achieved the expected result. I appreciate you sharing the Python code

Good if you could make it!

Cheers

Theophile