|
[Sponsors] |
April 30, 2020, 12:27 |
Maximum value on a slice
|
#1 |
New Member
Join Date: Feb 2020
Posts: 6
Rep Power: 6 |
I've recorded a macro which creates a number of slices along my nozzle, and then performs an Integration on each slice to extract the average values of a range of variables, and saves each to a text file.
Now, I'm also looking to get the radius of the nozzle along the axis, which would simply be either the maximum value of my {Radius} variable, or just the maximum Y value for example. How can I use the Perform Integration tool to get this maximum value on each slice, or alternatively write a macro which does the same? I've tried using a macro loop as follows, but it returns 0 for all slices: Code:
$!VARSET |FIRSTSLICEZONE| = (|INITZONES| + 1) $!VARSET |SLICEZONE| = |FIRSTSLICEZONE| $!LOOP |NEWZONECOUNT| $!ACTIVEFIELDMAPS = [|SLICEZONE|] $!ALTERDATA [|SLICEZONE|] EQUATION = '{R} = |MAXY|' $!VarSet |SLICEZONE| += 1 $!ENDLOOP |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic mesh udf for oscillating wall | QBeast | Fluent UDF and Scheme Programming | 3 | December 17, 2020 02:03 |
Obtaining Maximum from a Slice | twolf59 | Tecplot | 0 | June 29, 2015 11:23 |
Diverging solution in transonicMRFDyMFoam | tsalter | OpenFOAM Running, Solving & CFD | 30 | July 7, 2014 06:20 |
compressible flow in turbocharger | riesotto | OpenFOAM | 50 | May 26, 2014 01:47 |
[General] Getting the maximum slice value in Python | JPW | ParaView | 0 | July 25, 2012 04:49 |