Question: function [T] = unsteadyHeatConductionSemiInfinite(L, T0, alpha, t) % This function solves the unsteady heat conduction equation in a semi-infinite solid. % % Input arguments: %

function [T] = unsteadyHeatConductionSemiInfinite(L, T0, alpha, t) % This function solves the unsteady heat conduction equation in a semi-infinite solid. % % Input arguments: % L - The length of the solid. % T0 - The initial temperature of the solid. % alpha - The thermal diffusivity of the solid. % t - The time. % % Output arguments: % T - The temperature of the solid at time t. % % Algorithm: % 1. The governing equation is the unsteady heat conduction equation in a semi-infinite solid. % 2. The initial condition is that the temperature is initially at temperature T0. % 3. The boundary condition is that the temperature at the surface is suddenly raised to temperature TI at time t = 0. % 4. The solution is found using the method of separation of variables. % 5. The temperature is plotted as a function of time and position. % The governing equation. u = alpha * d2T/dy2; % The initial condition. T(y, 0) = T0; % The boundary condition. T(0, t) = TI; % The solution. T(y, t) = TI * exp(-alpha * y^2/4 * t) + T0 * (1 - exp(-alpha * y^2/4 * t)); % Plot the temperature. figure('Position', [100 100 1000 500]) plot(t, T(:, 1), 'b-', t, T(:, 2), 'g-') xlabel('Time') ylabel('Temperature') title('Unsteady Heat Conduction in a Semi-Infinite Solid')

Can you fix this error on the matlab code unsteadyHeatConduction(L, T0, alpha, t) Error using alpha Too many output arguments.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Chemical Engineering Questions!