MATLAB Answers

PDE thermal model with internal heat sources as a function of temperature

15 views (last 30 days)
Urban Simoncic
Urban Simoncic on 10 Oct 2019
Commented: Diego on 1 May 2020
For the steady state heat transfer model I want to specify internal heat source as a function of local temperature. I tried as:
internalHeatSource(myPde, @(location, state) A*((interpolateTemperature(state.u, [location.x; location.y; location.z]))' - Tb), 'cell', 11);
but when I try to solve the model, I get an error:
Function specifying a heat source must accept two
input arguments and return one output argument.
Perhaps I have to somehow transform state.u to thermalresults form. Can you explain me how to properly do that?

  0 Comments

Sign in to comment.

Answers (1)

Tadeu Fagundes
Tadeu Fagundes on 12 Feb 2020
I have the same issue. It seems like if you only use the location input, it works fine. But anything using the state input gives me the same error.

  2 Comments

Urban Simoncic
Urban Simoncic on 13 Feb 2020
Exactly, you can use location, but not the state. But I found a solution for my problem. I wanted to have an internal heat source LINEARLY proportional to the local temperature and that can be done by solving general PDE in Matlab and setting appropriate terms to 0.
Diego
Diego on 1 May 2020
Same issue. I have been looking around, but I can't find an answer for this problem. I have been trying to simulate the steady state of a curing process inside a heated die and I can’t progress because of this problem with a temperature dependent internal heat source.

Sign in to comment.


Translated by