Hello,

Have a look at VectorTools::point_gradients (
https://www.dealii.org/developer/doxygen/deal.II/namespaceVectorTools.html#aada37fd09d8be1b9ed9bb12d698f8ee4
).

Best,
Daniel

Am Di., 14. Dez. 2021 um 10:16 Uhr schrieb 沈键 <[email protected]>:

> Hello,
>   I want to compute streamlines in deal.II after solving a velocity
> potential equation, so I need to get velocity (gradient of solution) on the
> point to take the streamline a step forward. Unfortunately, each streamline
> consists around 2000 points which means it should call
> `VectorTools::point_gradient` 2000 times. It takes too much time. I search
> the document but find VectorTools::point_gradient only support searching
> the point belong to which cell globally.  I think it can be optimized,
> because if I have got previous point, next point should locate in the same
> cell or neighbor cells. My question is:
>   Is any ready-made function of `point_gradient` in deal.II supporting
> searching the specified point's owner cell only around given cells not
> globally?
>   Thanks for your reply in advance.
>
> --
> The deal.II project is located at http://www.dealii.org/
> For mailing list/forum options, see
> https://groups.google.com/d/forum/dealii?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "deal.II User Group" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/d2dca380-e475-400a-9c30-345f824550aan%40googlegroups.com
> <https://groups.google.com/d/msgid/dealii/d2dca380-e475-400a-9c30-345f824550aan%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CAOYDWbKpV3WHUFrwVVz4p96j1DPqEKouTiAZMtdNV0e8zDj%2BtQ%40mail.gmail.com.

Reply via email to