[Paraview] Define a constant value by block

2010-04-21 Thread Aurélien Marsan
Hello everybody, Second question of this day. I'm using Paraview in order to analyse the flow in a compressor stage. So I'm using MultiBlockDataSet, composed of several StructuredGrid. Some turn, other don't. In order to calculate some variables, as the absolute mach number for example, I nee

Re: [Paraview] Define a constant value by block

2010-04-21 Thread Utkarsh Ayachit
Couple of options: * store the value in an array in the FieldData for the StructuredGrid for each block. Then your filter can get the rotational speed from the field data. * store the value in the MetaData associated with each block in the MultiBlockDataSet. The issue with meta-data is that it's no

Re: [Paraview] Define a constant value by block

2010-04-21 Thread Utkarsh Ayachit
> But could you coufirm at me, I'm not sure to understand well : the first > option that you suggest consists in storing the value on each node or cell > of each block, doesn't it ? No. Every vtkStructuredGrid has 3 types of attributes: * PointData -- for each point * CellData -- for each cell *