Teng,

The issue is that your stress field data is associated with the cells and you 
are writing out the point data in your csv file. Thus, the stress data is not 
being written. There are two solutions, both with flaws:

Solution 1: When you get the dialog box labeled "Configure Writer 
(DataSetCSVWriter)" (after you choose a filename), change the option "Field 
Association" from "Points" to "Cells". If you do this option, you will only get 
the x, y, and z for the stress (labeled "stress:0", "stress:1", and 
"stress:2"). You will not get the x, y, z information for the placement of the 
points.

Solution 2: Before writing out the csv file, run the "Cell Data to Point Data" 
filter. Then write out the csv file with point data as you have been doing. You 
will get the x, y, and z for the stress (labeled "stress:0", "stress:1", and 
"stress:2") and you will also get the positional x, y, and z (labeled 
"Points:0", "Points:1", and "Points:2"). The problem with this solution is that 
it will alter the stress data slightly by averaging values of adjacent cells to 
points.

Also note that neither of these options will automatically write out the 
magnitude of the stress. To write out the stress magnitude, first run the 
"Calculator" filter to compute the magnitude of the stress vectors.

-Ken

From: ParaView [mailto:[email protected]] On Behalf Of Li, Teng
Sent: Monday, October 9, 2017 11:17 AM
To: [email protected]
Subject: [EXTERNAL] [Paraview] Saving as csv data

Hi all,

I have a question about saving vtk data in a csv file. Please find the 
following link for the vtk file:

https://drive.google.com/file/d/0B-Dmy2O1v21NbGlfTm9odlZpa2M/view?usp=sharinghttps://drive.google.com/file/d/0B-Dmy2O1v21NbGlfTm9odlZpa2M/view?usp=sharing

I expected to see 7 components in the csv file I saved: x, y, z, stress_x, 
stress_y, stress_z, stress_magnitude. However, in the csv file I saved, there 
are only three columns of data. Please find the csv file I saved:

https://drive.google.com/file/d/0B-Dmy2O1v21NeWZnejVqbHEzME0/view?usp=sharinghttps://drive.google.com/file/d/0B-Dmy2O1v21NeWZnejVqbHEzME0/view?usp=sharing

I saved the vtk file by first highlighting the vtk file in the pipeline, and 
then click save data. Then I used the default settings. Is there anything wrong 
in my saving process?

Thanks!

Best,
Teng


Teng Li

Master Candidate in Structures

Department of Civil and Environmental Engineering

University of Illinois at Urbana-Champaign

205 North Mathews Ave, Urbana, IL. 61801

Phone:(217)8196210, Email: [email protected]<mailto:[email protected]>




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

Reply via email to