Mathematical model and computing algorithm of thermal

The 15th INTERNATIONAL SCIENTIFIC CONFERENCE
INFORMATION TECHNOLOGIES AND MANAGEMENT 2017
April 27-28, 2017, ISMA University, Riga, Latvia
Dairbayeva S, Dairbayev A
Mathematical model and computing algorithm of thermal
conduction during oil pumping process
S Dairbayeva*, A Dairbayev
International Information Technology University, Manas Str./Zhandosov Str. 34a/8a, 050040, Almaty, Kazakhstan
*Corresponding authorโ€™s e-mail: [email protected]
Abstract
Improving the methods of calculation modes of pipeline services allows to provide uninterrupted oil pumping process and increase its
efficiency. Objective of the computing oriented to increasing work efficiency of current โ€œhotโ€ underground pipeline. The article considers
several tasks of computer and mathematical modeling. There are: obtain a difference scheme for the equation of thermal variations, obtain
an algorithm for calculating the equation using the double-sweep method, make a graph of temperature changes and develop program of
mathematical model on JavaScript language.
Keywords: computer and mathematical modelling, double-sweep method, temperature changes.
1 Introduction
equation was executed following substituting:
๐œ™=
The technological process analysis of oil transportation in
pipeline shows that the main problem in oil transportation is
the changes of temperature requirements in oil pumping
process that affected by different factors. The changes of
temperature requirements in pipeline lead to the waxing
problem and complete half of oil pipeline. Restarting of oil
pipeline accompanied with many difficulties. By this reason,
the development computer and mathematical model of heat
condition of high-viscosity and thickening oil is the highly
relevant objective.
{
๐‘Ž=
,๐‘ฅ =
๐‘…๐‘ข
๐›ผ
๐‘ฅฬ…
๐‘…
,๐‘ =
๐‘ฆ๐‘–+1 โˆ’2๐‘ฆ๐‘– +๐‘ฆ๐‘–โˆ’1
{
, ๐‘ฅ โˆˆ (0, ๐›ผ) , ๐›ผ =
๐‘…โ„Ž๐ถ
,๐œŽ =
๐‘˜
๐‘™
๐‘…
๐‘˜
.
(2)
๐œŒ๐ถ๐‘
(โˆ†๐‘ฅ)2
+ ๐‘Ž๐œŽ
๐‘ฆ๐‘–+1 โˆ’2๐‘ฆ๐‘–
+ ๐‘Ž(1 โˆ’ ๐œŽ)
โˆ†๐‘ฅ
๐‘‡1 (๐‘ฅ๐‘– )โˆ’๐‘‡0
โˆ’2๐‘๐‘ฆ๐‘– + 2๐‘
๐‘‡๐ฟ
๐‘ฆ๐‘– โˆ’๐‘ฆ๐‘–โˆ’1
โˆ†๐‘ฅ
=0
where ๐‘– = 1, 2, โ€ฆ , ๐‘ โˆ’ 1 and ๐‘ฆ0 = 0 , ๐‘ฆ๐‘ = 1 โˆ’
๐‘‘2๐‘‡
๐‘‘๐‘‡
๐‘‘๐‘ฅฬ…
๐‘‘๐‘ฅฬ…
(3)
,
๐‘‡0
๐‘‡๐ฟ
.
Variables of oil temperature changes ๐‘‡1 (๐‘ฅ) along the
length of pipeline conform with formula 4:
Solution of thermal transfer equation (Formula 1) in oil
pumping process should be considered through the length of
pipeline:
2
2 + ๐œ‹๐‘… ๐œŒ๐ถ๐‘ ๐‘ข
๐‘‡๐ฟ
By using ๐‘Ž, ๐‘, ๐œŽ quantities as new variables, it was
reduced equation 1 to following difference scheme 3:
2 Mathematical model
{๐œ‹๐‘…2 ๐‘˜
๐‘‡โˆ’๐‘‡0
2
๐‘ฅ
( ๐›ผ ) + ๐ต1
๐‘ฅ
๐›ผ
2
+ ๐ถ1 , 0 < ๐‘ฅ <
๐›ผ
2
๐‘‡1 (๐‘ฅ) = { 2
.
๐‘ฅ 2
๐‘ฅ
๐›ผ
โˆ’ ( ) + ๐ต2 + ๐ถ2 , < ๐‘ฅ < ๐›ผ
โˆ’ 2๐œ‹๐‘…โ„Ž๐ถ (๐‘‡ โˆ’ ๐‘‡1 (๐‘ฅ)) = 0, (1)
๐›ผ
where ๐‘… โ€“ radius of circle, ๐‘˜ โ€“ heat-conduction coefficient
of oil, ๐œŒ โ€“ oil density, ๐ถ๐‘ โ€“ heat capacity of oil at constant
pressure, ๐‘ข โ€“ oil pumping velocity, โ„Ž๐ถ โ€“ heat-exchange
coefficient of pipe, ๐‘‡1 (๐‘ฅ) โ€“ function of temperature changes,
๐‘‡0 โ€“ temperature on left side of border line, initial
temperature (๐‘‡(0) = ๐‘‡0 ), ๐‘‡๐ฟ โ€“ temperature on right side of
border line, final temperature (๐‘‡(๐‘™) = ๐‘‡๐ฟ ).
Take as a basis the scheme of pipeline between two
pumping-heating stations (PHS). The distance between
them is from 0 to ๐‘™ (Figure 1). At each of stations, will
measured variety characteristics of high-viscosity oil.
Equations that obtained above necessary equate to a
non-homogeneous differential formula of the second order
(the Dirichlet boundary value problem). For simplifying the
๐›ผ
(4)
2
There are boundary conditions, which align with a
distinguishing exploitation characteristics of โ€œhotโ€ oil
1
1
pipelines: 1 + ๐ต1 + ๐ถ1 = โˆ’ + ๐ต2 + ๐ถ2
4
2
1. At the input of pipeline oil temperature is defined
and equals ๐‘‡0 : ๐‘‡1 (0) = ๐ถ1 = ๐‘‡0
๐›ผ
2. Intermediate value ( ) of oil temperature defined as 0.
2
3. At the output oil temperature is defined and equals
๐‘‡๐ฟ : ๐‘‡1 (๐›ผ) = โˆ’1 + ๐ต2 + ๐ถ2 = ๐‘‡๐ฟ .
Based on the boundary conditions, it was determined the
values B1, C1, B2, C2. The problem put by above listed
conditions contains a unique solution and well defined.
63
CM11
Computer Modelling and Information Technologies
The 15th INTERNATIONAL SCIENTIFIC CONFERENCE
INFORMATION TECHNOLOGIES AND MANAGEMENT 2017
April 27-28, 2017, ISMA University, Riga, Latvia
Dairbayeva S, Dairbayev A
3 Method of solving the problems of thermal processes
and computing algorithm
๐‘ฆ๐‘ = ๐›ผ๐‘โˆ’1 ๐‘ฆ๐‘โˆ’1 + ๐›ฝ๐‘โˆ’1 , ๐›ผ๐‘โˆ’1 = 0 , ๐›ฝ๐‘โˆ’1 = 1 โˆ’
Finally, put together the computing algorithm of right and
left double-sweep method and write them in order of using:
It was solved approximately the equation 3, that included
the equation of thermal variations (Formula 4) and border
conditions, which hold for any randomly chosen interval of
pipeline. In this regard was considered difference equation
of the second order. It was obtainable following notation:
๐ด๐‘ฆ๐‘–โˆ’1 โˆ’ ๐ถ๐‘ฆ๐‘– + ๐ต๐‘ฆ๐‘–+1 + ๐น = 0,
๐ต
๐น๐‘– + ๐ด๐›ฝ๐‘–
๐›ผ๐‘–+1 =
, ๐›ฝ๐‘–+1 =
, i = 1,2, โ€ฆ , N โˆ’ 1
{
๐ถ โˆ’ ๐ด๐›ผ๐‘–
๐ถ โˆ’ ๐ด๐›ผ๐‘–
๐‘ฆ๐‘– = ๐›ผ๐‘–+1 ๐‘ฆ๐‘–+1 + ๐›ฝ๐‘–+1 , i = N โˆ’ 1, N โˆ’ 2, โ€ฆ , 1, 0
(8)
4 Results
๐‘‡0
where ๐ด, ๐ต โ‰  0, ๐‘ฆ0 = 0 , ๐‘ฆ๐‘ = 1 โˆ’ ๐‘‡ , ๐‘– = 1, 2, โ€ฆ N-1.
๐ฟ
Using equation 3, it was determined necessary ๐ด, ๐ต, ๐ถ, ๐น
parameters:
๐ด = 1 + ๐‘Ž(1 โˆ’ ๐œŽ)โˆ†๐‘ฅ; ๐ต = 1 + ๐‘Ž๐œŽโˆ†๐‘ฅ
2
{๐ถ = 2 + ๐‘Ž๐œŽโˆ†๐‘ฅ โˆ’ ๐‘Ž(1 โˆ’ ๐œŽ)โˆ†๐‘ฅ + 2๐‘(โˆ†๐‘ฅ) .
๐น = 2๐‘
๐‘‡1 (๐‘ฅ๐‘– )โˆ’๐‘‡0
๐‘‡๐ฟ
Implementation of mathematical model carried out from
step by step, by accordance of solution concept. For
implementation it was chose JavaScript language. Figure 1
demonstrate temperature curve along the length of the
pipeline for T0 = 40 and TL = 60.
(9)
(โˆ†๐‘ฅ)2
The method of solving linear algebraic equations of the
form ๐ด๐‘ฅ = ๐น accomplished by using double-sweep method,
also known as Thomas algorithm. Algorithm based on
method of sequential exclusion indeterminate variables. The
main idea is to reduce the difference equation of second
order to three difference equations of the first order, in
general namely, non-linear. Suppose that recurrence
equation is valid:
๐‘ฆ๐‘–+1 = ๐›ผ๐‘– ๐‘ฆ๐‘– + ๐›ฝ๐‘– .
FIGURE 1 Temperature distribution along the length of pipe
5 Conclusion
(10)
The main task of oil transportation is providing the optimal
temperature regime. During research was considered
mathematical model and computing algorithm of thermal
conduction during high-viscosity oil pumping process. As a
result, the program of the task was implemented, including
computing algorithm of temperature changes and graphic.
Next step, transformation the equation 8 to form 10:
๐‘ฆ๐‘– =
๐ต
๐ถโˆ’๐ด๐›ผ๐‘–
๐‘ฆ๐‘–โˆ’1 +
๐น๐‘– +๐ด๐›ฝ๐‘–
๐ถโˆ’๐ต๐›ผ๐‘–
.
๐‘‡0
๐‘‡๐ฟ
(11)
This implies recurrence formula for ๐›ผ๐‘–+1 and ๐›ฝ๐‘–+1 .
Consequently, for determination ๐‘ฆ๐‘ we get Cauchy
problem i. e. equations of inverse double-sweep method:
References
[1] ะกะฐะผะฐั€ัะบะธะน ะ ะ 1989 ะขะตะพั€ะธั ั€ะฐะทะฝะพัั‚ะฝั‹ั… ัั…ะตะผ 3-ะต ะธะทะด., ะธัะฟั€. -ะœ.:
«ะะฐัƒะบะฐ». ะ“ะป. ั€ะตะด. ั„ะธะท.-ะผะฐั‚. ะปะธั‚. 35 ั.
[2] ะะณะฐะฟะบะธะฝ ะ’ ะœ 1981 ะขะตะฟะปะพะฒะพะน ะธ ะณะธะดั€ะฐะฒะปะธั‡ะตัะบะธะน ั€ะฐัั‡ะตั‚ั‹
ั‚ั€ัƒะฑะพะฟั€ะพะฒะพะดะพะฒ ะดะปั ะฝะตั„ั‚ะธ ะธ ะฝะตั„ั‚ะตะฟั€ะพะดัƒะบั‚ะพะฒ / ะ’.ะœ. ะะณะฐะฟะบะธะฝ,
ะ‘.ะ›. ะšั€ะธะฒะพัˆะตะธะฝ, ะ’.ะ. ะฎั„ะธะฝ. โ€“ ะœ.: ะะตะดั€ะฐ 256 ั.
64
CM11
Computer Modelling and Information Technologies