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

2 ビュー (過去 30 日間)
Giuseppe Napoli
Giuseppe Napoli 2017 年 3 月 16 日
コメント済み: Giuseppe Napoli 2017 年 3 月 16 日
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);

採用された回答

Jan
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];
  1 件のコメント
Giuseppe Napoli
Giuseppe Napoli 2017 年 3 月 16 日
Thanks, your script are perfect. Thanks also for the commented part of the script.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by