How to define c-coefficient as a u function in nonlinear pde?

回答 (1 件)

Alan Weiss
Alan Weiss 2016 年 1 月 11 日

0 投票

Did you consult the documentation?
In particular, scalar coefficients in string form has one way, 2-D scalar coefficients in function form has another way, 3-D coefficients in function form has a different way, and c coefficient for systems has all the details on the c coefficient.
If you have an elliptic PDE, be sure to use pdenonlin instead of assempde for the solution. Or, for the PDE app, select Solve > Parameters > Use nonlinear solver
Alan Weiss
MATLAB mathematical toolbox documentation

2 件のコメント

troxylon
troxylon 2016 年 1 月 11 日
Hi Alan,
Yes I already read the documentation. My pde is parabolic. I am doing the 2D geometry, and the 2-D scalar coefficients in function form in the documentation didnt help me to solve the problem.
when i wrote c= cfunction(p,t,u,tlist);
i got error but when i changed it c equals to a constant then it worked.
Alan Weiss
Alan Weiss 2016 年 1 月 11 日
Please let us know:
  • Your MATLAB version (such as R2013b)
  • Your exact function call (such as u = parabolic(...))
  • Any special setup you do (such as running in the PDE app)
Alan Weiss
MATLAB mathematical toolbox documentation

サインインしてコメントする。

質問済み:

2016 年 1 月 11 日

コメント済み:

2016 年 1 月 11 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by