[Paraview] plot contour in ParaView

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Apr 8 15:30:29 EDT 2015


Yifei,

Ideally, you want to put it out as an 10x10x20 Uniform Rectilinear
Grid, vtkImageData (since that's what it seems to be). For information
on what vtkImageData looks like, refer to Chapter 3 from The ParaView
Guide which can be downloaded from here[1].

[1] http://www.paraview.org/paraview-guide/

On Wed, Apr 8, 2015 at 2:11 PM, Yifei <yma74 at gatech.edu> wrote:
> Thanks for your reply. My goal is to plot stress contour for my simulation results. It seems to me that when I use pizza.py to convert dump file from LAMMPS into other file types, the data is always point data (coordinate and value at a point). So I wonder if I could convert the dump file into certain file types ParaView could use to plot contours?
>
> As far as I know, in MATLAB I could use griddata function to interpolate scattered data (point data in 2D). Then use contourf function to generate contours. I wonder if ParaView provides similar functions like griddata to convert the input data, then apply the contour filter?
>
> Thanks,
> Yifei
>
>
>
>
>> On Apr 8, 2015, at 1:57 PM, Utkarsh Ayachit <utkarsh.ayachit at kitware.com> wrote:
>>
>> Yifei,
>>
>> Contouring as an operation doesn't make much sense for point clouds.
>> The question would be what is your end goal? What information do you
>> want to extract from the point could? Maybe I can suggestion
>> alternative operations that can help you achieve that.
>>
>> Utkarsh
>>
>> On Wed, Apr 8, 2015 at 1:52 PM, Yifei <yma74 at gatech.edu> wrote:
>>> It is point cloud. What data type could the contour filter apply to? Is it possible to convert dump files from LAMMPS to this type of data?
>>>
>>> Thanks for your kindly help.
>>> Yifei
>>>
>>>> On Apr 8, 2015, at 10:50 AM, Utkarsh Ayachit <utkarsh.ayachit at kitware.com> wrote:
>>>>
>>>> I am correct that your dataset is just a point-cloud or am I missing
>>>> something? If it is a point cloud, how are you contouring it, in the
>>>> first place? The contour filter cannot be applied to a point cloud.
>>>>
>>>> Utkarsh
>>>>
>>>>
>>>>
>>>> On Tue, Apr 7, 2015 at 4:35 PM, Yifei <yma74 at gatech.edu> wrote:
>>>>> Please find the dataset in the attachment.
>>>>>
>>>>> Thanks,
>>>>> Yifei
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> On Apr 7, 2015, at 4:28 PM, Utkarsh Ayachit <utkarsh.ayachit at kitware.com> wrote:
>>>>>>
>>>>>> If you can share a sample dataset to illustrate the problem, it may help.
>>>>>>
>>>>>> Utkarsh
>>>>>>
>>>>>> On Tue, Apr 7, 2015 at 4:13 PM, Yifei <yma74 at gatech.edu> wrote:
>>>>>>> Hi,
>>>>>>>
>>>>>>> I just double checked. I did check the "Compute Scalars" option.
>>>>>>>
>>>>>>> Best,
>>>>>>> Yifei
>>>>>>>
>>>>>>>> On Apr 7, 2015, at 3:44 PM, Utkarsh Ayachit <utkarsh.ayachit at kitware.com> wrote:
>>>>>>>>
>>>>>>>>> How can I use damage or velocity as the coloring options?
>>>>>>>>
>>>>>>>> Make sure you have "Compute Scalars" option checked on the
>>>>>>>> "Properties" panel for the Contour filter.
>>>>>>>>
>>>>>>>> Utkarsh
>>>>>>>
>>>>>
>>>>>
>>>
>


More information about the ParaView mailing list