Before any calculation, the wellbore trajectory and pipe properties need to be set. In the case you want to create a case but this data is not available, you should
create a new trajectory, otherwise just load your data using well_profile
>>> import torque_drag
>>> import well_profile
>>> trajectory = well_profile.get(2000, profile='J', build_angle=45, kop=800, eob=1100) # creating a new wellbore trajectory
# including pipe characteristics od_pipe: 4.5 in, id_pipe: 4 in, od_annular: 5 in and length_pipe: 1200 m
>>> well = torque_drag.create_well(well, 4.5, 4, 5, 1200)
Force values are obtained in kN.
>>> result = torque_drag.calc(well2, case='all') # case = "all", "lowering", "static" or "hoisting"
>>> result.plot()
>>> print(result.force['lowering']) # print force profile for lowering case
[228.05418227295422, 217.41198807153359, 206.76979387011295, 196.1275996686923, 185.48540546727165, ...]
>>> print(result.force['static']) # print force profile for static case
[242.85455301532767, 232.21235881390703, 221.57016461248637, 210.92797041106573, 200.2857762096451, ...]
>>> print(result.force['hoisting']) # print force profile for hoisting case
[261.04100931233995, 250.39881511091932, 239.75662090949868, 229.11442670807804, 218.4722325066574, ...]
Torque values are obtained in kN*m
>>> result = torque_drag.calc(well2, case='all', torque_calc=True) # case = "all", "lowering", "static" or "hoisting"
>>> result.plot(torque=True)
>>> print(result.force['lowering']) # print force profile for lowering case
[33.3008341703402, 33.3008341703402, 33.3008341703402, 33.3008341703402, ...]
>>> print(result.force['static']) # print force profile for static case
[36.8943459227886, 36.8943459227886, 36.8943459227886, 36.8943459227886, ...]
>>> print(result.force['hoisting']) # print force profile for hoisting case
[40.919526668277726, 40.919526668277726, 40.919526668277726, 40.919526668277726 ...]