Page 505 - Design and Operation of Heat Exchangers and their Networks
P. 505

488   Appendix


                 fprintf("smax =%e, thm =%f, tcm =%f, 1-thm =%f, e_h =%f\n", ...
                      smax, thm, tcm, 1 - thm, epsilon_h);

              case-36 % BA_3,6
                  % analytical
                  nu2 = special_function_nu(aB, bB);
                  nu_1 = special_function_nu_(aA, bA);
                  K1 = special_function_K(bA);
                  h4 = special_function_h(bB, aB, - K1 / phi);
                  epsilon_h =1-nu2 ∗ nu_1 / (nu_1 - h4);

                  % numerical
                  t1(:, :, :) = 1;
                  t2(:, :, :) = 0;
                  smax = 100;
                  n=0;
                  while (abs(smax) > eps && n < 100)
                      smax = 0;
                      ntuh = NTUh(1);
                      ntuc = NTUc(1);
                      th(:, :) = t1(1, :, :);
                      tc(:, :) = t2(1, :, :);

                      [th, tc, thm,  ] = crossflow_mixed_unmixed ...
                           (ntuh, ntuc, nx, ny, th, tc, A, T, D);
                      for i=1:1 :nx1
                           for j=1:1:ny1
                                s = th(i, j) - t1(1, i, j);
                                if (abs(s) > abs(smax))
                                      smax = s;
                                end
                                t1(1, i, j) = t1(1, i, j) + e ∗ s;
                                s = tc(i, j) - t2(1, i, j);
                                if (abs(s) > abs(smax))
                                      smax = s;
                                end
                                t2(1, i, j) = t2(1, i, j) + e ∗ s;
                           end
                      end
                      t1(2, 1, :) = thm;
   500   501   502   503   504   505   506   507   508   509   510