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

Max value in the extracted precise line in tecplot

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2023, 22:45
Default Max value in the extracted precise line in tecplot
  #1
Member
 
Ramesh K
Join Date: Dec 2009
Location: Bangalore
Posts: 73
Rep Power: 16
RameshK is on a distinguished road
Send a message via Yahoo to RameshK
Hi all


Is there any function which I can use in macro to obtain maximum value for a variable in the data extracted by a precise line in tecplot.





I would use this to normalize the variables using the maximum value and plot it.


Regards
RameshK is offline   Reply With Quote

Old   May 30, 2023, 20:27
Default
  #2
Senior Member
 
Scott Fowler
Join Date: May 2009
Posts: 120
Rep Power: 17
wsfowler is on a distinguished road
Ramesh,

Sure. You can use the "MAXVAR[nnn]" variable. This variable will return the maximum value amongst all active zones, so you have to be sure to have only the zone in question activated. So your macro would look something like this.

Code:
#!MC 1410
$!VarSet |ZoneNum| = 3
$!ActiveFieldMaps = [|ZoneNum|]

$!VarSet |MaxValue| = (|MAXVAR[4]|)
$!Pause "Max value is: |MaxValue|"

... Proceed with normalization ...
For transient datasets that FieldMap number and Zone number may not be the same, so make sure you're using the correct value in the $!ActiveFieldMaps call. For more information on variables available in the macro language, see section 7-1 in the Scripting Guide: https://tecplot.azureedge.net/produc...ting_guide.pdf.

There are some interesting macro language extensions as well in section 11-2.
wsfowler 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
Converging Diverging Nozzle with dbnsTurbFoam Saleh Abuhanieh OpenFOAM Running, Solving & CFD 4 December 13, 2019 10:26
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 05:42
1.7.x Environment Variables on Linux 10.04 rasma OpenFOAM Installation 9 July 30, 2010 04:43
Problems of Duns Codes! Martin J Main CFD Forum 8 August 14, 2003 23:19
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16


All times are GMT -4. The time now is 20:24.