Please see: examples/phase/binary.py examples/phase/polyxtalCoupled.py examples/phase/quaternary.py examples/reactiveWetting/liquidVapor2D.py
for some examples of spatially varying convection velocity fields. On Oct 6, 2015, at 6:54 PM, Kevin Lin <[email protected]> wrote: > Hi all, > > I am trying to use fipy to solve a 2D convection-diffusion problem for a > oxygen gas transport in a stirred-tank reactor. > > I have a 2D- velocity field that varies in space for the liquid, but I am > having trouble to input this convcoeff into the convectionTerm function. > It seems to only accept a constant vector, say [10,10]. > > I have made a simple 2D mesh for this convection-diffusion problem with > constant convection coefficient by looking at the 2-D diffusion examples > from fipy. I hope someone can help me resolve this issue. > > Thank you > > Best Regards > Kevin Lin > > _______________________________________________ > fipy mailing list > [email protected] > http://www.ctcms.nist.gov/fipy > [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ] _______________________________________________ fipy mailing list [email protected] http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]
