<div dir="ltr"><div><div><div>Dear Timo,<br><br><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-">Thank you for the answer!<br><br></span></span></div><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-">I work in the area of computational human physiology and biophysics. I am interested in physiological and biophysical processes, which are happened in networks.<br></span></span><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-"><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-">I has learned about the Dune recently. <br></span></span></span></span></div><div><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-"><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-">I was impressed by the functionality. Network grids with supporting of different operation, like growth and mesh adaptation, are very important for me.<br><br></span></span></span></span></div><span id="gmail-m_-3756288295486152163gmail-result_box" class="gmail-m_-3756288295486152163gmail-short_text" lang="en"><span class="gmail-m_-3756288295486152163gmail-"><span id="gmail-m_-3756288295486152163gmail-result_box" class="gmail-m_-3756288295486152163gmail-short_text" lang="en"><span class="gmail-m_-3756288295486152163gmail-">Best regards,<br></span></span></span></span><span id="gmail-m_-3756288295486152163gmail-result_box" class="gmail-m_-3756288295486152163gmail-short_text" lang="en"><span class="gmail-m_-3756288295486152163gmail-"><span id="gmail-m_-3756288295486152163gmail-result_box" class="gmail-m_-3756288295486152163gmail-short_text" lang="en"><span class="gmail-m_-3756288295486152163gmail-">Ilya</span></span></span></span><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-"><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-"></span></span></span></span><br><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-"><span id="gmail-result_box" class="gmail-short_text" lang="en"><span class="gmail-"></span></span></span></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-12-19 1:44 GMT+03:00 Timo Koch <span dir="ltr"><<a href="mailto:timo.koch@iws.uni-stuttgart.de" target="_blank">timo.koch@iws.uni-stuttgart.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Ilya,<br>
<br>
for any 1d grid in any world dimension you will get the local vertex index (in local numbering of the inside element (entity of codimension 0)) by intersection.indexInInside() member function.<br>
You can then use a mapper like Dune::<wbr>MultipleCodimMultipleGeomTypeM<wbr>apper (with a VertexLayout) to get the vertex index on the gridview using the subIndex() member function.<br>
In total the call could look something like this<br>
<br>
auto vertexIndex = vertexMapper.subIndex(element, intersection.indexInInside(), /*codimension=*/ 1);<br>
<br>
I’m happy you are using Dune::FoamGrid and hope you find it useful. Do you mind sharing for what application / in which field you are using it?<br>
<br>
Best wishes<br>
Timo<br>
<div><div class="h5"><br>
<br>
<br>
> On 18. Dec 2017, at 23:13, Ponomarev, Ilya <<a href="mailto:ilya.ponomarev@phystech.edu">ilya.ponomarev@phystech.edu</a>> wrote:<br>
><br>
> Good evening.<br>
><br>
> I have FoamGrid mesh 1d in 3d world and data, that stored in massive.<br>
> This data are associated with vertex (first massive) and cells (second massive).<br>
> When I iterate over cells and work with intersections in FV method, how can I get the index of vertex, which coincides with intersection?<br>
><br>
> Best regards,<br>
> Ilya Ponomarev.<br>
</div></div>> ______________________________<wbr>_________________<br>
> Dune mailing list<br>
> <a href="mailto:Dune@lists.dune-project.org">Dune@lists.dune-project.org</a><br>
> <a href="http://lists.dune-project.org/mailman/listinfo/dune" rel="noreferrer" target="_blank">http://lists.dune-project.org/<wbr>mailman/listinfo/dune</a><br>
<br>
</blockquote></div><br></div>