Re: Casting non-linear source terms in FiPy

2016-07-13 Thread Guyer, Jonathan E. Dr. (Fed)
The way you've written it is correct. There's no way to make such a term implicit, so just write it as it appears. > On Jul 13, 2016, at 12:26 PM, Gopalakrishnan, Krishnakumar > wrote: > > > Hello, > > I have an equation of the form: > > nabla.(D grad (phi)) = exp(a*phi – K) - exp(-(b*phi

Casting non-linear source terms in FiPy

2016-07-13 Thread Gopalakrishnan, Krishnakumar
Hello, I have an equation of the form: nabla.(D grad (phi)) = exp(a*phi - K) - exp(-(b*phi - K)) The diffusion coefficient is simply 'D'. But how do I cast the non-linear source term? i.e. what is the syntax to use in the code? In the examples, I did not notice any non-linear source term. '