Effacer les filtres
Effacer les filtres

How can I create a temperature profile vector (over time) ?

4 vues (au cours des 30 derniers jours)
Giuseppe Napoli
Giuseppe Napoli le 16 Mar 2017
Commenté : Giuseppe Napoli le 16 Mar 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);

Réponse acceptée

Jan
Jan le 16 Mar 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];
  1 commentaire
Giuseppe Napoli
Giuseppe Napoli le 16 Mar 2017
Thanks, your script are perfect. Thanks also for the commented part of the script.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Thermodynamics & Statistical Physics dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by