CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > Tecplot

Maximum value on a slice

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 30, 2020, 12:27
Default Maximum value on a slice
  #1
New Member
 
Join Date: Feb 2020
Posts: 6
Rep Power: 6
mlazim14 is on a distinguished road
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
mlazim14 is offline   Reply With Quote

Old   May 1, 2020, 15:31
Default
  #2
Member
 
Join Date: May 2013
Posts: 61
Rep Power: 12
novedevon is on a distinguished road
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
novedevon is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 05:31.