|
[Sponsors] | |||||
|
|
|
#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 |
|
|
|
|
|
|
|
|
#2 | |
|
Member
Serge A. Suchkov
Join Date: Oct 2011
Location: Moscow, Russia
Posts: 54
Blog Entries: 4
Rep Power: 3 ![]() |
Quote:
__________________
/sbin/modinfo gspca_zc3xx | grep author | cut -d , -f 2 |
||
|
|
|
||
|
|
|
#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 |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| fluentMeshToFoam multidomain mesh conversion problem | Attesz | OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... | 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 |
| accessing solver data with UDF macros | Dushan | FLUENT | 0 | October 4, 2006 01:39 |
| How to update polyPatchbs localPoints | liu | OpenFOAM Running, Solving & CFD | 6 | December 30, 2005 17:27 |