On Mar 29, 2006, at 11:52 AM, nelson - wrote:

i have to solve an equation like non linear heat equation u_t + (D u_x)_x = 0 where D depends on u. how can i solve it in fipy? In the examples there are only cases in which D=costant or D = f(x)....

So you make D depend on u and solve your diffusion equation as usual. Since this keeps coming up, we obviously need an example, but it honestly didn't occur to us because it just works.

Depending on the degree of nonlinearity, you may need need to "sweep" the solution. This has been discussed on the list a few times:

<http://search.gmane.org/?query=sweep&group=gmane.comp.python.fipy>

--
Jonathan E. Guyer, PhD
Metallurgy Division
National Institute of Standards and Technology
<http://www.metallurgy.nist.gov/>



Reply via email to