[Paraview] Colormap cut planes and contour filter in an unstructured grid

2018-05-21 Thread Franco Di Rino
I have got and unstructured grid with vector values in each point data. What 
should I do to get cut planes where a colormap describing the different 
components magnitudes is shown over it?  Also I would like to get an isosurface 
 that shows a range of a vector component.


I have been trying to apply the contour filter but i could´t make it.


The vtk input data has this structure (the cell is  a VTK_POLY_VERTEX ):


# vtk DataFile Version 3.0
vtk output
ASCII
DATASET UNSTRUCTURED_GRID
POINTS  3760  float
-9.65000-40.5300 63.6900
-5.79000-40.5300 63.6900
-1.93000-40.5300 63.6900
 1.93000-40.5300 63.6900


CELLS 1 3761
  3760
 0
 1
 2
 3
 4
 5
...

CELL_TYPES 1
2
POINT_DATA3760
VECTORS pola float
 4.840499880 8.852499960-6.604599950
 1.41110 6.376500130-4.676899910
0.219080 6.156899930-5.077499870
   -0.4937599900 3.430599930-4.799300190
...


The full input data is here: https://pastebin.com/raw/iGprRQBX
___
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://public.kitware.com/mailman/listinfo/paraview


[Paraview] Resample To Image with Catalyst

2018-05-21 Thread Petr Valenta
Hello,



the code which I am using is instrumented with Catalyst.

I am trying to process simulation data using ResampleToImage filter and then
to store the result on a disk.




In the Python pipeline I have something like:




adaptor_input = coprocessor.CreateProducer(datadescription, 'input')

resample = ResampleToImage(Input=adaptor_input)



resample.UseInputBounds = True


resample.SamplingDimensions = [256, 256, 256]


writer = servermanager.writers.XMLPImageDataWriter(Input=resample)

coprocessor.RegisterWriter(writer, filename='resample_%t.pvti', freq=10)





When I check the results in ParaView, the grid is correct but the data array
appended on it contains only zeros. When I skip the filter and dump directly
the adaptor_input, the data array contains correct values. Could you,
please, help me to resolve this issue?




Thank you.




Kind regards,

Petr





___
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://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Unstructured rectilinear mesh vs legacy vtk format

2018-05-21 Thread Aniruddha Panda
Got it, thanks!

-

With thanks & regards

*Aniruddha Panda*

PhD Researcher,

TU Eindhoven,

The Netherlands


On Sun, May 20, 2018 at 11:12 PM kenichiro yoshimi 
wrote:

> Hi,
>
> I just sent an email with a typo. "Cell Data to Point Data" filter was
> correct.
>
> 2018年5月20日(日) 13:30 kenichiro yoshimi :
>
>> Hi Aniruddha,
>>
>> I think the reason why the data looks discontinuous is that it is
>> defined as cell data. So the easiest way is to use "Point Data to Cell
>> Data" filter to convert from cell data to point data, which is using a
>> very basic straight averaging.
>>
>> Best Regards
>>
>> 2018-05-20 3:30 GMT+09:00 Aniruddha Panda :
>> > I have a cartesian grid on two different codes, one uses the legacy
>> format
>> > to write the data in vtk format where the co-ordinates of equidistant
>> points
>> > in x y and z directions are used and the associated velocity (or any
>> other
>> > state variable) values are written.
>> >
>> >
>> > Whereas in the code which uses the unstructured dataset the each
>> quadrant
>> > extents are written and the associated cell data is written. Later the
>> idea
>> > is to have adaptive mesh refinement on this.
>> >
>> > When I visualise both the files ( lets say for flow through a square
>> duct,
>> > pic attached ) I see a smooth representation that paraview automatically
>> > calculates for the mesh in case of vtk whereas it appears like a
>> > discontinuous data in case of vtu ( i assume vtu does lead to a
>> > discontinuous field) . May I know if there is a smoothing filter which
>> > allows me to interpolate the data onto an equidistant point cloud in all
>> > directions so as to have smooth profile in my postprocessing.
>> >
>> > Figure1. vtk flow through a square duct
>> > Figure2 vtu flow through a square duct
>> > Figure3 the velocity profile across the diagonal of the slice ( from
>> vtk )
>> > Figure4 the velocity profile across the diagonal of the slice ( from
>> vtu)
>> >
>> > -
>> >
>> > With thanks & regards
>> >
>> > Aniruddha
>> >
>> >
>> > ___
>> > 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://public.kitware.com/mailman/listinfo/paraview
>> >
>>
>
___
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://public.kitware.com/mailman/listinfo/paraview