Assume that you have a system of coupled PDEs, such as
1st PDE in F(a,b)
2nd PDE in F(a,b)
Following code is able to solve each one of the PDEs separately:
import numpy as np
import sympy as sp
# definition of variables
a, b = sp.symbols('a b')
f = sp.Function('f')
F = f(a, b)
Fda = F.diff(a)
Fdb = F.diff(b)
# definition of PDEs
eq1 = Fda - 2
eq2 = Fda + Fdb + 2
# solution of separated PDEs
sp.pprint(sp.pdsolve(eq1))
sp.pprint(sp.pdsolve(eq2))
Is it possible to solve the system of PDEs? The syntax would be something like sp.pprint(sp.pdsolve([eq1, eq2]))
. I have tried [eq1, eq2]
, {eq1, eq2}
, np.array([eq1, eq2])
etc. I had a look at help(sp.pdsolve)
and help(sp.pde)
, but have not yet found a solution.