|
[Sponsors] |
November 26, 2014, 02:34 |
Compare Velocities (Mag/X/Y/Z)
|
#1 |
Member
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 85
Rep Power: 13 |
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. |
|
November 27, 2014, 00:31 |
|
#2 |
Member
Christian Butcher
Join Date: Jul 2013
Location: Japan
Posts: 85
Rep Power: 13 |
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' Code:
uLUT.VectorMode = 'Component' uLUT.VectorComponent = '0' 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. |
|
Tags |
comparison, openfoam, paraview 4.2 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Unexpectedly high velocities - why??? | umop-3pisdn | STAR-CCM+ | 1 | July 11, 2018 03:55 |
How to compare outlet velocities from a inlet manifold model with 1 inlet & 4 outlets | abhinav choubey | FLUENT | 0 | June 11, 2017 08:20 |
Calculating vortex cores of relative velocities | Dorit | Tecplot | 1 | December 17, 2015 05:23 |
[OpenFOAM] converting velocities from cell centers to corner | torsy87 | ParaView | 1 | April 14, 2013 08:09 |
Derived velocities from loss coefficients ?? | jakjak | CFX | 1 | December 20, 2007 14:38 |