Home Heating

Trigonometry

Trigonometry Logo

Home Heating

Any owner will confirm that the heating of a house is expensive. In addition to the cost, it's also a carbon pollution! It turns out that using a system of differential equations, it is possible to describe the change of the temperature in the house for different heating modes. Such a model can be of real practical value.

Consider a typical two-storey house (Figure 1).

Figure 1.

We will describe the indoor temperature by two functions:

  • x(t) is the temperature of the ground floor;
  • y(t) is the temperature of the 1st (upper) floor.

The initial differential equations are based on the Newton's law of cooling, which is written as

dTdt=αAC(TeT)=k(TeT),

where Te is the temperature of the surrounding environment or adjacent room, T is the temperature of the room, α is the heat transfer coefficient, C is the heat capacity of the body or surface through which the heat passes, A is the surface area. It is convenient to replace the coefficients α, A and C with one parameter − the coefficient of thermal conductivity k, which describes the rate of temperature equalization between the two points. Thus, when k=1, the initial temperature difference ΔT decreases e2.7 times per unit time. With increasing k, the relaxation rate also increases.

We introduce the following coefficients ki describing the two-storey house:

  • k1 is the thermal conductivity of the floor on the ground floor;
  • k2 is the thermal conductivity of the ceiling on the ground floor;
  • k3 is the thermal conductivity of the walls on the ground floor;
  • k4 is the thermal conductivity of the walls on the first floor and roof.

Then the system of differential equations for the functions x(t), y(t) can be represented as follows:

