CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Compare Velocities (Mag/X/Y/Z)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 26, 2014, 03:34
Default Compare Velocities (Mag/X/Y/Z)
  #1
Member
 
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 85
Rep Power: 13
chrisb2244 is on a distinguished road
Dear all,

Is it possible to compare views of velocity in X/Y/Z directions with magnitude during one animation?

I'm currently using PV-4.2.0 and my datasets are generated by OpenFOAM.
I'm using the built-in OpenFOAM reader (PVs, not paraFoam).

I can't use 'Comparitive Views' since this is used to give different 'snapshot' style images - eg for 4 different times.

Using a grid of multiple 'Render View's allows tiling of for example, Pressure, Velocity and Alpha (fluid fraction) etc, but not of different views of the velocity - changing from Magnitude to X or Y changes all RenderView windows to the new values.

Opening the files multiple times behaves in the same way.

Perhaps duplicating the files and creating physical copies would allow this to be possible, but that would require 3x more space (since I want to render Mag, X and Y, along with Alpha, which can be taken from any of the other sets of data, so 3 sets of the data files, currently sitting at around 50GB - possible but obviously not ideal.

If there are any better ideas (including perhaps using Python scripts - I'm clueless there, or hacking the reader) I'd appreciate a pointer.
chrisb2244 is offline   Reply With Quote

Old   November 27, 2014, 01:31
Default
  #2
Member
 
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 85
Rep Power: 13
chrisb2244 is on a distinguished road
It seems (at least to the untrained eye) that Python scripting based solutions are unlikely - ParaView uses the lines

Code:
uLUT = GetColorTransferFunction('U') 
uLUT.VectorMode = 'Magnitude'
to colour by magnitude of the U vector, and

Code:
uLUT.VectorMode = 'Component'
uLUT.VectorComponent = '0'
to colour by U_x, etc.
Since the proxy ('uLUT' here) is returned by the 'GetColorTransferFunction('U')' function, I suspect creating different colourings at the same time might be challenging (/impossible? If I'm completely wrong and this can be simply duplicated, please say!)

Consequently, I'm now looking at copying the vtkOpenFOAMReader.{h,cxx} files and compiling a "vtkOpenFOAMReader_new.{h,cxx}" pair of files (probably along with "vtkPOpenFOAMReader.{h,cxx}" - the parallel files, although changes here look to be unneeded, perhaps beyond changing the names of the parent class) and altering the reader to open the file 'U' and return multiple matrices - eg Ux, Uy, Uz, UMag.

If anyone has a simpler method, or tips, please let me know.

Edit:
Duplicating the U files and changing the 'object' field in the header allows for separate data sets (of the same data) to be loaded, but symbolic links are insufficient (since then the object field remains the same, and a different file name is not enough (as can be tested by copying the file without changing the 'object' field)). This however leads to data in triplicate, making it difficult to load large data sets into memory etc.
chrisb2244 is offline   Reply With Quote

Reply

Tags
comparison, openfoam, paraview 4.2


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unexpectedly high velocities - why??? umop-3pisdn STAR-CCM+ 1 July 11, 2018 04:55
How to compare outlet velocities from a inlet manifold model with 1 inlet & 4 outlets abhinav choubey FLUENT 0 June 11, 2017 09:20
Calculating vortex cores of relative velocities Dorit Tecplot 1 December 17, 2015 06:23
[OpenFOAM] converting velocities from cell centers to corner torsy87 ParaView 1 April 14, 2013 09:09
Derived velocities from loss coefficients ?? jakjak CFX 1 December 20, 2007 15:38


All times are GMT -4. The time now is 10:07.