[Paraview] Displacements

Cory Quammen cory.quammen at kitware.com
Tue Jul 31 10:19:02 EDT 2018


Ah, if you are talking about computing the displacement of bricks from
the first time step to a later timestep, that is doable with something
like:

* Load data
* Add a "Force Time" filter, setting this to the time of the first
timestep. When you advance in time, this will "freeze" the data set at
the first timestep while the original data set will advanced to the
current time, letting you compare the current timestep with the first.
* Add a "Cell Centers" filter to both the data set and the "Force
Time" filter. (assumes cell centers are a reasonable place to measure
displacement)
* Select both "Cell Centers" filters in the pipeline by clicking the
first and control-clicking the second.
* Add a Python calculator filter. Enter the expression
"inputs[1].Points - inputs[0].Points" and change the "Array Name" to
"Displacements". This will create a point-data array associated with
the cell centers, which gives you the displacements of the brick
centers.
* Add a Glyph filter to visualize the displacements, setting the
Scalars to None, Vectors to "Displacements", and "Scale Mode" to
"vector".

Attached is an example using the can.ex2 data set that ships with
ParaView in the Examples (File -> Open, look for the Examples
directory on the left of the dialog).

HTH,
Cory
On Tue, Jul 31, 2018 at 9:57 AM GeorgeP S <salachoris1 at gmail.com> wrote:
>
> Thank you for the reply,
> i immagine there is also no way to calculate or filter the amount of "bricks" outside their initial position
> with a certain tolerance then?
>
> Salachoris Georgios Panagiotis
>
> On Tue, Jul 31, 2018 at 3:52 PM, Cory Quammen <cory.quammen at kitware.com> wrote:
>>
>> Thanks for clarifying. I cannot think of a filter or pipeline of
>> filters that I can think of in ParaView to do this.
>>
>> Best,
>> Cory
>> On Tue, Jul 31, 2018 at 9:49 AM GeorgeP S <salachoris1 at gmail.com> wrote:
>> >
>> > Hello,
>> >
>> > at the image attached there is a model made of blocks (bricks).
>> > I would like to calculate the displacements between these "bricks".
>> > I hope i have cleared the situation a little.
>> >
>> > Thank you,
>> > Salachoris Georgios Panagiotis
>> >
>> >
>> > On Tue, Jul 31, 2018 at 3:38 PM, Cory Quammen <cory.quammen at kitware.com> wrote:
>> >>
>> >> I'm not sure I understand this:
>> >>
>> >> > i want to calculate the displacement for each block and his next one
>> >>
>> >> Could you elaborate?
>> >>
>> >> Thanks,
>> >> Cory
>> >>
>> >> p.s. For future questions, please use our forum at
>> >> https://discourse.paraview.org/
>> >> On Tue, Jul 31, 2018 at 6:42 AM GeorgeP S <salachoris1 at gmail.com> wrote:
>> >> >
>> >> > Hello all,
>> >> >
>> >> > i would like to know how to calculate the displacement between many bodies in contact.For example, lets say i have a wall and each brick on the wall has a displacement, i want to calculate the displacement for each block and his next one. Should i think to write a python filter or is there already a filter that can do this?
>> >> >
>> >> >
>> >> > Thank you in advance,
>> >> > Salachoris Georgios Panagiotis.
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > Powered by www.kitware.com
>> >> >
>> >> > ParaView discussion is moving! Please visit https://discourse.paraview.org/ for future posts.
>> >> >
>> >> > 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://public.kitware.com/mailman/listinfo/paraview
>> >>
>> >>
>> >>
>> >> --
>> >> Cory Quammen
>> >> Staff R&D Engineer
>> >> Kitware, Inc.
>> >
>> >
>>
>>
>> --
>> Cory Quammen
>> Staff R&D Engineer
>> Kitware, Inc.
>
>


-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BrickDisplacements.pvsm
Type: application/octet-stream
Size: 666447 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180731/482012e8/attachment-0001.obj>


More information about the ParaView mailing list