필터 지우기
필터 지우기

Setting the initial temperature in MATLAB PDE toolbox Nonlinear Heat Transfer in thin plate example

조회 수: 6 (최근 30일)
I am directly executing the code for transient solution in Nonlinear Heat Transder in Thin Plate. The documentation says 'Set the initial temperature of all nodes to ambient, 300 K.' and the code uses variable 'u_0' to define the initial condition. I am not sure whether it is added to the PDE model. The subsequent plot (Temperature along the top edge of the Plate as a function of time) too shows temperature starting from Zero-Kelvin and going up to around 400K. So, what is the actual inital condition?

채택된 답변

Rohit
Rohit 2022년 8월 25일
Hi,
I understand that the temperature of all nodes should start from 300K because of the initialization, but instead it is showing 0. To initialize the node values to 300K, you can replace the following command
u0(1: numNodes) = 300;
with the
setInitialConditions(model,300);
command. This will initialize all the node values to 300K and the same will reflect in the graph as well. The above suggested changes will also be reflected in the documentation soon.

추가 답변 (0개)

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by