I want to solve the following set of 3 coupled pdes in python using fipy
∇2n − (∇2ψ)n − (∇ψ).∇n = n/10,
∇2p + (∇2ψ)p + (∇ψ).∇p = p/10,
∇2ψ = −(p − n)
The variables are p
,n
and ψ
. As can be seen from the first and second equation, the first term can be set as the diffusion term in the pde solver in fipy. If the other terms of the first and second equation are to be incorporated in the fipy pde solver, I suppose that they should be incorporated in the Implicit Source Term in fipy. But considering the presence of vector identities in these terms, I am facing some difficulty in incorporating these equations in the fipy pde solver. Any help regarding this would be appreciated.