Hi again, Fipy.

Suppose that with a solution variable phi (that is a cellVariable), I construct 
a vector field so that there is a vector associated to each point on the cell 
centers of the mesh, is there a way I could compute the gradient of that vector 
field with FiPy?

Thanks,
Kyle

On Dec 23, 2014, at 10:49 AM, Kyle Briton Lawlor <[email protected]> wrote:

> Thanks, it does. 
> 
> K.
> On Dec 23, 2014, at 10:36 AM, Daniel Wheeler <[email protected]> 
> wrote:
> 
>> 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 ]
> 


_______________________________________________
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