Fabin, It appears to me you have found a limitation (or bug?) in the Calculator filter. My comments are inserted below. Sam Key On 5/24/2012 2:32 AM, Fabian Wein wrote: Hi Sam, Yes, the EnSight Gold format specification is for binary results files; only the "case" file is ASCII text. However, EnSight, if I recall correctly, does have a specification for ASCII text results files, however, I have never used it. I graduated from VTK XML-structured ASCII-text results files to the EnSight binary-formatted specification in order to get compact, manageable file-sets for my modestly large explicit transient dynamic simulations.
Yes, the "_XX" is appended by ParaView, and for my simulation results, stress is a 3x3 symmetric tensor which is specified in the EnSight "case" file, and the appending of the _XX does not surprise me.
Well, It looks like you have uncovered a limitation (or bug) in the calculator. It is my habit to include Pressure = (Stress_XX + Stress_YY + Stress_ZZ) / 3.0 in my simulation results (it is computed in my simulation software). To answer your question with certainty, I attempted to compute "Pressure" in the calculator using the above formula, and the calculator choked on "(Stress_XX... )" The error message is ERROR: In ..\..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1480 vtkFunctionParser (000000000C52E8B0): Syntax error: operator expected; see position 9
However, the calculator does list Stress_XX, Stress_YY, Stress_ZZ, Stress_XY, Stress_XZ, and Stress_YZ as available cell scalar quantities. To my way of thinking, the user-requested _expression_ should first be examined for available variable names before examining the operator sequencing? It would appear that the parsing has a built-in assumption that there will only have appended "_<single-character>" vector component designators like "_X"?
I don't understand if your "6-element vector" is the top row of a 6x6 Voigt matrix representation of the 3x3x3x3 4th-order elasticity tensor or a 3x3 sub-matrix from the 6x6 Voigt matrix? Did you supply your "6-element vector" to ParaView as a 2nd-order tensor? For what it is worth, my own coding for a VTK XML-formatted results file I have the following !! !! Start vtk "CellData" data. !! WRITE (IO_UNIT%LVTO,'(A)') '<CellData Tensors="Stress" Scalars="Material">' !! !! Write element-based (cell) stress data to VTK Data File. !! The retrieval function STRESS_DATA( element_n, component_i ) is used !! with the following stress-component retrieval pattern to produce the !! the stress-component pattern expected by ParaView (PV): !! ( 1 4 5 ) ( xx xy xz ) ( 1 2 3 ) !! Fma-3D Indices => ( 4 2 6 ) = ( yx yy yz ) = ( 4 5 6 ) <= PV Indices !! ( 5 6 3 ) ( zx zy zz ) ( 7 8 9 ) !! WRITE(IO_UNIT%LVTO,'(2X,A)')'<DataArray type="Float32" Name="Stress" NumberOfComponents="9" format="ascii">' Lbgn = 1 Lend = LREMAIN DO i = 1,LBLOCKS+1 WRITE(IO_UNIT%LVTO,'((6(1PE15.7)))') & ((/ STRESS_DATA(NELUSED(L),1),STRESS_DATA(NELUSED(L),4),STRESS_DATA(NELUSED(L),5), & STRESS_DATA(NELUSED(L),4),STRESS_DATA(NELUSED(L),2),STRESS_DATA(NELUSED(L),6), & STRESS_DATA(NELUSED(L),5),STRESS_DATA(NELUSED(L),6),STRESS_DATA(NELUSED(L),3) /), L = Lbgn,Lend) Lbgn = Lend + 1 Lend = Lend + LBCOUNT ENDDO WRITE(IO_UNIT%LVTO,'(2X,A)')'</DataArray>' This seems to be a Bug ?! |
_______________________________________________ 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 Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview