Setting the initial temperature in MATLAB PDE toolbox Nonlinear Heat Transfer in thin plate example
5 views (last 30 days)
Show older comments
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?
0 Comments
Accepted Answer
Rohit
on 25 Aug 2022
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 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!