Académique Documents
Professionnel Documents
Culture Documents
rho = 10;
k = 10;
cap = 10^6;
a = k / (rho * cap);
tpb = 0;
L = 0.02;
tf = 120; % instant final
n = 10; % nombre de volumes de contrôle (VC)
m = 120;
dt = tf / m; % pas de temps
dx = L / n; % pas d'espace
% Boucle temporelle
for j = 2:m
% Conditions aux limites
% Nœud 1 (CL): température fixée (t=0, i=2, instant précédent=j-1)
tp(1, j) = ae * tp(2, j - 1) + (1 - ae) * tp(1, j - 1);
% Boucle temporelle
for j = 2:m
% Conditions aux limites
% Nœud 1 (CL): température fixée (t=0, i=2, instant précédent=j-1)
tp(1, j) = ae * tp(2, j - 1) + (1 - ae) * tp(1, j - 1);
% Réajustement de la température
tp = 800 * tp / pi;
% Boucle temporelle
for j = 2:m
% Conditions aux limites
% Nœud 1 (CL): température fixée
tp(1, j) = ae * tp(2, j - 1) + (1 - ae) * tp(1, j - 1);
% Boucle temporelle
for j = 2:m
% Conditions aux limites
% Nœud 1 (CL): température fixée
tp(1, j) = aE * tp(2, j - 1) + (1 - aE) * tp(1, j - 1);
clc
clear
% Boucle temporelle
for j = 2:m
% Conditions aux limites
% Nœud 1 (CL): température fixée
tp(1, j) = ae * tp(2, j - 1) + (1 - ae) * tp(1, j - 1);