How can I create a temperature profile vector (over time) ?
2 次查看(过去 30 天)
显示 更早的评论
Hello to everyone, I need to create a temperature profile vector over time that represent one thermal cycle. I was able only to create one vector that replicate a linear ramp (where my start temperature is 25°C and my final temperature is 1100°C) followed by a plateua phase where the temperature remain constant at 1100°C. I need to change the ramp with a non equispaced linear vector with, for example, a parabolic trend keeping constant the number of elements in this vector. How can i do that ? I attach the matlab script where the vector that has to be replaced is "profilo1". Thanks in advance
T=25 + 273;
Tmax= 1200+273;
h=0.001;
temporaggiungimento=5;
tmax=10;
passo=(Tmax / temporaggiungimento)*h;
diff=(tmax/h)-(temporaggiungimento/h);
tempo11=h:h:temporaggiungimento;
profilo1=linspace(25+273,1100+273,temporaggiungimento/h); % Ramp phase from 25°C to 1100°C
profilo2=linspace(Tmax,Tmax,diff); %%Plateau part at T=1100°C
tempo=h:h:tmax;
profilo=horzcat(profilo1,profilo2);
0 个评论
采纳的回答
Jan
2017-3-16
A parabola shape:
h = 0.001;
temporaggiungimento = 5;
nStep = temporaggiungimento / h;
initialT = 25 + 273;
finalT = 1100 + 273;
diffT = finalT - initialT;
profilo1 = initialT + linspace(0, 1, nStep) .^ 2 * diffT; % change her for different shapes
profilo2 = repmat(finalT, 1, diff);
profilo = [profilo1, profilo2];
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Thermodynamics & Statistical Physics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!