Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

Some problems about Comsol with Matlab when realizing my algorithm

Please login with a confirmed email address before reporting spam

Hi all, I want to use Comsol when realizing my algorithm.
So,first I want to test a simple nolinear PDE:
div ( u grad( u )) = 1 in \Omega
u = 0 on \partial \Omega
And, my algorithm is the linearization of this PDE
div( u^k grad(u^{k+1}) ) = 1
u^{k+1} = 0
My question is how to set up heat conduction parameters which is piecewise linearity or them form like FEM solution. I can only use this code
model.physics('poeq').feature('peq1').set('c', 1, {'u' '0' '0' 'u'});
but, how can I define u_k and let u_k = u after each loop.

I konw Comsol can solve the nonliner PDE with Newton Method easily, but some PDE may have some new method to solve them .

Thanks all.

0 Replies Last Post 20 ago 2014, 03:00 GMT-4
COMSOL Moderator

Hello Huashan Sheng

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.