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 ]

Reply via email to