<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">
<blockquote type="cite">One quick question though. Interpolate to
quadrature points and generate quadrature points seems to be
used for interpolating the nodal values and coloring the
quadrature points appropriately. Is there anyway to have
quadrature point data and then interpolate to the cell and color
it appropriately. </blockquote>
not currently, someone would have to add a filter for this. Adding
a filter is too not a difficult a task.... ;-)<br>
<br>
<blockquote type="cite">Also FYI, Paraview still crashes when
making the quadrature dictionary for hexahedral elements. It's
probably not a big deal, I can make my own. </blockquote>
I suspect that you are trying to use the example dictionary
generator that's built into PV. However, this generator doesn't
provide a definition for hexahedral cells. Its primary purpose is
to serve as an example of how one write a dictionary generator. it
was never intended to be a comprehensive source of quadrature
scheme definitions. The idea with the dictionary generators is
that practitioners would provide them for their specific use
cases. If my suspicion is incorrect, please give some more detail
about the crash? and any output in the terminal?<br>
<br>
I also want to warn about using ascii format for large models,
because it's slow. The appended format is far better, although it
may be slightly more challenging to write your data that way if
you're not using vtk writers.<br>
<br>
Glad you've had some success! The patches were merged over the
weekend, so you could use the nightly binaries now.<br>
<br>
Burlen<br>
<br>
On 03/31/2013 01:10 PM, afad sfgsfdgsfd wrote:<br>
</div>
<blockquote cite="mid:BAY166-W659D6095E76BB22E67E4AFCADD0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Andy Bauer,
<div><br>
Thank you for informing me about the nightly builds. I will
keep that in mind from now on.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Burlin Loring,</div>
<div><br>
</div>
<div>
<div>So I implemented the patch and got everything compiled.
I am now able to use all the quadrature filters and do the
examples. Took me awhile because I was trying to compile
for 64 bit when the qt libraries I downloaded were only 32
bit.</div>
<div><br>
</div>
<div>One quick question though. Interpolate to quadrature
points and generate quadrature points seems to be used for
interpolating the nodal values and coloring the quadrature
points appropriately. Is there anyway to have quadrature
point data and then interpolate to the cell and color it
appropriately. For example if I am using a linear element,
stress would be constant in the cell, thus VTK would color
each cell with constant stress. If I used quadratic
elements, stress would be linear in each cell, thus VTK
would color each cell linearly.</div>
</div>
<div><br>
</div>
<div>Also FYI, Paraview still crashes when making the quadrature
dictionary for hexahedral elements. It's probably not a big
deal, I can make my own. But, Paraview does crash when
attempting to do this.</div>
<div><br>
</div>
<div>Thank you both so much for helping me, I really appreciate
it. </div>
<div><br>
<br>
<div>
<hr id="stopSpelling">Date: Fri, 29 Mar 2013 10:01:20 -0700<br>
From: <a class="moz-txt-link-abbreviated" href="mailto:bloring@lbl.gov">bloring@lbl.gov</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:deutchlobo@hotmail.com">deutchlobo@hotmail.com</a><br>
CC: <a class="moz-txt-link-abbreviated" href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
Subject: Re: [Paraview] Quadrature in Paraview<br>
<br>
<div class="ecxmoz-cite-prefix">Hi afad sfgsfdgsfd,<br>
<br>
Your example(quadratic tera) actually works with a very
slight modification: move the cell offset data to the top
of the element. That's clearly a bug in the reader(when
reading inline data, the regression tests only check that
the appended mode works, so that's why this bug slipped
through.) . I attached the modified file so you see
exactly what I meant.<br>
<br>
Burlen<br>
<br>
On 03/29/2013 09:43 AM, Burlen Loring wrote:<br>
</div>
<blockquote cite="mid:5155C4C1.6050600@lbl.gov">
<div class="ecxmoz-cite-prefix">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://www.paraview.org/ParaView.git<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"
class="ecxmoz-txt-link-abbreviated"
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
cite="mid:BAY166-W4822C32D5C7D7D75E0E2FDCAD20@phx.gbl">
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:10pt;
font-family:Tahoma;
}
--></style>
<div dir="ltr"> I am trying to understand quadrature in
paraview. I am running finite element simulations in
which I have displacements at the nodes of the
element, and stress/strain at the quadrature points.
I have linear and quadratic hexahedral or tetrahedral
elements. I have been spending days trying to figure
out how to implement data on the quadrature points. I
have downloaded just about every document I can find.
<div><br>
</div>
<div>First: I downloaded CylinderQuadratic.vtk as
shown in VTK-Quadrature-Point-Design-Doc. I was
able to generate the quadrature scheme dictioanary
and generate quadrature points. 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. I was able to do this
when using the Generate Quadrature Points filter. </div>
<div><br>
</div>
<div>Second: Considering I couldn't figure out how to
interpolate quadrature points using
CylinderQuadratic.vtk, I decided to investigate just
using a single element. I took quadraticTetra01.vtu
and modified it to only have on quadratic
tetrahedron. Then I used paraview to generate the
quadrature scheme dictionary. I saved this into a
VTU file in order to see how to implement the
dictionary on my own. When I tried to reopen this
new VTU file, paraview was unable to open the file.
Specifically, it choked on the QuadratureOffset
data array.</div>
<div>This is the file that paraview cannot open</div>
<div><br>
</div>
<div>
<div><VTKFile type="UnstructuredGrid"
version="0.1" byte_order="LittleEndian"></div>
<div> <UnstructuredGrid></div>
<div> <Piece NumberOfPoints="10"
NumberOfCells="1"></div>
<div> <PointData Scalars="scalars"></div>
<div> <DataArray type="Float32"
Name="scalars" format="ascii" RangeMin="0"
RangeMax="1"></div>
<div> 1 1 1 1 0 0</div>
<div> 0 0 0 0</div>
<div> </DataArray></div>
<div> </PointData></div>
<div> <CellData></div>
<div> <DataArray type="Int64"
Name="QuadratureOffset" format="ascii"
RangeMin="0" RangeMax="0"></div>
<div> <InformationKey name="DICTIONARY"
location="vtkQuadratureSchemeDefinition"></div>
<div> <vtkQuadratureSchemeDefinition></div>
<div> <CellType value="24"></div>
<div> </div>
<div> </CellType></div>
<div> <NumberOfNodes value="10"></div>
<div> </div>
<div> </NumberOfNodes></div>
<div> <NumberOfQuadraturePoints
value="4"></div>
<div> </div>
<div> </NumberOfQuadraturePoints></div>
<div> <ShapeFunctionWeights></div>
<div> 1.5625000000000000e-001
-9.3750000000000000e-002 -9.3750000000000000e-002
-9.3750000000000000e-002</div>
<div> 3.1250000000000000e-001
6.2500000000000000e-002 3.1250000000000000e-001
3.1250000000000000e-001</div>
<div> 6.2500000000000000e-002
6.2500000000000000e-002 -9.3750000000000000e-002
7.0312500000000000e-002</div>
<div> -1.1718750000000000e-001
-9.3750000000000000e-002 2.8125000000000000e-001
4.2187500000000000e-001</div>
<div> 9.3750000000000000e-002
6.2500000000000000e-002 2.8125000000000000e-001
9.3750000000000000e-002</div>
<div> -9.3750000000000000e-002
-1.1718750000000000e-001 7.0312500000000000e-002
-9.3750000000000000e-002</div>
<div> 9.3750000000000000e-002
4.2187500000000000e-001 2.8125000000000000e-001
6.2500000000000000e-002</div>
<div> 9.3750000000000000e-002
2.8125000000000000e-001 -9.3750000000000000e-002
-5.4687500000000000e-002</div>
<div> -5.4687500000000000e-002
3.7500000000000000e-001 3.1250000000000000e-002
1.5625000000000000e-002</div>
<div> 3.1250000000000000e-002
3.7500000000000000e-001 1.8750000000000000e-001
1.8750000000000000e-001</div>
<div> </ShapeFunctionWeights></div>
<div> <QuadratureWeights></div>
<div> 2.1219962781139991e-314
2.1219957914593380e-314 1.1013158155129526e-311
1.1501217187461613e-311</div>
<div> </QuadratureWeights></div>
<div> </div>
<div>
</vtkQuadratureSchemeDefinition></div>
<div> </div>
<div> </InformationKey></div>
<div> 0</div>
<div> </DataArray></div>
<div> </CellData></div>
<div> <Points></div>
<div> <DataArray type="Float32"
Name="Points" NumberOfComponents="3"
format="ascii" RangeMin="0"
RangeMax="1.1874342107"></div>
<div> 0 0 0 1 0 0</div>
<div> 0.5 0.80000001192 0 0.5 0.40000000596
1</div>
<div> 0.5 0 -0.20000000298 0.60000002384
0.60000002384 0</div>
<div> 0.30000001192 0.40000000596 0
0.40000000596 0.20000000298 0.5</div>
<div> 0.85000002384 0.30000001192 0.5 0.5
0.60000002384 0.44999998808</div>
<div> </DataArray></div>
<div> </Points></div>
<div> <Cells></div>
<div> <DataArray type="Int64"
Name="connectivity" format="ascii" RangeMin="0"
RangeMax="9"></div>
<div> 0 1 2 3 4 5</div>
<div> 6 7 8 9</div>
<div> </DataArray></div>
<div> <DataArray type="Int64"
Name="offsets" format="ascii" RangeMin="10"
RangeMax="10"></div>
<div> 10</div>
<div> </DataArray></div>
<div> <DataArray type="UInt8" Name="types"
format="ascii" RangeMin="24" RangeMax="24"></div>
<div> 24</div>
<div> </DataArray></div>
<div> </Cells></div>
<div> </Piece></div>
<div> </UnstructuredGrid></div>
<div></VTKFile></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Third: I investigated quadrature for hexahedron.
I made a similar file to quadraticTetra01.vtu and
tried to generate a quadrature dictionary. Upon
hitting apply for this, paraview crashes. It
crashes for both linear and quadratic hexahedron.
This is the file it crashes on,</div>
<div><br>
</div>
<div>
<div><?xml version="1.0"?></div>
<div><VTKFile type="UnstructuredGrid"
version="0.1" byte_order="LittleEndian"
compressor="vtkZLibDataCompressor"></div>
<div> <UnstructuredGrid></div>
<div> <Piece NumberOfPoints="12"
NumberOfCells="2"></div>
<div> <PointData Scalars="scalars"></div>
<div> <DataArray type="Float32"
Name="scalars" format="ascii"></div>
<div> 1 1 1 1 0 0 0 0 0 0 1 1</div>
<div> </DataArray></div>
<div> </PointData></div>
<div><span class="ecxApple-tab-span"
style="white-space:pre;"> </span> </div>
<div> <Points></div>
<div> <DataArray type="Float32"
NumberOfComponents="3" format="ascii"></div>
<div> -1.0 -1.0 1.0</div>
<div> -1.0 -1.0 -1.0</div>
<div> -1.0 1.0 -1.0</div>
<div> -1.0 1.0 1.0</div>
<div> 1.0 -1.0 1.0</div>
<div> 1.0 -1.0 -1.0</div>
<div> 1.0 1.0 -1.0</div>
<div> 1.0 1.0 1.0</div>
<div><span class="ecxApple-tab-span"
style="white-space:pre;"> </span> 3.0 -1.0 1.0</div>
<div> 3.0 -1.0 -1.0</div>
<div> 3.0 1.0 -1.0</div>
<div> 3.0 1.0 1.0</div>
<div> </DataArray></div>
<div> </Points></div>
<div> <Cells></div>
<div> <DataArray type="Int32"
Name="connectivity" format="ascii"></div>
<div> 0 1 2 3 4 5 6 7</div>
<div><span class="ecxApple-tab-span"
style="white-space:pre;"> </span> 4 5 6 7 8 9
10 11</div>
<div> </DataArray></div>
<div><span class="ecxApple-tab-span"
style="white-space:pre;"> </span><DataArray
type="Int32" Name="offsets" format="ascii"></div>
<div> 8 16</div>
<div> </DataArray></div>
<div> <DataArray type="UInt8" Name="types"
format="ascii"></div>
<div> 12 12</div>
<div> </DataArray></div>
<div> </Cells></div>
<div> </Piece></div>
<div> </UnstructuredGrid></div>
<div></VTKFile></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. I am at wits
end trying to figure this out. </div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="ecxmimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
Powered by <a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated" href="http://www.kitware.com" target="_blank">www.kitware.com</a>
Visit other Kitware open-source projects at <a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" 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" class="ecxmoz-txt-link-freetext" 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" class="ecxmoz-txt-link-freetext" href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a>
</pre>
</blockquote>
<br>
</blockquote>
<br>
</div>
</div>
</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>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a>
</pre>
</blockquote>
<br>
</body>
</html>