Using pdepe for 1d transcient heat conduction through a composite wall
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
JAMES KARUGU
el 23 de Abr. de 2016
Respondida: Krishnaraj Sambath
el 7 de Oct. de 2016
I have four adjacent slabs each modelled by a pde. My problem is how to handle the boundary conditions at the interfaces. I know that the temperature and the first partial derivative are continuous across the perfect interface. I want to know how to define the bcfun function at the interfaces
0 comentarios
Respuesta aceptada
Bill Greene
el 23 de Abr. de 2016
Editada: Bill Greene
el 23 de Abr. de 2016
You want to model this multi-region wall with a single pde and then write your pde function (pdefun) so that it returns a different flux value (f) and capacitance (c) depending on the slab. You use the input x coordinate to test for the particular slab the coefficients are requested for. Also, as described in the documentation, you want to insure that you have mesh points (xmesh) at the intersection points of the slabs.
Then the BC function is defined to return boundary conditions only at the true boundaries of the wall.
2 comentarios
Bill Greene
el 23 de Abr. de 2016
My response should have said that you want to return both an f and a c depending on the x value. f is ki*DuDx and c is rhoi*ci where i=1,4 in your example. Your test on x is essentially correct but could be done better with an if/else block.
Más respuestas (1)
Krishnaraj Sambath
el 7 de Oct. de 2016
@James: There's a subtlety to Bill's response. You need to update both c & f as rhoi*Cpi & ki, respectively, and not just f as ki / (rhoi * Cpi) and leaving c as 1 for all layers. Doing it the latter way will impose incorrect conditions at the interfaces.
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!