![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/333141/image.png)
Solve heat equation with source term
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Nishant Gupta
il 16 Lug 2020
Modificato: Nishant Gupta
il 9 Ago 2020
I have a system of coupled PDEs relatd to the heat equation that I am trying to solve using the 'pdepe' command in Matlab. The equations are as follows-
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/332814/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/332817/image.png)
Here, 'T' and 'm' are the independent variables and 't' is time. A(m, T) is a function of both 'm' and 'T' while k(T) is a function of T only. B is a constant. The initial conditions are as follows-
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/332820/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/332823/image.png)
The boundary conditions are-
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/332853/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/343570/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/332853/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/343570/image.png)
I know how to use pdepe when only one independent variable is there but with two I am having trouble casting these equations in the matrix form that is expected by the solver. Any help is appreciated!
0 Commenti
Risposta accettata
Bill Greene
il 17 Lug 2020
T and m are referred to as dependent variables, not independent; x and t are the independent variables. This Example shows how to use pdepe for a problem with two dependent variables. To satisfy the requirements for pdepe input, you will need to substitute your second equation into the first to eliminate
.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/333141/image.png)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su General PDEs in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!