<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Ken,
<div class=""><br class="">
</div>
<div class="">I am a little puzzled. For Steven’s VTI file, each cluster/grain has a unique ID, for example: 3732, 3240, 4955, etc. When Paraview visualize this file, how does it place one grain next to each other, or how does it determine one grain is adjacent
 to another? Is there any algorithm in paraview that defines adjacency? (I work in Research Computing center at UF and try to help Steven to run his program, so not really familiar with this work.)</div>
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class=""><br class="">
</div>
<div class="">Ying</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Mar 23, 2015, at 1:21 PM, Moreland, Kenneth <<a href="mailto:kmorel@sandia.gov" class="">kmorel@sandia.gov</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<div class="">
<div class="">That clarifies things, but I'm not sure how much I can help you.</div>
</div>
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<br class="">
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
First, you just asked how ParaView will interpret this file. ParaView will read this as an "image" that is a regular 2D grid of data. It will show the data pretty much the same as the image below. (The colors will be different, but the meaning will be the same.)</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<br class="">
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
If you want to look at a single grain at a time, you can do that fairly easily with what is available in ParaView. You can either use the Threshold filter to extract a grain with a particular ID. Better yet, you can use the Find Data feature to select all "cells"
 that belong to a particular grain. That will help you locate a grain in the image, where you can zoom in and manually peek at neighboring grains.</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<br class="">
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
Beyond that, you might need to design your own analysis algorithms. At this point, I'm not sure what you want to see. From an image processing point of view, your data is already classified since there is a unique identifier for each grain. You could write
 a custom operation to identify all neighbors of all grains, but I'm not sure what you do with it after that.</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<br class="">
</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
-Ken</div>
<div style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<br class="">
</div>
<span id="OLK_SRC_BODY_SECTION" style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<div style="font-family: Calibri; font-size: 11pt; text-align: left; border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0in 0in; border-top-color: rgb(181, 196, 223);" class="">
<span style="font-weight: bold;" class="">From:<span class="Apple-converted-space"> </span></span><Chiu>, Steven <<a href="mailto:s.chiu@ufl.edu" class="">s.chiu@ufl.edu</a>><br class="">
<span style="font-weight: bold;" class="">Date:<span class="Apple-converted-space"> </span></span>Monday, March 23, 2015 at 10:23 AM<br class="">
<span style="font-weight: bold;" class="">To:<span class="Apple-converted-space"> </span></span>"Zhang,Ying" <<a href="mailto:yingz@ufl.edu" class="">yingz@ufl.edu</a>>, Kenneth Moreland <<a href="mailto:kmorel@sandia.gov" class="">kmorel@sandia.gov</a>><br class="">
<span style="font-weight: bold;" class="">Cc:<span class="Apple-converted-space"> </span></span>"<a href="mailto:paraview@paraview.org" class="">paraview@paraview.org</a>" <<a href="mailto:paraview@paraview.org" class="">paraview@paraview.org</a>>, "Sahi,Catherine
 A" <<a href="mailto:csahi@ufl.edu" class="">csahi@ufl.edu</a>><br class="">
<span style="font-weight: bold;" class="">Subject:<span class="Apple-converted-space"> </span></span>[EXTERNAL] IMPORTANT-Particles+HPC<br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div dir="ltr" class="">
<div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class="">​Hello all,</span></div>
<div dir="ltr" style="color: rgb(33, 33, 33);" class="">
<div class="">
<div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class="">
<div dir="ltr" style="color: rgb(33, 33, 33);" class="">
<div class="">
<div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class="">
<br class="">
</div>
<div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class="">
Sorry for the delayed response. We were at the TMS conference the past week.</div>
<div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class="">
<br class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="color: rgb(33, 33, 33); font-family: 'Times New Roman'; font-size: 13.3333330154419px; background-color: rgb(255, 255, 255);" class=""><span style="background-color: rgb(255, 255, 255);" class=""><span style="background-color: rgb(255, 255, 255);" class="">>
 Steven, could you explain to Ken about your image and the information you are trying to find? </span></span></span><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="color: rgb(33, 33, 33); font-family: 'Times New Roman'; font-size: 13.3333330154419px; background-color: rgb(255, 0, 0);" class=""><span style="background-color: rgb(255, 0, 0);" class=""><br class="">
