Loading ...
Sorry, an error occurred while loading the content.

2703RE: [Tecplot_Talk] Get maximum value of a single zone

Expand Messages
  • Alter, Stephen J. (LARC-D305)
    Sep 9, 2008
    • 0 Attachment

      You will have to use a macro to assign auxiliary data to each zone to contain the information you want to display. An example would be:

       

      #!MC 1100

      # This macro assigns the min and max of each zone for each variable to an auxiliary data entry.

      $!Loop |NumZones|

       

        $!VarSet |SourceZone| = |loop|

        $!ActiveFieldMaps = [|SourceZone|]

       

        $!Loop |NumVars|

       

          $!GlobalContour [C1]

            Var = |loop|

          $!SetAuxData

            AuxDataLocation = Var

            Zone = |SourceZone|

            Name = “VarMin|loop|”

            ValueString = “|MinC|”

          $!SetAuxData

            AuxDataLocation = Var

            Zone = |SourceZone|

            Name = “VarMax|loop|”

            ValueString = “|MaxC|”

       

        $!EndLoop

       

      $!EndLoop

       

      In this macro, using the “ActiveFieldMaps” causes only one zone to be active. In the past, Tecplot’s |MinC| and |MaxC| in the macro language would return the minimum of the contour variable for the active zones. With only one active zone, this should be the values you want for each variable of each zone as the macro cycles through the variables. After running the macro, you can then use the dynamic text command &(AuxZone[10]:VarMin3) to get the minimum of variable 3 in zone 10.

       

      Good luck.

       

       

       

      From: Tecplot_Talk@yahoogroups.com [mailto:Tecplot_Talk@yahoogroups.com] On Behalf Of Puetz, Oliver (E F PR SU)
      Sent: Tuesday, September 09, 2008 6:52 AM
      To: Tecplot_Talk@yahoogroups.com
      Subject: [Tecplot_Talk] Get maximum value of a single zone

       

      Hello,

       

      I want to output the maximum value of a zone in a text field

      With

          &(MINVAR[10])

      the oveall maximum of all zones will be outputted.

      Does anyone knows, how to catch the maximum only for a given zone?

       

      Thanks and regards

      Oliver

       

    • Show all 6 messages in this topic