On Tue, Dec 23, 2014 at 10:17 AM, Kyle Briton Lawlor
<[email protected]> wrote:
> Hi - I have a problem on a circular mesh, does phi.grad() return the gradient 
> in cartesian or polar coordinates?

Everything in FiPy is Cartesian.

> Is there a place to look at this function and how it is computed?

Take a look at,

   
https://github.com/usnistgov/fipy/blob/develop/fipy/variables/cellVariable.py#L257
   
https://github.com/usnistgov/fipy/blob/develop/fipy/variables/cellVariable.py#L270
   
https://github.com/usnistgov/fipy/blob/develop/fipy/variables/gaussCellGradVariable.py#L105
   
https://github.com/usnistgov/fipy/blob/develop/fipy/variables/faceGradContributionsVariable.py#L80

It's just the standard FV formulation. Hope that helps.

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

Reply via email to