<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Dennis,<br>
    <br>
    Assuming for the moment that each quad 4-tuple is a finite element
    that contains one or more tire reinforcement items, and that each
    quad 4-tuple is "sandwiched" in between two hex 8-node finite
    elements, then the quad's 4-tuple is also a surface facet of two
    different 8-node hexahedrons. Both hexhedrons are the 'closest'
    hexhedrons to the quad. Given the usual organization of 'element
    blocks' in the Exodus-II datum structures, the two closest
    hexahedrons will be located on the surface of their respective
    element blocks. <br>
    <br>
    Using material ID's which are also element block ID's, have the
    software generate surface side-sets for each of these two element
    blocks specified with these two material ID's. With luck, each
    member in the side-set will be specified as a 2-tuple, (Elem# in the
    block, Quad-Face# in the hexah) <br>
    <br>
    With his info, you can confine your search to finding the side-set
    item that has a 4-tuple that matches your quad's 4-tuple. The search
    is reduced to a relatively small collection of hexahedral surface
    4-tuple faces.  <br>
    <br>
    Hope this helps.<br>
    <br>
    Samuel W Key<br>
    FMA Development, LLC<br>
    1005 39th Ave NE<br>
    Great Falls, Montana 59404<br>
    USA<br>
    <br>
    <div class="moz-cite-prefix">On 8/20/2015 1:51 PM, Dennis Conklin
      wrote:<br>
    </div>
    <blockquote
cite="mid:SN1PR0701MB2029F412EDF0D5C2A531DE769F660@SN1PR0701MB2029.namprd07.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">All,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I have an Exodus, multi-block model.  Most
          of the blocks are hex elements, and some are layers of quads
          (tires are composite structures).  I would like to establish
          local strains which are oriented in the direction of the
          nearest quad layer.  To do this I need to identify, for each
          hex in the model, which quad element in the model is closest
          to the hex.    Then I can extract directions from the quad
          element and rotate the strain tensor in the hex to these local
          coordinates.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">My question is,  is there some clever and
          efficient way to quickly determine the nearest quad for each
          hex in the model.  Keep in mind that there are multiple blocks
          of quads, but if there is some way to address the quad blocks
          one at a time, I could make this work.    <o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">The brute force way is:<o:p></o:p></p>
        <p class="MsoNormal">Loop over every hex in the model:<o:p></o:p></p>
        <p class="MsoNormal">      Loop over every quad in the model:<o:p></o:p></p>
        <p class="MsoNormal">             Calculate the distance between
          hex and quad<o:p></o:p></p>
        <p class="MsoNormal">             Smallest distance wins!<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">That is a pretty brutally inefficient calc
          (several million hex elements) that I am trying to avoid – any
          ideas about how best to approach this.   I’m hoping for some
          elegant way to use connectivity or something of that sort.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Thanks for looking<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Dennis<o:p></o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the ParaView Wiki at: <a class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>

Search the list archives at: <a class="moz-txt-link-freetext" href="http://markmail.org/search/?q=ParaView">http://markmail.org/search/?q=ParaView</a>

Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>