<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Ken and Richardson CFD;<br>
      <br>
      Mapping data from a 3-D mesh to a 2-D surface that transects the
      3-D mesh is very much of interest to me, particularly, with
      respect to STL 2-D surface definitions in 3-space. </tt><tt><tt>(My
        concern is with unstructured mesh simulations of solid objects.)<br>
        <br>
      </tt>For what it is worth, here is my experience using the
      Richardson CFD *.stl and *.vtk test files. <br>
      <br>
    </tt>Using ParaView (4.3.1):<br>
    <br>
    <b>CASE [1].</b><br>
    <br>
    (1) Load 'scalars.vtk' with all cell & point datum sets<br>
    <br>
    (2) Load 'sphere.stl' <br>
    <br>
    (3) Select 'scalars.vtk' and add the PV filter Resample With
    Dataset,<br>
    <br>
    (3.i) On the Change Input Dialog pop-up window, scalars.vtk is
    preselected as the input ("This property specifies the dataset from
    which to obtain probe values. The data attributes come from this
    dataset.")<br>
    <br>
    (3.ii) I then change the radio button to Source, and select
    sphere.stl as source ("This property supplies the dataset whose
    geometry will be used in determining positions to probe. The mesh
    comes from this dataset.")<br>
    <br>
    (4) Select the Resample With Dataset filters green Apply button,
    Everything appears to function properly. The outcome is the
    sphere.STL now has all on the point data from scalars.vtk to select
    for display, but on the sphere's surface points all the values are
    zero.<br>
    <br>
    <b>CASE [2]:</b> Substitute scalars.vtk with Clean to Grid filter
    output. Same results as Case [1]<br>
    <br>
    <b>CASE [3]:</b> Substitute sphere.stl with Delaunay 3D filter
    output. Same result as Case [1]<br>
    <br>
    <b>CASE [4]:</b> Case [2] and Case [3] combined. Same result as Case
    [1].<br>
    <br>
    Clearly I am in over my head regarding how to move a datum set from
    one mesh to another in ParaView. Maybe it can't be done? Has someone
    else been able to do this?<br>
    <br>
    Samuel W Key<br>
    FMA Development, LLC<br>
    1005 39th Ave NE<br>
    Great Falls, Montana 59404<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 2/5/2016 12:52 PM, Moreland, Kenneth
      wrote:<br>
    </div>
    <blockquote cite="mid:D2DA4996.2C85C%25kmorel@sandia.gov"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div>
        <div>
          <div>(Responding back to the group.)</div>
          <div><br>
          </div>
          <div>Well, that's strange. That should work.</div>
          <div><br>
          </div>
          <div>I notice that you originally said your scalars are in a
            structured grid, but the top of your data file says it is an
            unstructured grid. An unstructured grid can represent
            anything, so is there a possibility it does not represent
            the solid geometry you think it does? If you put a slice
            plane through it, does the slice and the fields on the slice
            look correct? Does it help if you run the "Clean to Grid"
            filter on the scalars?</div>
          <div><br>
          </div>
          <div>I'm really just guessing at potential problems here. It
            would help if you could send some example data that
            exemplifies the problem.</div>
          <div><br>
          </div>
          <div>-Ken</div>
          <div><br>
          </div>
        </div>
      </div>
      <div><br>
      </div>
      <span id="OLK_SRC_BODY_SECTION">
        <div style="font-family:Calibri; font-size:11pt;
          text-align:left; color:black; BORDER-BOTTOM: medium none;
          BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT:
          0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;
          BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
          <span style="font-weight:bold">From: </span>Richardson CFD
          <<a moz-do-not-send="true" href="mailto:garcfd@gmail.com">garcfd@gmail.com</a>><br>
          <span style="font-weight:bold">Date: </span>Friday, February
          5, 2016 at 11:29 AM<br>
          <span style="font-weight:bold">To: </span>Kenneth Moreland
          <<a moz-do-not-send="true" href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>><br>
          <span style="font-weight:bold">Subject: </span>Re: [EXTERNAL]
          [Paraview] mapping scalars onto surface geometry<br>
        </div>
        <div><br>
        </div>
        <div>
          <div>
            <div dir="ltr"><br>
              Thanks - yes the data-sets definitely overlap.  The STL
              surface (blue) is well within the scalar flow field
              (red).  The scalars (in the flow field) are just imported
              as a vtk file:<br>
              ASCII<br>
              DATASET UNSTRUCTURED_GRID<br>
              <br>
              <img moz-do-not-send="true" alt="Inline image 1"
                src="cid:ii_152b2adc8a4c120a" height="349" width="463"><br>
            </div>
            <div class="gmail_extra"><br>
              <div class="gmail_quote">On Fri, Feb 5, 2016 at 5:48 PM,
                Moreland, Kenneth <span dir="ltr">
                  <<a moz-do-not-send="true"
                    href="mailto:kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a>></span>
                wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div
style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
                    <div>
                      <div>
                        <div>That should work. Is it possible that the
                          physical space of the two geometries do not
                          overlap? Go to the information panel and look
                          at the Bounds for the scalar field and the
                          surface geometry. The bounds should overlap.
                          If they do not, then you can use the Transform
                          filter to move/scale one or both so that they
                          are arranged in the same space.</div>
                        <div><br>
                        </div>
                        <div>-Ken</div>
                        <div><br>
                        </div>
                      </div>
                    </div>
                    <div><br>
                    </div>
                    <span>
                      <div
                        style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium
                        none;BORDER-LEFT:medium
                        none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df
                        1pt solid;BORDER-RIGHT:medium
                        none;PADDING-TOP:3pt">
                        <span style="font-weight:bold">From: </span>ParaView
                        <<a moz-do-not-send="true"
                          href="mailto:paraview-bounces@paraview.org"
                          target="_blank">paraview-bounces@paraview.org</a>>
                        on behalf of Richardson CFD <<a
                          moz-do-not-send="true"
                          href="mailto:garcfd@gmail.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:garcfd@gmail.com">garcfd@gmail.com</a></a>><br>
                        <span style="font-weight:bold">Date: </span>Friday,
                        February 5, 2016 at 10:41 AM<br>
                        <span style="font-weight:bold">To: </span>"<a
                          moz-do-not-send="true"
                          href="mailto:paraview@paraview.org"
                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:paraview@paraview.org">paraview@paraview.org</a></a>"
                        <<a moz-do-not-send="true"
                          href="mailto:paraview@paraview.org"
                          target="_blank">paraview@paraview.org</a>><br>
                        <span style="font-weight:bold">Subject: </span>[EXTERNAL]
                        [Paraview] mapping scalars onto surface geometry<br>
                      </div>
                      <div>
                        <div class="h5">
                          <div><br>
                          </div>
                          <div>
                            <div>
                              <div dir="ltr">How do you map a scalar
                                field onto a surface geometry (STL file)
                                please?<br>
                                <div>
                                  <div>
                                    <div><br>
                                      I have a structured 3d array of
                                      values such as velocity, density,
                                      temperature etc...<br>
                                    </div>
                                  </div>
                                  and I want to map that onto a surface
                                  geometry, such as a motorbike for
                                  example.<br>
                                  <br>
                                </div>
                                <div>I have tried the "Resample with
                                  Dataset" method,  (input=scalar
                                  field,  source=surface geometry) but
                                  I'm just getting a null field (zeros)
                                  for whichever scalar I then select to
                                  display on the surface.<br>
                                </div>
                                <div><br>
                                </div>
                                Thanks UFO-CFD</div>
                              <div>
                                <table style="border-top:1px solid
                                  #aaabb6;margin-top:30px">
                                  <tbody>
                                    <tr>
                                      <td
                                        style="width:105px;padding-top:15px"><a
                                          moz-do-not-send="true"
                                          href="https://www.avast.com/sig-email"
                                          target="_blank"><img
                                            moz-do-not-send="true"
                                            src="https://ipmcdn.avast.com/images/logo-avast-v1.png"
style="width:90px;min-height:33px"></a></td>
                                      <td
style="width:470px;padding-top:20px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">This
                                        email has been sent from a
                                        virus-free computer protected by
                                        Avast. <br>
                                        <a moz-do-not-send="true"
                                          href="https://www.avast.com/sig-email"
                                          style="color:#4453ea"
                                          target="_blank">www.avast.com</a></td>
                                    </tr>
                                  </tbody>
                                </table>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </span></div>
                </blockquote>
              </div>
              <br>
            </div>
          </div>
        </div>
      </span>
      <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>