MantisBT - ParaView
View Issue Details
0012008ParaViewBugpublic2011-03-24 12:352016-08-12 09:58
Alan Scott 
Robert Maynard 
highmajoralways
closedmoved 
 
git-master 
Sandia
incorrect functionality
0012008: CTH velocities are calculated incorrectly
We've found a problem with how paraview reads in velocities from CTH spyplot files which appears to have been a problem since at least 3.6.2. The problem is related to how CTH outputs velocities in it's spyplot files.

First of all, note that velocities are treated differently in CTH compared to all the other variables. All non-velocity values are cell-centered quantities, but velocities are face-centered quantities (x velocities on faces with an x normal, y velocities on faces with y normal, and z velocities on faces with a z normal). In order to get an appropriate cell-centered value for velocity, you have to average the velocities for opposing faces.

This is where we run into problems. Spyplot does not do this averaging before it outputs its results to an spcth file. When it outputs velocities for a cell, it is actually outputting the velocities on the bottom faces, i.e. on the x, y, and z faces that have a smaller quantity centroid than the other x, y, or z face on the cell. In order to get the cell-centered velocities, you need to take the velocities output for the cell and average them with the appropriate cells adjacent in the positive x, y, and z directions. This is elaborated in 2-D in the attached PDF file; 3-D is a simple extension.

Although this is a quirk of the CTH data, it is very much needed for this to be incorporated into paraview so that the proper velocities are output. It is an issue for all CTH visualization, but it is most evident using the material interface filter, which outputs improper averaged velocities for fragments, thus making velocity vector and momentum computations incorrect.

All of this was determined through direct debugging of routines within paraview, and has been confirmed with the CTH developers. I have a very simple, small test case which demonstrates all these issues and is unclassified. Please let me know if you would like it.

Please let me know if you have any questions about any of this.

Note from Alan - I have the dataset example. It is called CTH-velocities.

No tags attached.
pdf CTH_velocities.pdf (113,182) 2011-03-24 12:35
https://www.vtk.org/Bug/file/8771/CTH_velocities.pdf
Issue History
2011-03-24 12:35Alan ScottNew Issue
2011-03-24 12:35Alan ScottFile Added: CTH_velocities.pdf
2011-03-29 14:59Utkarsh AyachitAssigned To => Robert Maynard
2011-03-29 14:59Utkarsh AyachitStatusbacklog => tabled
2011-03-31 11:24Utkarsh AyachitTarget Version3.10.1 => 3.12
2011-06-24 14:06Alan ScottStatusbacklog => todo
2011-06-27 08:32Utkarsh AyachitProject => Sandia
2011-07-25 11:56Utkarsh AyachitType => incorrect functionality
2011-07-25 11:56Utkarsh AyachitTarget Version => 3.12
2011-08-04 15:27Utkarsh AyachitNote Added: 0027227
2011-08-04 15:27Utkarsh AyachitTarget Version3.12 => 4.0
2012-05-31 10:23Utkarsh AyachitStatustodo => backlog
2012-10-18 13:49Utkarsh AyachitTarget Version4.0 => git-master
2016-08-12 09:58Kitware RobotNote Added: 0037944
2016-08-12 09:58Kitware RobotStatusbacklog => closed
2016-08-12 09:58Kitware RobotResolutionopen => moved

Notes
(0027227)
Utkarsh Ayachit   
2011-08-04 15:27   
Pushing to 4.0 after discussion with Alan.
(0037944)
Kitware Robot   
2016-08-12 09:58   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current ParaView Issues page linked in the banner at the top of this page.