<div dir="ltr"><div>Dear Kenneth and Cory,</div><div><br></div><div>Yes, indeed, I was missing this detail. The reason what made me think wrong is that on a 3d model I was not observing this behaviour with a similar approach(At least, that is what I think). See the attached pictures on a 3d post-processing view which also has a lot of zeros in the input file except for the z-direction displacement field.<br></div><div><br></div><div> In the sliced figure for the 3d example, you can also see that the mesh elements at the top face are deformed too much. On one side of the mesh they are moving out of the box and on the other side they are moving into the box(one is basically compressing the air and the other side is expanding which is of course exaggerated too much). <br></div><div><br></div><div>I was thinking that the same approach should also hold for the 2d case. At the end, what I would like to do is to displace the structure with the vector field and show the pressure profile as a color field on this deformed mesh. Since pressure is a scalar, I thought that using the scalar pressure values at the deformed locations of the nodes would give me what I want. But apparently for 2d case, this is not happening(for 3d case, I still believe it is working if I look at the results). <br></div><div><br></div><div>Is not my interpretation correct?<br></div><div><br></div><div>Ps. I will send another mail excluding paraview list with the input vtk file for one set of data to your mail addresses for a further check if you have time.</div><div><br></div><div>Thanks for the help in advance.</div><div><br></div><div>Regards,</div><div>Umut<br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 June 2018 at 18:22, Moreland, Kenneth <span dir="ltr"><<a 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 link="#0563C1" vlink="#954F72" lang="EN-US">
<div class="m_-2761417566100580627WordSection1">
<p class="MsoNormal">Umit,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I took a look at your data, and the warp by vector filter is behaving exactly how I would expect.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The displacement field in your data is 0 everywhere except at the top edge. Thus, when you apply the warp the top edge will move and everything else will stay fixed where it is. In the middle of the top edge the warp vectors are pushing
down into the rest of the mesh. This is causing some self-intersection with the mesh, which is why you are seeing the pressure profile sticking out the top.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">You can use the Threshold filter to remove all cells that are not moving. However, that is only going to leave the top layer of cells, which I’m not sure what you want.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">-Ken<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><b>From:</b> ParaView [mailto:<a href="mailto:paraview-bounces@public.kitware.com" target="_blank">paraview-bounces@<wbr>public.kitware.com</a>]
<b>On Behalf Of </b>Umut TABAK<br>
<b>Sent:</b> Wednesday, June 13, 2018 11:38 PM<br>
<b>To:</b> ParaView <<a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a>><br>
<b>Subject:</b> [EXTERNAL] [Paraview] warp by vector field(displacement) with pressure field problem<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div><span class="">
<div>
<p class="MsoNormal">Dear all,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">On a 2d model, I am trying to plot some mode shape for a coupled fluid-structure problem where a beam is coupled to a cavity domain. I have two variables for this problem: scalar pressure variable for the cavity and the displacement vectors
for the beam at the top edges of the domain. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I am writing the attached vtk input file with my post processing codes.
<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</span><div>
<p class="MsoNormal">And the result is somewhat as expected except that another pressure profile with an undeformed structural part is also visible with what I actually want to get. Please see the attached screenshot with the settings and visible fields.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Do I have a misunderstanding to accomplish this task. At the end, I would like to show the pressure profile which is a scalar field in the file along with the displacement field on the beam at the top edge.
<u></u><u></u></p>
</div><span class="">
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I was thinking if there is deformed+undeformed visibility selection somehwere or not, maybe the issue is completely something else.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Any comments are appreciated.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">BR,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Umut<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">P.S. For a decent view for the deformed vector field, you can set the scale factor of the warpbyvector field to 0.1 to 0.15<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</span></div>
</div>
</div>
</blockquote></div><br></div>