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

1 view (last 30 days)
My c-coefficient is a function of u.

Answers (1)

Alan Weiss
Alan Weiss on 11 Jan 2016
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 Comments
troxylon
troxylon on 11 Jan 2016
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 on 11 Jan 2016
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

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!