How can I create a temperature profile vector (over time) ?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Giuseppe Napoli
am 16 Mär. 2017
Kommentiert: Giuseppe Napoli
am 16 Mär. 2017
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 Kommentare
Akzeptierte Antwort
Jan
am 16 Mär. 2017
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];
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!