Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

URGENT: How to mix solutions from previous iterations

Please login with a confirmed email address before reporting spam

I am setting up a problem of two coupled PDEs (Schrodinger Poisson) in the following way:
First I solve one for u assuming u2=0.
Then I solve for u2 using the solution for u.
Then I mix the new solution for u2 with the one from the previous iteration (in the first step it was assumed u2=0.)
And the approach is repeated until convergence is reached.
How is the above most easily set up in COMSOL? I have set up a study with two steps. On for each of the differential equations. Then I make a for-loop statement in the solver and specify an appropriate number of iterations. The problem is how to call the solution for u2 from the current and previous iteration. I have looked at the ''Variables solved for/ not solved for'' tabs as on the attached picture. What should I put in these? And how do I tell the solver to use a zero solution for the very first iteration and then mix with the previous in the next?


0 Replies Last Post 20 giu 2016, 10:43 GMT-4
COMSOL Moderator

Hello August Mikkelsen

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.