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 
> <krishnaku...@imperial.ac.uk> wrote:
> 
> <image001.gif>
> 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.
>  
> ‘a’ and ‘b’ are just scalar coefficients of the CellVariable ‘phi’ in the 
> source term. ‘K’ is a CellVariable of another PDE, which couples this PDE.
>  
>  
> Is it enough to simply write the source term as,
>  
> ImplicitSourceTerm(coeff =  numerix.exp(a*phi – K) – numerix.exp(-(b*phi – K))
>  
>  
> Best Regards
>  
> Krishna 
> _______________________________________________
> fipy mailing list
> fipy@nist.gov
> http://www.ctcms.nist.gov/fipy
>  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]


_______________________________________________
fipy mailing list
fipy@nist.gov
http://www.ctcms.nist.gov/fipy
  [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]

Reply via email to