Solving 2 nonlinear elliptic pdes in 2 separate domains (2D), coupled by a function of solution u
Show older comments
I was trying to model voltage distribution in 2 parallel planar electrode by conductive media DC equations. The details of the system is described in the attached pdf file. After going through the pde toolbox user guide, I formulated the problem as following
*for domain 1. –div(sigma.grad(v1))=(OCV-v1-v2)R
for domain 2. 1. –div(sigma.grad(v1))=-(OCV-v1-v2)R*
where OCV and R are constants.
the boundary conditions are applied as described in the document
As the source q is function of solution v1 and v2, I used non linear solver. And used a coefficient function for q by calling a matlab function. But as it 2 different pde in 2 region I could not use the solution from 2 pde in one function. Tried different syntax by using domain variable, for example u(sd==1) for solution v1.
As the q coefficient functions are evaluated one by one for each equations, after solving 1 equation for 1 domain, all the variables are cleared. So I could not use the solution for coupled equations (value of v1 and v2). Tried to define a global variable in the function to store instantaneous solution, but that variable was also cleared. In this regard, can you please support me by suggesting proper method to achieve this simulation setup?
Thank you in advance. BR, Shovon
Accepted Answer
More Answers (0)
Categories
Find more on Heat Transfer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!