</span></span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Ken, we are in the Material Science and Engineering field.<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">These files come from Dream3d and SPPARKS simulations. <br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="background-color: rgb(255, 255, 255);" class=""><span style="background-color: rgb(255, 255, 255);" class=""><strong class="">What do you mean by a "grain"?  </strong></span></span><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" class=""><span style="background-color: rgb(255, 255, 255);" class=""><span style="background-color: rgb(255, 255, 255);" class=""><strong class="">Is
 that some roundish feature in the image?</strong></span></span></span><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span id="cid:bff29ec3-f8c7-4416-8c2b-ecb07ca5607c"><b&w.png></span><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">An individual grain is define as 1 of the objects seen in the picture of above showing a 2-D face of our microstructure.<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="background-color: rgb(255, 255, 255);" class=""><span style="background-color: rgb(255, 255, 255);" class=""><strong class="">What does it mean for two grains to be neighbors?  </strong></span><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" class=""><span style="background-color: rgb(255, 255, 255);" class=""><span style="background-color: rgb(255, 255, 255);" class=""><strong class="">Does
 it mean they </strong></span></span></span><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; background-color: rgb(255, 255, 255);" class=""><span style="background-color: rgb(255, 255, 255);" class=""><span style="background-color: rgb(255, 255, 255);" class=""><strong class="">are
 touching? </strong></span></span></span></span><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">-neighboring grains are grains that are adjacent to each other in the picture above.<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">From the vti file stand point: <br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">1 grain is comprised of 1 set of unique contiguous spins as see below. <span id="cid:dd03b91e-c8c0-4939-bc25-6ea90dccd471"><Screen Shot 2015-03-16 at 1.12.43 PM.png></span><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Link to dump.#.vti file in google drive:<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><a href="https://drive.google.com/folderview?id=0B-JhfuaY4N27fndFQXpYOEtHN0NzTWoyN2Q4cUtvY1BFV21lWHZoSFV3bnlwMUVzc2l6VHM&usp=sharing" id="LPlnk884022" class="">https://drive.google.com/folderview?id=0B-JhfuaY4N27fndFQXpYOEtHN0NzTWoyN2Q4cUtvY1BFV21lWHZoSFV3bnlwMUVzc2l6VHM&usp=sharing</a><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<p style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="background-color: rgb(255, 255, 255);" class=""></span></p>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br style="background-color: rgb(255, 255, 255);" class="">
