|
[Sponsors] |
April 30, 2020, 13: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 |
|
May 1, 2020, 16:31 |
|
#2 |
Member
Join Date: May 2013
Posts: 61
Rep Power: 13 |
Integration is available from the macro language, but the integration result is not accessible from the script easily. That is not true for the PyTecplot interface where you can run the integration as well as have direct access to the data. I would recommend switching to a PyTecplot script which will give you more flexibility.
-Devon Tecplot Product Engineer |
|
|
|
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 03:03 |
Obtaining Maximum from a Slice | twolf59 | Tecplot | 0 | June 29, 2015 12:23 |
Diverging solution in transonicMRFDyMFoam | tsalter | OpenFOAM Running, Solving & CFD | 30 | July 7, 2014 07:20 |
compressible flow in turbocharger | riesotto | OpenFOAM | 50 | May 26, 2014 02:47 |
[General] Getting the maximum slice value in Python | JPW | ParaView | 0 | July 25, 2012 05:49 |