On Jan 15, 2014, at 2:55 PM, Eric Bruning <eric.brun...@gmail.com> wrote:
> I'm calculating the gradient of a CellVariable using faceGrad: > Efield = -phi.faceGrad > and would like to plot the value of the magnitude of the vector as a scalar > field. > > Is there a simple way to do this? I can get locations of each of the faces, > but they don't naturally reshape into something I can display as an image / > pcolormesh - or if they do I couldn't find how to do it in the docs or on a > mailing list. FaceVariables can be tricky to visualize (actually vectors are easier than scalars, generally) > An average of the values at each face for each cell of the underlying mesh > would be fine. That basically describes a plot of phi.grad.mag. Let us know if that doesn't do what you want. _______________________________________________ fipy mailing list fipy@nist.gov http://www.ctcms.nist.gov/fipy [ NIST internal ONLY: https://email.nist.gov/mailman/listinfo/fipy ]