|
[Sponsors] |
Data comparision using 'if' for tecplot macros |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 17, 2012, 23:53 |
Data comparision using 'if' for tecplot macros
|
#1 |
New Member
othniel manikonda
Join Date: Apr 2012
Posts: 2
Rep Power: 0 |
Hi,
I've written a macro for comparing my output data to a constant value. My output file is a 3-dimensional block type data. In total there are 120 zones and 19 variables. I want to compare each and every point from all the zones with a constant value. I'm trying to compare the variables value like this : $!LOOP |var| ---- ---- $!LOOP |zone| ---- ---- $!IF |V|var|[|zone|](i,j,k)| == 1 $!ALTERDATA ---- ---- $!ENDIF $!ENDLOOP $!ENDLOOP var - variable number ; zone - zone number; i,j,k - indexes of an arbitrary point; but it's saying that's not the correct format etc. Could someone help me with this? Thanks, Othniel |
|
April 18, 2012, 01:04 |
|
#2 | |
Member
Serge A. Suchkov
Join Date: Oct 2011
Location: Moscow, Russia
Posts: 74
Blog Entries: 5
Rep Power: 14 |
Quote:
__________________
OpenHyperFLOW2D Project |
||
April 18, 2012, 01:18 |
|
#3 |
New Member
othniel manikonda
Join Date: Apr 2012
Posts: 2
Rep Power: 0 |
Hi,
Thanks for the reply. Actually I can understand what you are saying. If we use 'value blanking' we can eliminate data which we don't need, but in this case I want to further modify the data after comparison with the constant value. Like, I want to count the number of data points whose value is equal to 1. I would like to know how to correctly use the IF statement there. Thanks, Othniel |
|
April 18, 2012, 02:21 |
|
#4 |
Member
Serge A. Suchkov
Join Date: Oct 2011
Location: Moscow, Russia
Posts: 74
Blog Entries: 5
Rep Power: 14 |
In this case the best way (ImHO) it is use "Integrate" option.
__________________
OpenHyperFLOW2D Project |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
accessing solver data with UDF macros | Dushan | FLUENT | 1 | April 22, 2017 21:05 |
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem | Attesz | OpenFOAM Meshing & Mesh Conversion | 12 | May 2, 2013 10:52 |
export data at nodes | Meenu | FLUENT | 1 | December 30, 2011 01:24 |
Problem in running ICEM grid in Openfoam | Tarak | OpenFOAM | 6 | September 9, 2011 17:51 |
How to update polyPatchbs localPoints | liu | OpenFOAM Running, Solving & CFD | 6 | December 30, 2005 17:27 |