Question

Check the file: Questions.pdf

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

2.

T = zeros(11,11); % 11 X11 grid of equal size, with interior points initialized as zero
T(1,1:10) = 100; % assigning boundary values
T(1,11) = 50;
T(2:11,1) = 90:-10:0;
T_prev = zeros(11,11); % Dummy initialization for T_prev
while max(max(abs(T-T_prev))) >0.001 %0.01 is set as limiting value of max error
    T_prev = T;
   for i = 2:10
       for j = 2:10
      
          T(i,j) = 0.25*(T(i+1,j)+T(i-1,j)+T(i,j+1)+T(i,j-1)); % Finite difference formulation
         
       end
   end

end...

This is only a preview of the solution. Please use the purchase button to see the entire solution

Assisting Tutor

Related Homework Solutions

Hydraulics
Homework Solution
$250.00
Mechanical
Engineering
Hydraulics
Pressure
Cylinder
Valve
Motor
Fluid
Pump
Piston
Pipe
Rod
Tandem
Mechanical Seals Questions
Homework Solution
$43.00
Mechanical
Seals
Questions
Engineering
Parameters
Interface
Hydraulic
Advantage
Comparative
Bending of Thin Curved Beam
Homework Solution
$75.00
Mechanical Engineering
Bending
Curved Beam
Displacements
Mild Steel
Equations
Dimensions
Equations
Drawings
Dimensions
Arrangements
Falling Objects
Machines
Tables
Graphs
Energy Questions
Homework Solution
$28.00
Energy
Questions
Mechanical
Engineering
Audit
Cost
Advantages
Cogeneration
Smelting
Reduction
Get help from a qualified tutor
Live Chats