{dxdt=k1(Tgx)+k2(yx)+k3(Te(t)x)+f(t)dydt=k4(Te(t)y)+k2(xy),{dxdt=(k1+k2+k3)x+k2y+k1Tg+k3Te(t)+f(t)dydt=k2x(k2+k4)y+k4Te(t),

where the term f(t) describes the heat source located on the ground floor.

We write this system in vector-matrix form:

X(t)=KX(t)+F(t),whereX(t)=[x(t)y(t)],K = [k1k2k3k2k2k2k4],F(t)=F1(t)+F2(t)=[k1Tg+k3Te(t)k4Te(t)]+[f(t)0].

Here the inhomogeneous part is represented as a sum of two vectors. Since the system is linear, we can apply the principle of superposition to find the solution.

First consider the homogeneous system:

X(t)=KX(t).

Determine the eigenvalues of the matrix K:

det(KλI)=0,λ2+(k1+2k2+k3+k4)λ+k1k2+k2k3+k3k4+k1k4+k2k4=0.

Note that the coefficients in the resulting auxiliary equation, which is the quadratic equation, are always positive:

k1+2k2+k3+k4>0,k1k2+k2k3+k3k4+k1k4+k2k4>0.

Therefore, according to the Routh-Hurwitz criterion, the solution of the homogeneous system is asymptotically stable. In this case, it is the zero solution, since it is exactly the position of equilibrium of the homogeneous system.

Find the discriminant of the auxiliary equation:

D=b24ac=(k1+2k2+k3+k4)24(k1k2+k2k3+k3k4+k1k4+k2k4)=k12+4k22+k32+k42+4k1k2+2k1k3+2k1k4+4k2k3+4k2k4+2k3k44k1k24k2k34k3k44k1k44k2k4=k12+4k22+k32+k42+2k1k32k1k42k3k4=(k1+k3)2+4k22+k422k1k42k3k4=(k1+k3)22k4(k1+k3)+k42+4k22=(k1+k3k4)2+4k22>0.

Thus, the discriminant of the auxiliary equation is always positive. This means that the point of equilibrium is always a "node". As the stability of the system has been already proven above, this point is always a stable node, i.e. the eigenvalues λ1,λ2 are distinct and have real negative values. They are defined by the following equation:

λ1,2=12{(k1+2k2+k3+k4)±[(k1+k3k4)2+4k22]12}.

Next, to avoid cumbersome expressions, we consider particular values of the thermal conductivity coefficients ki. Take, for example, the following values:

k1=110,k2=15,k3=25,k4=12.

The higher the value of ki, the worse the insulation and the higher the thermal conductivity of the corresponding surface. With this choice of the coefficients ki the discriminant D of the characteristic equation will be equal to

D=(k1+k3k4)2+4k22=(110+2512)2+4(15)2=425.

Then the eigenvalues λ1,2 have the following values:

λ1,2=(k1+2k2+k3+k4)±D2=910,12.

Now we compute the eigenvectors associated with the eigenvalues λ1,λ2. Let the eigenvalue λ1=910 be related to the vector V1=(V11,V21)T, where the superscript T denotes transposition. We obtain:

(Kλ1I)V1=0,[k1k2k3λ1k2k2k2k4λ1][V11V21]=0,[15151515][V11V21]=0,15V11+15V21=0,V11=V21,V1=[11].

Similarly, we find the second eigenvector V2=(V12,V22)T associated with the eigenvalue λ2=12:

(Kλ2I)V2=0,[15151515][V12V22]=0,15V12+15V22=0,V12=V22,V2=[11].

The general solution of the homogeneous system with the given coefficients ki can be written as

X0(t)=[x0(t)y0(t)]=C1e910t[11]+C2e12t[11],

where the constants C1, C2 depend on the initial conditions.

Now we construct a solution of the nonhomogeneous system. First, consider the nonhomogeneous part F1, which describes the parameters of the external environment:

F1(t)=[k1Tg+k3Te(t)k4Te(t)]=[110Tg+25Te(t)12Te(t)]=110[Tg+4Te(t)5Te(t)].

Suppose, for example, the temperature of the ground (we will measure it in degrees Celsius) is Tg=10C. Assume also that the ambient temperature changes with daily periodicity by the law of

Te(t)=10+10sin(2π24t)=10+10sin(π12t),

that is, in the range from 0C to 20C. The time t and the period of oscillations are expressed in hours. Then we have:

F1(t)=110[10+4(10+10sin(π12t))5(10+10sin(π12t))]=[5+4sin(π12t)5+5sin(π12t)].

We seek a particular solution X1(t) for this nonhomogeneous part in the form of vector quasipolynomial

X1(t)=[x1(t)y1(t)]=[D1+A1sin(π12t)+B1cos(π12t)D2+A2sin(π12t)+B2cos(π12t)].

Substitute the trial solution X1(t) into the system of equations with the inhomogeneous part F1(t):

X1(t)=KX1(t)+F1(t),
[x1(t)y1(t)]=[k1k2k3k2k2k2k4][x1(t)y1(t)]+[k1Tg+k3Te(t)k4Te(t)],
[x1(t)y1(t)]=[710210210710][x1(t)y1(t)]+[5+4sin(π12t)5+5sin(π12t)],

As a result we have

A1π12cos(π12t)B1π12sin(π12t)=710D1710A1sin(π12t)710B1cos(π12t)+210D2+210A2sin(π12t)+210B2cos(π12t)+5+4sin(π12t),
A2π12cos(π12t)B2π12sin(π12t)=210D1+210A1sin(π12t)+210B1cos(π12t)710D2710A2sin(π12t)710B2cos(π12t)+5+5sin(π12t).

By equating the coefficients of like terms, we obtain the following algebraic system:

{A1π12=710B1+210B2B1π12=710A1+210A2+40=710D1+210D2+5A2π12=210B1710B2B2π12=210A1710A2+50=210D1710D2+5.

Solving this system, we find the coefficients A1, B1, D1, A2, B2, D2:

A1=6.55,B1=3.55,A2=7.58,B2=3.85,D1=D2=10.

Thus, the particular solution X1(t) can be written as

X1(t)=[x1(t)y1(t)]=[10+6.55sin(πt12)3.55cos(πt12)10+7.58sin(πt12)3.85cos(πt12)].

Similarly, we find a particular solution X2(t) corresponding to the inhomogeneous part F2(t):

F2(t)=[f(t)0].

The heat source f(t) can be programmed to different modes of operation. We restrict ourselves to the simplest case, when the heat source operates on a constant level: f(t)=f0. Then we seek a particular solution X2 as a constant vector:

X2=[GH].

After substitution of the solution into the system with the inhomogeneous part F2 we obtain:

X2=KX2+F2,0=[710210210710][GH]+[f00],{710G+210H+f0=0210G710H=0,{7G+2H+10f0=02G7H=0,H=49f0,G=149f0.

Thus, the particular solution X2 is represented by the following constant vector:

X2=[x2y2]=[GH]=[149f049f0].

According to the principle of superposition, a particular solution of the linear system, the inhomogeneous part of which is the sum of the vectors F1(t)+F2, is expressed as the sum of the corresponding particular solutions X1(t)+X2. As a result, the general solution can be written as

X(t)=[x(t)y(t)]=X0(t)+X1(t)+X2=C1e910t[11]+C2e12t[11]+[10+6.55sin(πt12)3.55cos(πt12)10+7.58sin(πt12)3.85cos(πt12)]+[149f049f0].

Find the constants C1, C2 from the initial conditions. Suppose, for example, x(0)=10C, y(0)=5C. Consequently,

{x(0)=C1+C2+103.55+149f0=10y(0)=C1+C2+103.85+49f0=5,{C1+C2=3.551.56f0C1+C2=1.550.44f0,{C1=2.35+0.56f0C2=1.20f0.

The final general solution given the initial conditions and for an arbitrary constant heat source is written in the form:

X(t)=[x(t)y(t)]=(2.35+0.56f0)e910t[11]+(1.20f0)e12t[11]+[10+6.55sin(πt12)3.55cos(πt12)10+7.58sin(πt12)3.85cos(πt12)]+[1.560.44]f0.

Here, the first two terms are damped and describe the transition process. The third term is related to heat exchange with the environment. Recall that in this problem the following law of the change of the ambient temperature has been chosen:

Te(t)=10+10sin(π12t).

Finally, the last term in the formula describes the action of the constant heat source f0. The parameter f0 is proportional to the source power. The heat source working for an hour provides an increase in temperature (on the ground floor) by f0 degrees.

Consider the graphs of temperature change. Figure 2 shows the temperature curves on the lower and upper floor of the house (respectively, the functions x(t) and y(t)) when the heater is turned off: f0=0. It can be seen that an increase of the outside temperature Te(t) causes the temperature rise inside the house with a delay. The inertia of heat transfer also causes the temperature on the ground floor to be changed in the range from 2.5C to 17.5C, and on the top floor − from 1.5C to 18.5C, while the ambient temperature ranges from 0C to 20C.

Figure 2.

When the heat source f0 is turned on, of course, it is getting warmer in the house. Figure 3 shows the graphs of x(t), y(t) for the case f0=5(deghr). Now, the temperature on the ground floor ranges from 10C to 25C, and on the upper floor − from 5C to 20.5C.

Figure 3.

As the power of the heat source increases, the ground floor is heated much better than the upper floor (Figure 4).

Figure 4.

Exploring the solutions x(t), y(t) under different operating conditions of the heat source, you can choose the most comfortable and cost effective heating mode.