Skip to main content
1-Visitor
November 16, 2015
Solved

The Graetz problem

  • November 16, 2015
  • 1 reply
  • 2310 views

I'm giving this old problem a shot with the pdesolve built-in function. Yes, this problem has an analytical solution, and most likely, it can be solved using dimensional arrays and finite differences too. I might be missing something obvious as to how I have set it up. Please, take a look. Any feedback is greatly appreciated. Thanks,

Best answer by StuartBruff

Gus Larsen wrote:

I'm giving this old problem a shot with the pdesolve built-in function. Yes, this problem has an analytical solution, and most likely, it can be solved using dimensional arrays and finite differences too. I might be missing something obvious as to how I have set it up. Please, take a look. Any feedback is greatly appreciated. Thanks,

You're covering the range Y = 0..1, but the second expression in the parentheses contains 1/Y, hence the error.  I'm not sure why it doesn't throw an error at the other end of Y range, as there is a 1/(1-Y^2), which should also give the divide by zero error.

Stuart

1 reply

23-Emerald V
November 16, 2015

Gus Larsen wrote:

I'm giving this old problem a shot with the pdesolve built-in function. Yes, this problem has an analytical solution, and most likely, it can be solved using dimensional arrays and finite differences too. I might be missing something obvious as to how I have set it up. Please, take a look. Any feedback is greatly appreciated. Thanks,

You're covering the range Y = 0..1, but the second expression in the parentheses contains 1/Y, hence the error.  I'm not sure why it doesn't throw an error at the other end of Y range, as there is a 1/(1-Y^2), which should also give the divide by zero error.

Stuart

glarsen-31-VisitorAuthor
1-Visitor
November 16, 2015

Excellent! Thanks, Stuart. I assumed that somehow the software was going to be able to handle the "0/0" at Y=0 by some numerical scheme of the L'Hopital's rule (as Sy also vanishes for the second term). I will keep these limitations in mind. Best, Gus