<span style="background-color: rgb(255, 255, 255);" class=""></span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="background-color: rgb(255, 255, 255);" class=""><span style="background-color: rgb(255, 255, 255);" class=""><strong class="">That they are within some certain distance of each other?</strong></span></span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">I'm not sure what you mean. When we make the structures in dream3d, there is an option for spacing.<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span id="cid:97ae960d-11c3-4ff5-8531-0362b0d1c0ae"><Screen Shot 2015-03-23 at 12.10.43 PM.png></span><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="background-color: rgb(255, 0, 0);" class=""></span><span style="background-color: rgb(255, 255, 255);" class=""></span><br style="background-color: rgb(255, 0, 0);" class="">
<span style="background-color: rgb(255, 255, 255);" class=""><span style="background-color: rgb(255, 255, 255);" class=""><strong class="">That they are not being obscured by some other grain?</strong></span></span><br class="">
This will be on a 2-D scale so it will be like the image as seen previously. However, our microstructures are 3-D and we manually take a slice through it using paraview. <br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Additionally,<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" class="">How would paraview interpret /read this vti?</span><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Contact me if you need anything.<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Best, </div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Steven.<br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="color: rgb(33, 33, 33);" class="">
<div class="">
<hr tabindex="-1" style="display: inline-block; width: 771.25px;" class="">
<div id="x_divRplyFwdMsg" dir="ltr" class=""><font face="Calibri,sans-serif" style="font-size: 11pt;" class=""><b class="">From:</b><span class="Apple-converted-space"> </span>Zhang,Ying<br class="">
<b class="">Sent:</b><span class="Apple-converted-space"> </span>Monday, March 16, 2015 12:08 PM<br class="">
<b class="">To:</b><span class="Apple-converted-space"> </span>Moreland, Kenneth<br class="">
<b class="">Cc:</b><span class="Apple-converted-space"> </span><a href="mailto:paraview@paraview.org" class="">paraview@paraview.org</a>; Chiu,Steven<br class="">
<b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [Paraview] Algorithm to find grain neighbors</font>
<div class=""> </div>
</div>
</div>
<font face="Times New Roman" size="3" class=""><span style="font-size: 12pt;" class=""><a name="BM_BEGIN" class=""></a>
<div class=""><font size="2" class=""><span style="font-size: 10pt;" class="">Sorry that I forgot to Cc Steven.<span class="Apple-converted-space"> </span><br class="">
<br class="">
<br class="">
> On Mar 16, 2015, at 11:18 AM, Zhang,Ying <<a href="mailto:yingz@UFL.EDU" class="">yingz@UFL.EDU</a>> wrote:<br class="">
><span class="Apple-converted-space"> </span><br class="">
> Hi Ken,<br class="">
><span class="Apple-converted-space"> </span><br class="">
> I work in Research Computing at University of Florida and have a user (Cc'ed) who is using Paraview to visualize his grain image on our computing systems.<span class="Apple-converted-space"> </span><br class="">
><span class="Apple-converted-space"> </span><br class="">
> Steven, could you explain to Ken about your image and the information you are trying to find?<span class="Apple-converted-space"> </span><br class="">
><span class="Apple-converted-space"> </span><br class="">
> Thanks,<br class="">
><span class="Apple-converted-space"> </span><br class="">
> Ying<br class="">
><span class="Apple-converted-space"> </span><br class="">
>> On Mar 16, 2015, at 11:05 AM, Moreland, Kenneth <<a href="mailto:kmorel@sandia.gov" class="">kmorel@sandia.gov</a>> wrote:<br class="">
>><span class="Apple-converted-space"> </span><br class="">
>> I don't really understand the question, but the answer is probably no.<br class="">
>><span class="Apple-converted-space"> </span><br class="">
>><span class="Apple-converted-space"> </span><br class="">
>> What do you mean by a "grain"? Is that some roundish feature in the image?<br class="">
>> And what does it mean for two grains to be neighbors? Does it mean they<br class="">
>> are touching? That they are within some certain distance of each other?<br class="">
>> That they are not being obscured by some other grain?<br class="">
>><span class="Apple-converted-space"> </span><br class="">
>> Assuming I've guessed closed in any of these aspects, I don't think<br class="">
>> ParaView comes with any filters that perform that action.<br class="">
>><span class="Apple-converted-space"> </span><br class="">
>> -Ken<br class="">
>><span class="Apple-converted-space"> </span><br class="">
>> On 3/13/15, 3:21 PM, "Zhang,Ying" <<a href="mailto:yingz@ufl.edu" class="">yingz@ufl.edu</a>> wrote:<br class="">
>><span class="Apple-converted-space"> </span><br class="">
>>> Dear Paraview developers,<br class="">
>>><span class="Apple-converted-space"> </span><br class="">
>>> I sent a question a while ago and probably didn¹t get to the list. But<br class="">
>>> here is my question again:<br class="">
>>><span class="Apple-converted-space"> </span><br class="">
>>> I have a grain image in vti format and use Paraview to visualize the<br class="">
>>> grains. In Paraview I use Representation/Surface along with xml template<br class="">
>>> for coloring to display the grain image based on the vti file. I would<br class="">
>>> like to know if there is a way to find out the number of neighbors each<br class="">
>>> grain has. I wonder if paraview has a such tool to give this information.<br class="">
>>><span class="Apple-converted-space"> </span><br class="">
>>> Thank you!<br class="">
>>><span class="Apple-converted-space"> </span><br class="">
>>> Ying Zhang<br class="">
>>><span class="Apple-converted-space"> </span><br class="">
>>><span class="Apple-converted-space"> </span><br class="">
>>> _______________________________________________<br class="">
>>> Powered by<span class="Apple-converted-space"> </span><a href="http://www.kitware.com/" class="">www.kitware.com</a><br class="">
>>><span class="Apple-converted-space"> </span><br class="">
>>> Visit other Kitware open-source projects at<br class="">
>>><span class="Apple-converted-space"> </span><a href="http://www.kitware.com/opensource/opensource.html" class="">http://www.kitware.com/opensource/opensource.html</a><br class="">
>>><span class="Apple-converted-space"> </span><br class="">
>>> Please keep messages on-topic and check the ParaView Wiki at:<br class="">
>>><span class="Apple-converted-space"> </span><a href="http://paraview.org/Wiki/ParaView" class="">http://paraview.org/Wiki/ParaView</a><br class="">
>>><span class="Apple-converted-space"> </span><br class="">
>>> Search the list archives at:<span class="Apple-converted-space"> </span><a href="http://markmail.org/search/?q=ParaView" class="">http://markmail.org/search/?q=ParaView</a><br class="">
>>><span class="Apple-converted-space"> </span><br class="">
>>> Follow this link to subscribe/unsubscribe:<br class="">
>>><span class="Apple-converted-space"> </span><a href="http://public.kitware.com/mailman/listinfo/paraview" class="">http://public.kitware.com/mailman/listinfo/paraview</a><br class="">
>><span class="Apple-converted-space"> </span><br class="">
><span class="Apple-converted-space"> </span><br class="">
<br class="">
</span></font></div>
</span></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</span><span style="font-family: Calibri, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""></span><span id="cid:bff29ec3-f8c7-4416-8c2b-ecb07ca5607c"><b&w.png></span><span id="cid:dd03b91e-c8c0-4939-bc25-6ea90dccd471"><Screen
 Shot 2015-03-16 at 1.12.43 PM.png></span><span id="cid:97ae960d-11c3-4ff5-8531-0362b0d1c0ae"><Screen Shot 2015-03-23 at 12.10.43 PM.png></span></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>