[Paraview] Given 2D Displacement Field, Visualize Stretch as Geometric Change in Mesh

Cory Quammen cory.quammen at kitware.com
Wed Jan 10 11:10:23 EST 2018


Great, thanks for the follow up.

Cory

On Wed, Jan 10, 2018 at 10:58 AM, Charlie Talbot <chaztikov at gmail.com> wrote:
> That seems to work, thank you very much! I had some issues with Paraview 5.0
> (crashed upon python calculation) but this did indeed work after upgrading
> to Paraview 5.4
>
> On Tue, Jan 9, 2018 at 4:02 PM, Charlie Talbot <chaztikov at gmail.com> wrote:
>>
>> Thanks Cory!
>>
>> Knowing the procedure is very helpful.
>>
>> I am not well-versed in paraview, so I am referring to the wiki to see how
>> to use the Python Calculator and execute the other steps.  Will update.
>> Thanks again
>>
>> On Tue, Jan 9, 2018 at 2:48 PM, Cory Quammen <cory.quammen at kitware.com>
>> wrote:
>>>
>>> Charlie,
>>>
>>> You can use the Warp by Vector filter to warp the points in your data
>>> set according to a vector field. To get that vector field from your
>>> p_x and p_y scalar arrays, it is convenient to use the Python
>>> Calculator with the expression
>>>
>>> make_vector(p_x, p_y, np.zeros(p_x.shape))
>>>
>>> Apply the Python Calculator filter to your data set, then add a Warp
>>> by Vector filter off the Python Calculator filter. Set the Vectors
>>> property to "result", the default name of the array produced by the
>>> Python Calculator.
>>>
>>> Hope that helps,
>>> Cory
>>>
>>> On Tue, Jan 9, 2018 at 2:02 PM, Charlie Talbot <chaztikov at gmail.com>
>>> wrote:
>>> > Hi, this is my first time posting to paraview-users, and I am wondering
>>> > how
>>> > to visualize displacements by changes in the mesh rather than field
>>> > quantities (for attached file, px and py, displacements in x and y
>>> > coordinates).
>>> >
>>> > Is this possible in paraview?  How so?  Thanks!
>>> >
>>> > _______________________________________________
>>> > Powered by www.kitware.com
>>> >
>>> > Visit other Kitware open-source projects at
>>> > http://www.kitware.com/opensource/opensource.html
>>> >
>>> > Please keep messages on-topic and check the ParaView Wiki at:
>>> > http://paraview.org/Wiki/ParaView
>>> >
>>> > Search the list archives at: http://markmail.org/search/?q=ParaView
>>> >
>>> > Follow this link to subscribe/unsubscribe:
>>> > https://paraview.org/mailman/listinfo/paraview
>>> >
>>>
>>>
>>>
>>> --
>>> Cory Quammen
>>> Staff R&D Engineer
>>> Kitware, Inc.
>>
>>
>



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.


More information about the ParaView mailing list