
Creating a casing object¶
-
class
pwploads.Casing(pipe, conn_compression=0.6, conn_tension=0.6, factors=None)[source]¶ Casing object.
- Parameters
pipe (dict) – set the main pipe characteristics. ‘od’, ‘id’, ‘shoeDepth’, ‘tocMd’, ‘top’, ‘casingClass’, ‘weight’(opt), ‘grade’(opt), ‘e’(opt)
factors (dict) – set define factors for pipe and connection.
-
od¶ outer diameter of the casing [in]
- Type
num
-
id¶ inner diameter of the casing [in]
- Type
num
-
thickness¶ outer diameter of the casing [in]
- Type
str or None
-
dt¶ ratio –> outer diameter / thickness
- Type
num
-
area¶ effective area [in^2]
- Type
num
-
shoe¶ measured depth at shoe [m]
- Type
num
-
ellipse¶ triaxial points [x, y+, y-]
- Type
list
-
loads¶ list of loads that have been run
- Type
list
-
nominal_weight¶ weight per unit length [kg/m]
- Type
num
-
trajectory¶ wellbore trajectory object
- Type
obj
-
api_lines¶ API limits coordinates [x, y]
- Type
list
-
design_factor¶ design factors used ‘vme’, ‘api’
- Type
dict
Example¶
Let’s create a casing with the following characteristics:
od: 8 in
id: 7.2 in
length: 1500 m
nominal weight: 100 kg/m
yield_s: 80000 psi
VME Design Factor: 1.25
- API Design Factors:
burst: 1.1
collapse: 1.1
tension: 1.3
compression: 1.3
>>> import pwploads as pld
>>> casing = pld.Casing(8, 7.2, 1500, nominal_weight=100, yield_s=80000, df_burst=1.1, df_collapse=1.1, df_tension=1.3, df_compression=1.3, df_vme=1.25)
>>> casing.plot(plot_type='pyplot').show()
