Borrar filtros
Borrar filtros

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

4 visualizaciones (últimos 30 días)
Giuseppe Napoli
Giuseppe Napoli el 16 de Mzo. de 2017
Comentada: Giuseppe Napoli el 16 de Mzo. de 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);

Respuesta aceptada

Jan
Jan el 16 de Mzo. de 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 comentario
Giuseppe Napoli
Giuseppe Napoli el 16 de Mzo. de 2017
Thanks, your script are perfect. Thanks also for the commented part of the script.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Thermodynamics & Statistical Physics en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by