Solving PDEs
Hello can I solve equations of the following form in sage?
E.g. A∂nf∂xn+B∂kf∂yk=0,f=f(x,y)
Meaning a PDE that contains the n-th derivative with respect to x and the k-th derivative with respect to y.
Hello can I solve equations of the following form in sage?
E.g. A∂nf∂xn+B∂kf∂yk=0,f=f(x,y)
Meaning a PDE that contains the n-th derivative with respect to x and the k-th derivative with respect to y.
Thank you very much! I would like to wonder if there is extensive documentation on PDEs with sage (even with hundreds of lines of code). I am particularly interested in solving time dependent Schroedinger Equations that in one dimension (for example) have the form ˆHψ=iℏ˙ψ
UPDATE: This method works pretty for such equations well since the equations reduce to ˆHX=EX and ˙T=E/(iℏ)T and the algorithm is very simple.
There is no PDE in Sage (yet?), however you can install some PDE Python libraries, for example you can easily install fipy by typing from a terminal:
sage -pip install ez_setup fipy
Then, you can import it from within Sage and let it interact with other existing tools.
Other possibilities seem to include sfepy and hpfem, though they might require more skills to get installed within Sage.
Asked: 10 years ago
Seen: 4,981 times
Last updated: Feb 04 '15
Hello,
I assume you want to have your PDE(s) solved numerically. And I don't think SAGE is the best tool to accomplish that. You can certainly solve your PDE with SAGE, but you will have to put a lot of your own code together.
If you want to solve equations like the above with less effort, may I suggest you to use FiPy, a PDE solver that uses the finite volume method (FVM). It has extensive documentation, several examples and a support list where developers and users will help you with your questions.
Good luck!
Fausto