Engee documentation
Notebook

Calculation of the pipeline for transportation of heated oil

The project demonstrates the influence of thermodynamic processes on the temperature of an underground pipeline section intended for transporting heated oil.

Task description

The main requirement for oil transportation systems is to ensure a continuous and stable flow by maintaining parameters (in particular, the temperature in the pipeline) at a level significantly higher than the pour point. A more extensive study on the optimization of this system (pipeline diameters) is given in [1].

To predict the temperature at the outlet of the pipeline, we built a model using the library of blocks Heat-conducting liquid (TL, Thermal Liquid). Thermodynamic properties of crude oil are stored in matrices specified as block parameters Thermal Liquid Properties the pipeline parameters are set in the Callbacks of the model, and can also be loaded from a JLD file:

In [ ]:
Pkg.add("JLD2")
In [ ]:
using JLD2
@load "CrudeOilProperties.jld2";

Description of the model

The pipe model for transporting heated oil includes

  • models of two tanks at the inlet and outlet (with atmospheric pressure and preset temperature and tank outlet cross-section),

  • constant flow pump,

  • two models for accounting for thermal conductivity (between oil and pipe material and between pipe and soil),

  • ground temperature model

  • and pipeline model (1000 m with standard parameters).

image.png

Let's run this model using command control:

In [ ]:
engee.open("pipeline-geometry-for-heated-oil-transportation.engee")
data = engee.run("pipeline-geometry-for-heated-oil-transportation")
Out[0]:
SimulationResult(
    "Перед трубопроводом" => WorkspaceArray{Float64}("pipeline-geometry-for-heated-oil-transportation/Tup/Перед трубопроводом")
,
    "После трубопровода" => WorkspaceArray{Float64}("pipeline-geometry-for-heated-oil-transportation/Tdown/После трубопровода")

)
In [ ]:
plot( data["Перед трубопроводом"].time, data["Перед трубопроводом"].value,
      label="Перед трубопроводом", lw=2 )
plot!( data["После трубопровода"].time, data["После трубопровода"].value,
      label="После трубопровода", lw=2 )
plot!( title="Динамика охлаждения нефти на выходе трубопровода", titlefont=font(12),
       xlabel="Время, c", ylabel="Температура, К", legend=:right)
Out[0]:

When passing 1000 m of a pipeline of a given geometry with specified heat loss parameters, the oil temperature dropped by only 0.02 degrees.

Conclusion

By running this model with different parameters, we can choose the optimal pipe diameter, at which the oil does not cool down too much in the specified area (1000 m). This is important to avoid solidification and ensure stable pumping without unnecessary heating costs. This approach allows you to design more economical and reliable pipelines, evaluating different options in advance without expensive experiments.

Bibliography

  1. Probert S. D., Chu C. Y. Optimal pipeline geometries and oil temperatures for least rates of energy expenditure during crude-oil transmission //Applied Energy. – 1983. – Vol. 14. – No. 1. – pp. 1-31.