Variable density in heat diffusion equation
Mostrar comentarios más antiguos
Suppose I have a heat diffusion equation:
rho(x)*c(x)*dT/dt=d/dx(k(x)*dT/dx)
Where rho(x) is the density, c(x) is the heat capacity and k(x) is thermal diffusivity, all being position dependent. Would I need to specify these as vectors in pdepe instead of simple numbers?
1 comentario
Torsten
el 30 de Mayo de 2018
Just like the initial conditions: as simple numbers dependent on x.
Respuestas (2)
Matthew Hunt
el 31 de Mayo de 2018
0 votos
Matthew Hunt
el 31 de Mayo de 2018
2 comentarios
Matthew Hunt
el 31 de Mayo de 2018
Torsten
el 1 de Jun. de 2018
FF=[a_1*k_var; epsilon_var; c_1*D_var].*DuDx;
instead of
FF=[a_1*k_var; epsilon; c_1*D_var].*DuDx;
Best wishes
Torsten.
Categorías
Más información sobre Linear Algebra en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!