Laplace operator in spherical coordinates (with angular symmetry)

153 views
Skip to first unread message

Gert Van den Eynde

unread,
Jan 7, 2014, 9:10:09 AM1/7/14
to sy...@googlegroups.com
Hi,

I was trying to solve the laplace equation in spherical coordinates with angular symmetry:

from sympy.interactive import printing
printing.init_printing()
import sympy as sym
r = sym.symbols('r')
f= sym.Function('f')

eq = sym.Eq(sym.Derivative(r**2*sym.Derivative(f(r),r),r) + r**2*f(r) , 0)
display(eq)
sym.classify_ode(eq,f(r))
sym.dsolve(eq,f(r))


returns

[...]
NotImplementedError: solve: Cannot solve r**2*f(r) + r**2*Derivative(f(r), r, r) + 2*r*Derivative(f(r), r)

As far as I understand Sympy's classify_ode and dsolve do not recognize this equation. Or am I missing something?

Is this expected behaviour?

Best regards,
Gert

Aaron Meurer

unread,
Jan 17, 2014, 7:18:26 PM1/17/14
to sy...@googlegroups.com
I haven't kept up to date with the dsolve work that was done this
summer, but from as far as I know, there are no solvers implemented to
handle this one. Do you know what a good method to solve it would be,
which can be implemented?

Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at http://groups.google.com/group/sympy.
> For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages