jonnymaserati / welleng

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

Why is `l_c` in feet while `l_cs` and `l_xs` are in meters? #97

Closed Jrmy-rbr closed 2 years ago

Jrmy-rbr commented 2 years ago

https://github.com/jonnymaserati/welleng/blob/0afc2ddd62f6b4605dc9ea3ea20d021b7315e974/welleng/survey.py#L1648-L1658

jonnymaserati commented 2 years ago

Because of America.

The original method came from University Texas where they assume that the world works in feet and came up with and index in feet (but not mentioning this anywhere in their papers).

If you look at the next chunk of code, you'll see that l_cs and l_xs are used as a ratio, so as long as their units are consistent then the ratio is dimensionless and some compute is saved, saving some energy and reducing welleng's carbon cost.

https://github.com/jonnymaserati/welleng/blob/0afc2ddd62f6b4605dc9ea3ea20d021b7315e974/welleng/survey.py#L1660-L1669