Vous êtes sur la page 1sur 12

SetPrecision[All, 30];

(*For Uinfinity=10 and Beta=30*)


(*Fluid - air at 20c*)
W = 0.05; Uinfinity = 10;
(*Properties of air at 20 C*)
mu = 1.82 * 10 ^ - 5

(*Dynamic Viscisity*)

rho = 1.2047; (*Density*)


Pr = 0.7; (*Prandtl Number*)
(*Given*)
beta = N30 * Pi 180;
B = Sin[beta] / W;
U = Uinfinity 1 + (B * x);
integral1 = Integrate[U ^ 5, x]
a = integral1 /. x x - integral1 /. x 0;
(*Calculation of delta2*)
delta2sq = Simplify0.47 * mu * a U ^ 6 rho
(*Calculation of k*)
k = rho * delta2sq * D[U, x] / mu
(*Calculation for lambda*)
function = k - lambda * 37 315 - lambda 945 - lambda ^ 2 9072 ^ 2;
(*Division of x*)
xmax = W 2; imax = 101;
Doxdiv = xmax * i - 1 imax - 1;
Kval = k /. x xdiv;
functionval = function /. x xdiv;
root[i] = FindRoot[functionval 0, {lambda, - 13, 0}];
Print[xdiv, "

", Kval, "

", root[i][[1, 2]]], {i, 1, imax}

Clear[xdiv, Kval];
delta2 = Sqrt[delta2sq];
Doxdiv = xmax * i - 1 imax - 1;
del2val = delta2 /. x xdiv;
Kval = k /. x xdiv;

Gautam.nb

lambdaval = root[i][[1, 2]]; xval[i] = xdiv;


(*Calculation of Delta*)
delta[i] = del2val * Sqrt[lambdaval / Kval];
Print[xval[i], "

", delta[i]], {i, 1, imax}

xtab = Table[xval[i], {i, 1, imax}];


delta[1] = 0;
deltab = Table[delta[i], {i, 1, imax}];
(*Plot 1*)
diag1 = ListLinePlot[deltab]
integral2 = Integrate[U, x];
s = integral2 /. x x - integral2 /. x 0;
(*Calculation of H(Tou)*)
H[tou_] := 2 15 * tou - 3 140 * tou ^ 3 + 1 180 * tou ^ 4;
LHS = Expand[tou ^ 2 * H[tou]];
Doxdiv = xmax * i - 1 imax - 1;
RHS[i] = (4 * mu / Pr) * s / rho (U * delta[i]) ^ 2 /. x xdiv;
function2[i] = LHS - RHS[i];
rt[i] = FindRoot[function2[i] 0, {tou, 0, 10}];
xival[i] = rt[i][[1, 2]], {i, 2, imax};
xival[1] = 0; Table[xival[i], {i, 1, imax}]
(*Calculation of deltaT *)
deltaT[1] = 0;
Do[deltaT[i] = delta[i] * xival[i], {i, 2, imax}];
deltat = Table[deltaT[i], {i, 1, imax}]
(*Plot 2*)
diag2 = ListLinePlot[deltat, PlotStyle {Green, Dashed, Thick}]
Show[diag1, diag2, PlotRange All, AxesLabel -> {"x", "del,deltt"}]
k = 0.0255; (*Thermal Conductivity*)
Do[h[i] = 2 * k / deltaT[i], {i, 2, imax}];
hval = Table[h[i], {i, 2, imax}]
(*Plot3*)
diag3 = Graphics[ListLinePlot[hval, PlotStyle Magenta,
PlotRange All, AxesLabel -> {"x", "h(x)"}], Thick]

Gautam.nb

(*Calculation of Tou*)
Uval = U /. x xdiv;
functionval = function /. x xdiv;
root[i] = FindRoot[functionval 0, {lambda, - 13, 0}];
DoTou[i] = ((mu * Uval) / delta[i]) * 2 + root[i][[1, 2]] 6, {i, 2, imax}
Touval = Table[Tou[i], {i, 2, imax}]

(*Plot 4*)
diag4 = Graphics[ListLinePlot[Touval, PlotStyle Magenta,
PlotRange All, AxesLabel -> {"x", "Tou(x)"}], Thick]
0.0000182
-

0.25
(0.1 + 1. x)4
0.25

7.10052 10-12 (1 + 10. x)6 2500. - 0.000047 (1 + 10. x)4 2500. 0.

0.

0.00025
0.0005
0.00075
0.001
0.00125
0.0015
0.00175
0.002
0.00225
0.0025
0.00275
0.003
0.00325
0.0035
0.00375
0.004
0.00425
0.0045

(0.1 + 1. x)4
0.25

(0.1 + 1. x)4

0.
- 0.00117941
- 0.00236768

- 0.0853536

- 0.00356485

- 0.171091

- 0.00477097

- 0.257219

- 0.00598608

- 0.343744

- 0.00721022

- 0.430672

- 0.00844344

- 0.518012

- 0.00968578
- 0.0109373
- 0.012198
- 0.013468
- 0.0147473
- 0.0160359
- 0.017334
- 0.0186414
- 0.0199584
- 0.0212849
- 0.0226209

- 0.605769
- 0.693951
- 0.782566
- 0.871621
- 0.961123
- 1.05108
- 1.1415
- 1.2324
- 1.32377
- 1.41563
- 1.50799
- 1.60086

Gautam.nb

0.00475
0.005

- 0.0239666

0.00525

- 0.025322

- 1.78815

- 0.0266871

0.0055

- 1.88259

- 0.0280619

0.00575

- 1.97758

- 0.0294465

0.006

- 2.07312

- 0.030841

0.00625

- 2.16923

- 0.0322454

0.0065

- 2.26592

- 0.0336598

0.00675

- 2.3632

- 0.0350841

0.007

- 2.46107

- 0.0365185

0.00725
0.0075
0.00775

- 2.55956

- 0.037963

- 2.65867

- 0.0394176

- 2.75842

- 0.0408824

0.008

- 2.85881

- 0.0423575

0.00825

- 2.95987

- 0.0438428

0.0085

- 3.06161

- 0.0453384

0.00875

- 3.16404

- 0.0468444

0.009

- 3.26717

- 0.0483608

0.00925

- 3.37103

- 0.0498877

0.0095

- 3.47562

- 0.0514252

0.00975

- 3.58096

- 0.0529731

0.01

- 3.68708

- 0.0545317

0.01025
0.0105
0.01075
0.011
0.01125
0.0115
0.01175
0.012
0.01225
0.0125
0.01275
0.013
0.01325
0.0135

- 1.69424

- 0.056101

- 3.79398

- 0.057681
- 0.0592717
- 0.0608733
- 0.0624857
- 0.064109
- 0.0657433
- 0.0673885
- 0.0690449
- 0.0707123
- 0.0723909
- 0.0740806
- 0.0757817
- 0.077494

- 3.90169
- 4.01022
- 4.1196
- 4.22984
- 4.34096
- 4.453
- 4.56596
- 4.67988
- 4.79478
- 4.91069
- 5.02762
- 5.14562
- 5.26471
- 5.38491

Gautam.nb

0.01375
0.014

- 0.0792177

0.01425

- 0.0809528

- 5.62883

- 0.0826994

0.0145
0.01475
0.015

- 5.7526

- 0.0844574

- 5.87763

- 0.086227

- 6.00397

- 0.0880082

0.01525

- 6.13164

- 0.0898011

0.0155

- 6.2607

- 0.0916057

0.01575

- 6.3912

- 0.093422

0.016

- 6.52317

- 0.0952501

0.01625

- 6.65668

- 0.0970901

0.0165

- 0.098942

0.01675

- 7.06697

- 0.102682

0.01725

- 7.2072

- 0.10457

0.0175

- 7.34927

- 0.10647

0.01775

- 7.49325

- 0.108382

0.018

- 7.63924

- 0.110306

0.01825

- 7.78731

- 0.112243

0.0185

- 7.93757

- 0.114192

0.01875

- 8.09009

- 0.116154

0.019

- 8.24501

- 0.118127

0.01925

- 8.40242

- 0.120114

0.0195

- 8.56246

- 0.122113

0.01975

- 8.72527

- 0.124124

0.02

- 8.89099

- 0.126148

0.02025
0.0205
0.02075
0.021
0.02125
0.0215
0.02175
0.022
0.02225

- 6.79178
- 6.92852

- 0.100806

0.017

0.0225

- 5.50628

- 0.128185

- 9.05978

- 0.130234
- 0.132297
- 0.134372

- 9.23183
- 9.40734
- 9.58652
- 9.76961

- 0.13646

- 9.95689

- 0.138561

- 10.1487

- 0.140675
- 0.142802
- 0.144942
- 0.147095

- 10.3453
- 10.5471
- 10.7546
- 10.9682

Gautam.nb

0.02275
0.023

- 0.149262
- 0.151442

0.02325
0.0235
0.02375
0.024

0.0245
0.02475
0.025

- 11.4165

- 0.153635

- 11.6527

- 0.155842

- 11.8982

- 0.158062
- 0.160295

0.02425

- 11.1886

- 12.1541
- 12.422

- 0.162542

- 12.7038

- 0.164803

- 13.0018

- 0.167077
- 0.169365

- 13.3194
- 13.661

Power::infy : Infinite expression

1
0.

encountered.

Infinity::indet : Indeterminate expression 0. ComplexInfinity encountered.

0.

Indeterminate

0.00025
0.0005
0.00075
0.001
0.00125
0.0015
0.00175
0.002
0.00225
0.0025
0.00275
0.003
0.00325
0.0035
0.00375
0.004
0.00425
0.0045
0.00475
0.005
0.00525
0.0055

0.000113839
0.000161576
0.000198606
0.000230163
0.000258265
0.000283944
0.000307811
0.000330264
0.000351577
0.000371949
0.000391532
0.000410442
0.00042877
0.000446593
0.000463971
0.000480955
0.00049759
0.000513912
0.000529953
0.000545742
0.000561302
0.000576654

Gautam.nb

0.00575
0.006

0.000591819

0.00625

0.000606813

0.0065

0.000621652

0.00675

0.000636349

0.007

0.000650918

0.00725

0.000665369

0.0075

0.000679713

0.00775

0.00069396

0.008

0.000708119

0.00825

0.000722199

0.0085

0.000736206

0.00875

0.000750148

0.009

0.000764032

0.00925

0.000777864

0.0095

0.000791651

0.00975

0.000805397

0.01

0.000819109

0.01025

0.000832792

0.0105
0.01075
0.011
0.01125
0.0115
0.01175
0.012
0.01225
0.0125
0.01275
0.013
0.01325
0.0135
0.01375
0.014
0.01425
0.0145

0.000846449
0.000860087
0.00087371
0.000887322
0.000900926
0.000914529
0.000928132
0.000941742
0.00095536
0.000968991
0.000982639
0.000996308
0.00101
0.00102372
0.00103747
0.00105126
0.00106509
0.00107895

Gautam.nb

0.01475
0.015

0.00109287

0.01525

0.00110683

0.0155

0.00112085

0.01575

0.00113493

0.016

0.00114907

0.01625

0.00116328

0.0165

0.00117755

0.01675

0.00119191

0.017

0.00120634

0.01725

0.00122086

0.0175

0.00123547

0.01775

0.00125017

0.018

0.00126498

0.01825

0.00127989

0.0185

0.00129491

0.01875

0.00131006

0.019

0.00132533

0.01925

0.00134074

0.0195

0.00135629

0.01975

0.001372

0.02

0.00138786

0.02025

0.0014039

0.0205
0.02075
0.021
0.02125
0.0215
0.02175
0.022
0.02225
0.0225
0.02275
0.023
0.02325
0.0235

0.00142012
0.00143654
0.00145316
0.00147001
0.0014871
0.00150445
0.00152207
0.00154
0.00155826
0.00157689
0.0015959
0.00161536
0.0016353
0.00165578

Gautam.nb

0.02375
0.024
0.02425
0.0245
0.02475
0.025

0.00167689
0.00169869
0.00172131
0.00174489
0.00176962
0.00179576

0.0015

0.0010

0.0005

20

40

60

80

100

{0, 1.13674, 1.13528, 1.13382, 1.13236, 1.13089, 1.12941, 1.12793, 1.12645,


1.12495, 1.12346, 1.12195, 1.12044, 1.11893, 1.11741, 1.11588, 1.11434,
1.1128, 1.11126, 1.1097, 1.10814, 1.10657, 1.105, 1.10342, 1.10183, 1.10023,
1.09863, 1.09701, 1.09539, 1.09377, 1.09213, 1.09049, 1.08883, 1.08717,
1.0855, 1.08382, 1.08213, 1.08043, 1.07872, 1.077, 1.07528, 1.07354, 1.07178,
1.07002, 1.06825, 1.06646, 1.06467, 1.06286, 1.06103, 1.0592, 1.05735, 1.05549,
1.05361, 1.05172, 1.04981, 1.04788, 1.04594, 1.04399, 1.04201, 1.04002,
1.03801, 1.03598, 1.03393, 1.03186, 1.02976, 1.02765, 1.02551, 1.02334,
1.02116, 1.01894, 1.0167, 1.01442, 1.01212, 1.00979, 1.00742, 1.00501, 1.00257,
1.00009, 0.997573, 0.995008, 0.992397, 0.989737, 0.987024, 0.984256, 0.981427,
0.978534, 0.975572, 0.972535, 0.969417, 0.96621, 0.962906, 0.959496, 0.955967,
0.952306, 0.948498, 0.944521, 0.940351, 0.935956, 0.931297, 0.926319, 0.920946}

10

Gautam.nb

{0, 0.000129405, 0.000183434, 0.000225184, 0.000260627, 0.000292069, 0.00032069,


0.00034719, 0.000372025, 0.000395508, 0.000417869, 0.000439281, 0.000459877,
0.000479763, 0.000499025, 0.000517734, 0.000535949, 0.000553719, 0.000571087,
0.00058809, 0.000604758, 0.000621121, 0.000637202, 0.000653023, 0.000668603,
0.000683961, 0.00069911, 0.000714066, 0.000728842, 0.000743448, 0.000757895,
0.000772194, 0.000786354, 0.000800382, 0.000814286, 0.000828074, 0.000841751,
0.000855325, 0.000868801, 0.000882184, 0.00089548, 0.000908693, 0.000921828,
0.000934889, 0.000947881, 0.000960806, 0.000973668, 0.000986472, 0.00099922,
0.00101192, 0.00102456, 0.00103716, 0.00104972, 0.00106223, 0.00107471,
0.00108715, 0.00109956, 0.00111194, 0.00112428, 0.00113661, 0.0011489, 0.00116118,
0.00117344, 0.00118568, 0.0011979, 0.00121011, 0.00122231, 0.0012345, 0.00124669,
0.00125887, 0.00127104, 0.00128322, 0.0012954, 0.00130759, 0.00131978, 0.00133198,
0.00134419, 0.00135642, 0.00136867, 0.00138094, 0.00139323, 0.00140555,
0.0014179, 0.00143028, 0.00144271, 0.00145518, 0.0014677, 0.00148027, 0.00149291,
0.00150561, 0.00151839, 0.00153126, 0.00154423, 0.0015573, 0.00157051,
0.00158385, 0.00159736, 0.00161107, 0.00162501, 0.00163923, 0.00165379}

0.0015

0.0010

0.0005

20

40

60

80

100

del,deltt

0.0015

0.0010

0.0005

20

40

60

80

100

Gautam.nb

{394.111, 278.029, 226.481, 195.682, 174.617, 159.032, 146.894, 137.088, 128.948,


122.048, 116.099, 110.899, 106.302, 102.199, 98.5061, 95.1583, 92.1044,
89.3033, 86.7214, 84.3312, 82.1096, 80.0374, 78.0983, 76.2784, 74.5657,
72.9499, 71.4219, 69.9741, 68.5993, 67.2916, 66.0455, 64.8563, 63.7196,
62.6316, 61.5887, 60.588, 59.6264, 58.7016, 57.811, 56.9527, 56.1245, 55.3248,
54.5519, 53.8042, 53.0805, 52.3792, 51.6994, 51.0398, 50.3994, 49.7774,
49.1726, 48.5845, 48.0121, 47.4547, 46.9116, 46.3822, 45.866, 45.3622,
44.8704, 44.3901, 43.9208, 43.4621, 43.0134, 42.5745, 42.1449, 41.7242,
41.3122, 40.9084, 40.5126, 40.1245, 39.7437, 39.37, 39.0032, 38.6429, 38.2889,
37.941, 37.5989, 37.2625, 36.9315, 36.6057, 36.2848, 35.9688, 35.6573,
35.3502, 35.0473, 34.7483, 34.4532, 34.1615, 33.8733, 33.5881, 33.3059,
33.0262, 32.7489, 32.4736, 32.2, 31.9276, 31.6559, 31.3844, 31.1122, 30.8382}
h(x)
400

300

200

100

20

40

60

80

100

{2.5398, 1.77656, 1.43479, 1.22895, 1.08706, 0.981285, 0.898278, 0.83073,


0.774254, 0.726036, 0.684175, 0.647336, 0.614547, 0.585083, 0.55839, 0.534036,
0.511679, 0.491042, 0.471903, 0.454075, 0.437404, 0.421762, 0.407037,
0.393136, 0.379977, 0.367492, 0.355618, 0.344302, 0.333498, 0.323163,
0.313261, 0.303758, 0.294625, 0.285836, 0.277366, 0.269194, 0.2613, 0.253666,
0.246276, 0.239115, 0.232169, 0.225425, 0.218873, 0.2125, 0.206298, 0.200257,
0.194368, 0.188624, 0.183017, 0.177539, 0.172186, 0.166949, 0.161825,
0.156807, 0.151889, 0.147069, 0.142339, 0.137698, 0.133139, 0.12866,
0.124257, 0.119925, 0.115662, 0.111465, 0.107329, 0.103253, 0.0992325,
0.0952652, 0.0913483, 0.087479, 0.0836546, 0.0798725, 0.0761299, 0.0724244,
0.0687534, 0.0651141, 0.061504, 0.0579205, 0.0543608, 0.0508222, 0.0473017,
0.0437965, 0.0403033, 0.0368189, 0.0333398, 0.0298622, 0.0263819, 0.0228946,
0.0193952, 0.0158781, 0.0123372, 0.00876502, 0.00515334, 0.00149217,
- 0.00223041, - 0.00602902, - 0.00992198, - 0.0139328, - 0.0180929, - 0.0224454}

11

12

Gautam.nb

Tou(x)
2.5

2.0

1.5

1.0

0.5

20

All
All

40

60

80

100

Centres d'intérêt liés