<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">That's good to know, however, you
      should follow my instructions for now since you have to apply the
      patch I sent. <br>
      <br>
      On 03/29/2013 09:49 AM, Andy Bauer wrote:<br>
    </div>
    <blockquote
cite="mid:CAMaOp+F4qxSsXcZXN=ZmucM=6u-GvuVJ0A_suxeC5WT+oS0oOg@mail.gmail.com"
      type="cite">Hi,<br>
      <br>
      FYI: We now generate installers for ParaView nightly for git HEAD.
      They're available at <a moz-do-not-send="true"
        href="http://www.paraview.org/paraview/resources/software.php">http://www.paraview.org/paraview/resources/software.php</a>
      and by choosing Nightly for Version of ParaView.<br>
      <br>
      Andy<br>
      <br>
      <div class="gmail_quote">On Fri, Mar 29, 2013 at 12:43 PM, Burlen
        Loring <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:bloring@lbl.gov" target="_blank">bloring@lbl.gov</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div text="#000000" bgcolor="#FFFFFF">
            <div>Hi afad sfgsfdgsfd,<br>
              <br>
              Fixes for bugs introduced by changes in VTK's xml file
              format are in the pipeline, so you'll have to checkout the
              latest git HEAD and build ParaView from source to get the
              bug fixes. If that's something you're willing to do, here
              are first steps<br>
              <br>
              # get sources<br>
              $ git clone --recursive git://<a moz-do-not-send="true"
                href="http://www.paraview.org/ParaView.git"
                target="_blank">www.paraview.org/ParaView.git</a><br>
              # apply the patch<br>
              # patch is attached and I just now submitted to PV, will
              show up in PV after the next review.<br>
              $ cd ParaView<br>
              $ git am -3
              0001-QuadraturePoints-any-integer-type-for-offsets.patch<br>
              # build pv<br>
              <br>
              That will get you the bug fixes. Build it, use default
              build opts is fine. <br>
              <br>
              Then if you like you can get the test data, and open the
              file ParaViewData/Data/blow.vtk, construct the pipeline
              showed in the post (<a moz-do-not-send="true"
href="http://markmail.org/message/6qz3ebszvny4vwxp#query:+page:1+mid:6qz3ebszvny4vwxp+state:results"
                target="_blank">http://markmail.org/message/6qz3ebszvny4vwxp#query:+page:1+mid:6qz3ebszvny4vwxp+state:results</a>).

              That shows how it's supposed to work.<br>
              <br>
              $ git clone <a moz-do-not-send="true"
                href="http://www.paraview.org/ParaViewData.git"
                target="_blank">www.paraview.org/ParaViewData.git</a><br>
              <br>
              Now onto your data, the xml you gave is incorrect , it's
              missing the offset array. let me see if I can get your
              example working, I'll post a follow up, hopefully in a few
              minutes.<br>
              <br>
              Burlen<br>
              <br>
              <br>
              On 03/28/2013 12:43 AM, afad sfgsfdgsfd wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr"> I am trying to understand quadrature in
                paraview. &nbsp;I am running finite element simulations in
                which I have displacements at the nodes of the element,
                and stress/strain at the quadrature points. &nbsp;I have
                linear and quadratic hexahedral or tetrahedral elements.
                &nbsp;I have been spending days trying to figure out how to
                implement data on the quadrature points. &nbsp;I have
                downloaded just about every document I can find.
                <div><br>
                </div>
                <div>First: &nbsp;I downloaded CylinderQuadratic.vtk as shown
                  in VTK-Quadrature-Point-Design-Doc. &nbsp;I was able to
                  generate the quadrature scheme dictioanary and
                  generate quadrature points. &nbsp;But, when I tried to use
                  the Interpolate to Quadrature Points filter I could
                  not select QuadratureOffset in the Select Source Array
                  drop down menu. &nbsp;I was able to do this when using the
                  Generate Quadrature Points filter. &nbsp;</div>
                <div><br>
                </div>
                <div>Second: &nbsp;Considering I couldn't figure out how to
                  interpolate quadrature points using
                  CylinderQuadratic.vtk, I decided to investigate just
                  using a single element. &nbsp;I took quadraticTetra01.vtu
                  and modified it to only have on quadratic tetrahedron.
                  &nbsp;Then I used paraview to generate the quadrature
                  scheme dictionary. &nbsp;I saved this into a VTU file in
                  order to see how to implement the dictionary on my
                  own. &nbsp;When I tried to reopen this new VTU file,
                  paraview was unable to open the file. &nbsp;Specifically,
                  it choked on the QuadratureOffset data array.</div>
                <div>This is the file that paraview cannot open</div>
                <div><br>
                </div>
                <div>
                  <div>&lt;VTKFile type="UnstructuredGrid" version="0.1"
                    byte_order="LittleEndian"&gt;</div>
                  <div>&nbsp; &lt;UnstructuredGrid&gt;</div>
                  <div>&nbsp; &nbsp; &lt;Piece NumberOfPoints="10"
                    NumberOfCells="1"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &lt;PointData Scalars="scalars"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type="Float32"
                    Name="scalars" format="ascii" RangeMin="0"
                    RangeMax="1"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 1 1 1 0 0</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 0 0 0</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataArray&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &lt;/PointData&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &lt;CellData&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type="Int64"
                    Name="QuadratureOffset" format="ascii" RangeMin="0"
                    RangeMax="0"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;InformationKey name="DICTIONARY"
                    location="vtkQuadratureSchemeDefinition"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;vtkQuadratureSchemeDefinition&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;CellType value="24"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/CellType&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;NumberOfNodes value="10"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/NumberOfNodes&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;NumberOfQuadraturePoints
                    value="4"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/NumberOfQuadraturePoints&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;ShapeFunctionWeights&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1.5625000000000000e-001
                    -9.3750000000000000e-002 -9.3750000000000000e-002
                    -9.3750000000000000e-002</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3.1250000000000000e-001
                    6.2500000000000000e-002 3.1250000000000000e-001
                    3.1250000000000000e-001</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 6.2500000000000000e-002
                    6.2500000000000000e-002 -9.3750000000000000e-002
                    7.0312500000000000e-002</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -1.1718750000000000e-001
                    -9.3750000000000000e-002 2.8125000000000000e-001
                    4.2187500000000000e-001</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 9.3750000000000000e-002
                    6.2500000000000000e-002 2.8125000000000000e-001
                    9.3750000000000000e-002</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -9.3750000000000000e-002
                    -1.1718750000000000e-001 7.0312500000000000e-002
                    -9.3750000000000000e-002</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 9.3750000000000000e-002
                    4.2187500000000000e-001 2.8125000000000000e-001
                    6.2500000000000000e-002</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 9.3750000000000000e-002
                    2.8125000000000000e-001 -9.3750000000000000e-002
                    -5.4687500000000000e-002</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -5.4687500000000000e-002
                    3.7500000000000000e-001 3.1250000000000000e-002
                    1.5625000000000000e-002</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3.1250000000000000e-002
                    3.7500000000000000e-001 1.8750000000000000e-001
                    1.8750000000000000e-001</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/ShapeFunctionWeights&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;QuadratureWeights&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2.1219962781139991e-314
                    2.1219957914593380e-314 1.1013158155129526e-311
                    1.1501217187461613e-311</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/QuadratureWeights&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/vtkQuadratureSchemeDefinition&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/InformationKey&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataArray&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &lt;/CellData&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &lt;Points&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type="Float32"
                    Name="Points" NumberOfComponents="3" format="ascii"
                    RangeMin="0" RangeMax="1.1874342107"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 0 0 1 0 0</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.5 0.80000001192 0 0.5 0.40000000596 1</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.5 0 -0.20000000298 0.60000002384
                    0.60000002384 0</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.30000001192 0.40000000596 0
                    0.40000000596 0.20000000298 0.5</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0.85000002384 0.30000001192 0.5 0.5
                    0.60000002384 0.44999998808</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataArray&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &lt;/Points&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &lt;Cells&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type="Int64"
                    Name="connectivity" format="ascii" RangeMin="0"
                    RangeMax="9"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 1 2 3 4 5</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 6 7 8 9</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataArray&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type="Int64" Name="offsets"
                    format="ascii" RangeMin="10" RangeMax="10"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataArray&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type="UInt8" Name="types"
                    format="ascii" RangeMin="24" RangeMax="24"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 24</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataArray&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &lt;/Cells&gt;</div>
                  <div>&nbsp; &nbsp; &lt;/Piece&gt;</div>
                  <div>&nbsp; &lt;/UnstructuredGrid&gt;</div>
                  <div>&lt;/VTKFile&gt;</div>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>Third: &nbsp;I investigated quadrature for hexahedron.
                  &nbsp;I made a similar file to quadraticTetra01.vtu and
                  tried to generate a quadrature dictionary. &nbsp;Upon
                  hitting apply for this, paraview crashes. &nbsp;It crashes
                  for both linear and quadratic hexahedron. This is the
                  file it crashes on,</div>
                <div><br>
                </div>
                <div>
                  <div>&lt;?xml version="1.0"?&gt;</div>
                  <div>&lt;VTKFile type="UnstructuredGrid" version="0.1"
                    byte_order="LittleEndian"
                    compressor="vtkZLibDataCompressor"&gt;</div>
                  <div>&nbsp; &lt;UnstructuredGrid&gt;</div>
                  <div>&nbsp; &nbsp; &lt;Piece NumberOfPoints="12"
                    NumberOfCells="2"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &lt;PointData Scalars="scalars"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type="Float32"
                    Name="scalars" format="ascii"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 1 1 1 0 0 0 0 0 0 1 1</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataArray&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &lt;/PointData&gt;</div>
                  <div><span style="white-space:pre-wrap"> </span> &nbsp;</div>
                  <div>&nbsp; &nbsp; &nbsp; &lt;Points&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type="Float32"
                    NumberOfComponents="3" format="ascii"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-1.0 -1.0 1.0</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-1.0 -1.0 -1.0</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-1.0 1.0 -1.0</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-1.0 1.0 1.0</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1.0 -1.0 1.0</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1.0 -1.0 -1.0</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1.0 1.0 -1.0</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1.0 1.0 1.0</div>
                  <div><span style="white-space:pre-wrap"> </span> 3.0
                    -1.0 1.0</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3.0 -1.0 -1.0</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3.0 1.0 -1.0</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3.0 1.0 1.0</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataArray&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &lt;/Points&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &lt;Cells&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type="Int32"
                    Name="connectivity" format="ascii"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 1 2 3 4 5 6 7</div>
                  <div><span style="white-space:pre-wrap"> </span> &nbsp;<a
                      moz-do-not-send="true"
                      href="tel:4%205%206%207%208%209%2010%2011"
                      value="+14567891011" target="_blank">4 5 6 7 8 9
                      10 11</a></div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataArray&gt;</div>
                  <div><span style="white-space:pre-wrap"> </span>&lt;DataArray
                    type="Int32" Name="offsets" format="ascii"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 8 16</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataArray&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;DataArray type="UInt8" Name="types"
                    format="ascii"&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 12 12</div>
                  <div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/DataArray&gt;</div>
                  <div>&nbsp; &nbsp; &nbsp; &lt;/Cells&gt;</div>
                  <div>&nbsp; &nbsp; &lt;/Piece&gt;</div>
                  <div>&nbsp; &lt;/UnstructuredGrid&gt;</div>
                  <div>&lt;/VTKFile&gt;</div>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>My question is can anyone give me a quick example
                  to implement quadrature in paraview. &nbsp;I am at wits end
                  trying to figure this out. &nbsp;</div>
                <div><br>
                </div>
                <div><br>
                </div>
              </div>
              <br>
              <fieldset></fieldset>
              <br>
              <pre>_______________________________________________
Powered by <a moz-do-not-send="true" href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at <a moz-do-not-send="true" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the ParaView Wiki at: <a moz-do-not-send="true" href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a>

Follow this link to subscribe/unsubscribe:
<a moz-do-not-send="true" href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a>
</pre>
            </blockquote>
            <br>
          </div>
          <br>
          _______________________________________________<br>
          Powered by <a moz-do-not-send="true"
            href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
          <br>
          Visit other Kitware open-source projects at <a
            moz-do-not-send="true"
            href="http://www.kitware.com/opensource/opensource.html"
            target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
          <br>
          Please keep messages on-topic and check the ParaView Wiki at:
          <a moz-do-not-send="true"
            href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
          <br>
          Follow this link to subscribe/unsubscribe:<br>
          <a moz-do-not-send="true"
            href="http://www.paraview.org/mailman/listinfo/paraview"
            target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
          <br>
        </blockquote>
      </div>
      <br>
    </blockquote>
    <br>
  </body>
</html>