jonnymaserati / welleng

A collection of Wells/Drilling Engineering tools, focused on well trajectory planning for the time being.
Apache License 2.0
116 stars 32 forks source link

Add NEV/XYZ to DIA survey conversion #47

Closed jonnymaserati closed 3 years ago

jonnymaserati commented 3 years ago

I don't think I have an explicit function for converting an XYZ input survey to DIA yet, so will add this in the survey.py module.

jonnymaserati commented 3 years ago

Added a connect_points function to connector.py. The pictured well was generated from the four Cartesian coordinates using the code below.

import welleng as we

carts = [
    [0., 0., 0.],
    [0., 0., 300.],
    [0., 1000., 1000.],
    [-1000, -1000, 2000]
]

survey = we.connector.connect_points(
    carts,
    vec_start=[0,0,1],
    dls_design=3.0,
    nev=True,
    step=30,
    md_start=0.
)

mesh = we.mesh.WellMesh(
    survey,
    method='circle'
).mesh

we.visual.plot(mesh, points=carts)

image

This has been pushed to dev and I'll push a new main version.