Diffusion equation in Cartesian and Cylindrical coordinates
    9 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
Hi Matlab Team, 
I have written the code for the diffusion equation in Cartesian and Cylindrical coordinates using pdepe. However, in cylindrical coordinate, the graph is to the left and it is not symmetric. I think it is becasue of the geometry of cylindrical coordinate, but how can I fixed it to have a similar graph from cartesian and cylindrical code?
Thanks 
2 comentarios
  Torsten
      
      
 el 18 de Dic. de 2024
				Your description is far too vague to be able to give advice.
We need your code to reproduce what you are talking about.
Respuestas (1)
  Torsten
      
      
 el 20 de Dic. de 2024
        
      Editada: Torsten
      
      
 el 20 de Dic. de 2024
  
      If m = 1, the condition at r = 0 set by "pdepe" is pl = 0, ql = 1. All other conditions make no sense mathematically because they would cause an unbounded solution for u at r = 0. So your setting pl = F will be internally overwritten by the solver.
Further, I don't understand why you are suprised that the solution changes when you change m from 0 to 1. Of course it will change because diffusion in a cylinder in r-direction differs from diffusion in a plate. Since the areas through which diffusion takes place are smaller in the region from 0 to 0.4 than from 0.6 to 1, concentration will increase faster in the region from 0 to 0.4 than from 0.6 to 1 - the profiles loose their symmetry.
0 comentarios
Ver también
Categorías
				Más información sobre General PDEs en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

