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

Respuestas (1)

Alan Weiss
Alan Weiss el 11 de En. de 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 comentarios

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.
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

Iniciar sesión para comentar.

Preguntada:

el 11 de En. de 2016

Comentada:

el 11 de En. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by