Looking for Resources to Build a 2D PDE Solver in Python

July 24, 2025 3 answers
Asked by fewer syllables please
Hey everyone! I'm tackling a project for my university that involves building a solver for partial differential equations (PDEs). I think it would be a great way to show off my skills in this area. However, I'm completely new to Python and only have experience with MATLAB and C++. Can anyone recommend good resources or libraries to help me get started with this project?

Answers

buoy+drift3
I'm curious why you chose Python for this. Just a heads up, if performance is a concern, it could end up being quite slow without some optimization.
Reply to this answer
spice_rack_order
Have you considered just compiling your code in C++ and using Python bindings? That way you can leverage the performance of C++ while still having the ease of use from Python!
Reply to this answer
CITRUS PEEL
Are you planning to create your own solver or just use an existing one? If you're leaning toward the latter, definitely check out Scipy's integrate module; it's super helpful for that. But if you're looking to build your own for a class, be aware that basic Python can be a bit slow. You might want to explore using NumPy for better performance.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions