Project.

> restart;

Start with a shell of unspecified boundary temps and radii.

have surface area of each tube:

> Area := r -> 2*Pi*r*L;

[Maple Math]

Energy balance gives {E in} - {E out} + {E formed} = 0

> Q := (r) -> q(r) * Area(r);

[Maple Math]

> EnBal := Q(r) - Q(r+dr);

[Maple Math]

now consider division by 2*pi*L*dr, with limit dr -> 0

> Eq := limit ( EnBal / (2*Pi*L*dr) , dr = 0 );

[Maple Math]

> Deq := 0 = Eq;

[Maple Math]

this, of course, is equivalent to d(r*q)/dr.

define q(ro) = qo. This assumes the innermost radius (r = ro) has heat flow of qo.

> eq := dsolve( { Deq, q(ro) = qo } , q(r) );

[Maple Math]

note that q(r) is the heat flux through any region, as we defined earlire a generic shell only.

now we consider Fourier's law of heat conduction:

> q(r) := -k * D(T)(r);

[Maple Math]

substitute into the existing equation for q(r).

> eq;

[Maple Math]

Here we have seperated variables and integrate from the inner to outer interface of each region.

> LHS := int( -k , T = Tin ... Tout);

[Maple Math]

> RHS := int(rhs(eq),r = rin ... rout);

[Maple Math]

> region := LHS = RHS;

[Maple Math]

> simplify(region);

[Maple Math]

This expression holds for every region in which there is no fluid - solid interface.

In these cases (inner surface, outer surface), we will use Newton's law of cooling as representative of the physical phenomenon.

> q := h*(T - Tfliud);

[Maple Math]

The results can now be generalized, for N layers. Here we will solve a situation analogous to the book, with three insulation types.

The inner and outer layers will be modeled using Newton's law of cooling.

> T := array(0...3): r := array(0...3): k := array(0...3): expr := array(0...4): qo := array(0...0):

> for i from 0 to 2 by 1 do

> expr[i+1] := T[i] - T[i+1] = qo * r[0] / k[i+1] * ln( r[i+1] / r[i] )

> od;

[Maple Math]

[Maple Math]

[Maple Math]

Properties of the logarithm were used -> log(A) - log(B) = log(A/B)

Now define the first and last expressions for heat transfer - at the fluid - solid interfaces.

> expr[0] := qo = hin*(Tfluid - T[0]);

[Maple Math]

> expr[4] := qo*r[0]/r[3] = hout*(T[3] - Tair);

[Maple Math]

Now solve for Qo, the overall heat transfer.

> S := 0;

[Maple Math]

> S := sum(expr[j] , j = 0 ... 4);

[Maple Math]

We now want to solve for qo, from which Qo can be determined.

> q0 := solve (S,qo);

[Maple Math]

This value multiplied by the surface area gives the total heat flow, Qo.

> Qo := q0 * Area( r[0] );

[Maple Math]

Define over-all heat transfer coefficient based on inner surface :

> Uo := Qo / (Area(r[0])) / (Tfluid - Tair);

[Maple Math]

Now for the down, dirty and boring work.

FOR ALUMINUM:

Inner Pipe Diameter = 2.54 cm

Thickness = 0.635 cm

> r[0] := 2.54*cm: r[1] := r[0]+0.635*cm:

> hin := 0.27*cal/cm^2/sec/K: hout := 1.27*cal/cm^2/sec/K:

> Tfluid := (1000+273.15)*K: Tair := (50+273.15)*K:

> T[1] := (500+273)*K: T[2] := (300+273.15)*K:

> k[1] := .645*cal/sec/cm/K: k[2] := .540*cal/sec/cm/K: k[3] := .492*cal/sec/cm/K:

> expr[0]; expr[1];

[Maple Math]

[Maple Math]

> solve( {expr[0] , expr[1]} , {T[0] , qo} );

[Maple Math]

> T[0] := 868.91*K; qo := 109.14*cal/cm^2/sec;

[Maple Math]

[Maple Math]

> expr[2];

[Maple Math]

> r[2] := solve(expr[2] , r[2]);

[Maple Math]

> expr[3]; expr[4];

[Maple Math]

[Maple Math]

> solve({ expr[3] , expr[4]} , { r[3] , T[3] });

[Maple Math]

Thus we have accounted for all variables - clearly the second expressoin for T3, r3 does not hold.

>

> restart;

FOR COPPER

> r[0] := 2.54*cm: r[1] := r[0]+0.635*cm:

> hin := 0.27*cal/cm^2/sec/K: hout := 1.27*cal/cm^2/sec/K:

> Tfluid := (1000+273.15)*K: Tair := (50+273.15)*K:

> T[1] := (500+273)*K: T[2] := (300+273.15)*K:

> k[1] := .856*cal/sec/cm/K: k[2] := .876*cal/sec/cm/K: k[3] := .901*cal/sec/cm/K:

> solve( {expr[0] , expr[1]} , {T[0] , qo} );

[Maple Math]

> T[0] := 848.85*K; qo := 114.56*cal/cm^2/sec;

[Maple Math]

[Maple Math]

> r[2] := solve(expr[2] , r[2]);

[Maple Math]

> solve({ expr[3] , expr[4]} , { r[3] , T[3] });

[Maple Math]

>

>

>

> restart;

FOR CAST IRON

> r[0] := 2.54*cm: r[1] := r[0]+0.635*cm:

> Tfluid := (1000+273.15)*K: Tair := (50+273.15)*K:

> hin := 0.27*cal/cm^2/sec/K: hout := 1.27*cal/cm^2/sec/K:

> T[1] := (500+273)*K: T[2] := (300+273.15)*K:

> k[1] := .103*cal/sec/cm/K: k[2] := .114*cal/sec/cm/K: k[3] := .131*cal/sec/cm/K:

> solve( {expr[0] , expr[1]} , {T[0] , qo} );

[Maple Math]

> T[0] := 1071.94*K; qo := 54.33*cal/cm^2/sec;

[Maple Math]

[Maple Math]

> r[2] := solve(expr[2] , r[2]);

[Maple Math]

> solve({ expr[3] , expr[4]} , { r[3] , T[3] });

[Maple Math]

>