Hi,<br><br>Actually I wanted to calculate the gradient on unstructured grid data in the way the <br>VTK people do... For calculating the gradient at a vertex, they calculate the gradients <br>in all the elements which the vertex belongs to and then take an average...<br>
Hence, I needed the functionality.<br><br>I am not able to come up with an alternative method. <br><br clear="all">Cheers and Regards<br>Jayesh Vinay Badwaik<br>Electronics and Communication Engineering<br>VNIT, Nagpur<br>
INDIA<br><br>-----------------------------------------------------------------------------------------------------------------------------------------------<br>"We are servants rather than masters in mathematics" -- Charles Hermite<br>
<br>
<br><br><div class="gmail_quote">On Sat, Aug 6, 2011 at 5:10 PM, Jö Fahlke <span dir="ltr"><<a href="mailto:jorrit@jorrit.de">jorrit@jorrit.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">> Is there any method to get a list of set of elements does a particular<br>
> vertex (entity of codim dim)<br>
> belong to?<br>
<br>
</div>Not directly. If you really need it, you'll have to iterate through the whole<br>
grid and look whether the vertex you are looking for is a codim=dim subentity<br>
of the current element. This is of course expensive.<br>
<br>
Particular grid managers may provide this functionality directly, but I don't<br>
know of any and tis is of course outside the scope of the Dune interface.<br>
<br>
Most finite element algorithms can be reorganized to not require something<br>
like this, however.<br>
<br>
Bye,<br>
Jö.<br>
<font color="#888888"><br>
--<br>
"Ich habe eine Maschine erfunden, die den Kommerz aus Weihnachten<br>
entfernt." -- "Lass uns ganz viele davon bauen und für viel Geld<br>
verkaufen."<br>
-- <a href="http://www.nichtlustig.de/toondb/021220.html" target="_blank">http://www.nichtlustig.de/toondb/021220.html</a><br>
</font><br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iQIVAwUBTj0oF+mx9CKgc0OWAQhXXxAAhEnikfruAiaR/lA3fEP5/UwXRjdPq9nR<br>
f4MtQxi2Wa9Zl2hPIKME6ztYvbzrovuVDGMclHrCxb5VEIk8tlgp79VkY7A/5gMt<br>
inbRcZxrmBu65Go5Dc2iR7VU/Q2/DP+Q0bWssvRwScQITOd3WFCKKrTLJdSTpBg9<br>
KvXX5abSQ9grMHSzxwimT64lqE+fSGKFFbH6FsxNXiDxi/a/6ATdR2wQsFp0GQna<br>
5TSIQ71gDxAU3kEkUo8Xs5+t7lJ1YzU0LIsdsaGfqY+feohJ+1UplFmZ0mwyD4N4<br>
/+TZDnCPbMGYQM9lKAC159+WbT2JzNrhsN5cRRmRaQdNYODR6kGGHz3D5MseC6+p<br>
K7vdFbY+vPQ/4dP/2RrQQkQ04LG7c3eEERq/rLkiPOanSIvqtUnRC8uEMoGg/hxt<br>
zTEBtnc4CDzgb1noAophTWfOvU5scmMns4MlI5E3TQNz5YzImJ4nuk1seN5LEAz0<br>
76NCBK5DN5VK78zvXl5mxlONharykdkIs1Vdy67laPcIPr4uxjwpQI/6hYTrBDoq<br>
OU5qnBRkQ0EyCT1dEMUKLjeBggVHqYN6EnZQ8uiVoSEhPpp2KbK03kjVF/CMl8dH<br>
liOIL5iGfuz8MYkdCcuxUwjhfSEwpYiLH3s6u/921CQ+p0iTa3dwFSrdYLdoc0MR<br>
XIyb+jj5up4=<br>
=kMSI<br>
-----END PGP SIGNATURE-----<br>
<br></blockquote></div><br>