There may be a better way, but I would try

  f.dot(u.grad).cellVolumeAverage * mesh.numberOfCells

assuming f is a rank-1 CellVariable


On Jan 12, 2015, at 6:26 AM, Ferenc Tasnadi <[email protected]> wrote:

> Hello dear fipy users,
> 
> I need your help or advice to implement an “integro-differential” equation. 
> That is I have the following term in my equation to solve for u(\vec{r})
> 
> \int_V d^3r f(\vec{r}) \partial{u(\vec{r})}/\partial{x}
> 
> Actually, I do not know how to implement this integral. Thank you for your 
> help.
> 
> Bests,
> /Ferenc
> 
> 
> _______________________________________________
> 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