Normalizing data
This question is so basic that I almost dont dare to ask.
How can I produce "normalized" variables directly in ParaView? Say I have a scalar field "Velocity_X" on a Multi-block Dataset and I want to divide it by its maximum or average value. The intuitive way with a calculator expression Velocity_X/max(Velocity_X) does not work/results in an error. Quote:
Versions I tried are 3.14 and 3.98 |
Any Ideas?
If this is a RTFM-question please tell me, then I can continue to search for the answer myself. Otherwise I would appreciate any hint that can guide me towards a solution. |
Hi Alex,
What you're looking for is the filter "Python Calculator" and then you can use the expression: Code:
U/max(U) Best regards, Bruno |
Thank you so much.
It took me a while to figure out how to access single components of vectors, but now it works like a charm. |
Hi Alex
how could you do that? @Bruno: what python code should add in paraview? |
The wiki covers this topic:
http://www.paraview.org/Wiki/ParaVie...hon_Calculator Quote:
|
what's its difference from ordinary calculator filter?is there anything on top of working with components of vectors?
and how can I have a field of area's of cells? |
I used this expression,but that error is shown.
Code:
area(inputs[2]) Code:
Traceback (most recent call last): |
Hi Ehsan,
Quote:
Code:
area(inputs[0]) Bruno edit: Further discussion on this topic is being done here: http://www.cfd-online.com/Forums/par...alculator.html |
rescaling axes grid while displaying contours or vectors
Hi Bruno,
I want to show temperature contours in paraview. But, I want to display re-scaled or non-dimensionalized axes. I tried in using 'x axes custom labels' under 'Axes Grid'. But I am unsuccessful. I request you to help me how to do this. Thanks in advance! |
Quote:
|
Thank you Bruno,
I could re-scale my coordinates using Data Scale option under Data Transform in the Axes Grid available under View(Render View). Thanks for your reply too. |
All times are GMT -4. The time now is 17:42. |