On Apr 4, 2012, at 6:05 AM, Daniel Farrell wrote: > dndt = TransientTerm() == diffusion_n + source_n > dpdt = TransientTerm() == diffusion_p + source_p > equation = dndt & dpdt > ... > > with generate this error, >> >> fipy.terms.ExplicitVariableError: Terms with explicit Variables cannot mix >> with Terms with implicit Variables. >> > > Is it possible to solve this coupled system using the transient approach?
Yes, but you need to tell every term what variable it operates on. FiPy has no way to guess when there are couplings. dndt = TransientTerm(var=n) == diffusion_n + source_n dpdt = TransientTerm(var=p) == diffusion_p + source_p equation = dndt & dpdt _______________________________________________ fipy mailing list [email protected] http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
