#!MC 1410 # INSTRUCTIONS: # 1. Load Surface Zones from CFD solution into Tecplot360 EX (the surface info should include CP and # any other surface information desired) # 2. Assign LABEL variable in this file as the "XXX" identifier of the dataset # 3. Assign INFO variable with appropriate information for the particular case # 4. Run macro. It should create/extract zones for Row A slat, Row A wing, Row A flap, Row B... etc. # 5. You can write out these zones to data files as appropriate, including any data desired # # XXX: Participant ID (To be assigned by HiLiftPW workshop committee) # #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ $!VARSET |LABEL| = "XXX" $!VARSET |INFO| = "aoa 7.05 case1a 40/37" $!VARSET |ZONE| = |NUMZONES| # --- Row A flap --- $!SliceAttributes 1 ShowGroup = Yes $!SliceAttributes 1 SliceSurface = Arbitrary $!SliceAttributes 1 EdgeLayer{Show = Yes} $!SliceAttributes 1 SliceSource = SurfaceZones $!SetArbitrarySliceUsingThreePoints Group = 1 X1 = 0.00000 Y1 = 94.66285 Z1 = 0.00000 X2 = 0.00000 Y2 = 93.02166 Z2 = 10.00000 X3 = 10.00000 Y3 = 95.39487 Z3 = 0.00000 $!ExtractSlices Group = 1 $!VARSET |ZONE| += 1 $!RenameDataSetZone Zone = |ZONE| Name = '|LABEL| Row A flap |INFO|' # --- Row B flap --- $!SliceAttributes 1 ShowGroup = Yes $!SliceAttributes 1 SliceSurface = Arbitrary $!SliceAttributes 1 EdgeLayer{Show = Yes} $!SliceAttributes 1 SliceSource = SurfaceZones $!SetArbitrarySliceUsingThreePoints Group = 1 X1 = 0.00000 Y1 = 199.31276 Z1 = 0.00000 X2 = 0.00000 Y2 = 197.67157 Z2 = 10.00000 X3 = 10.00000 Y3 = 200.04478 Z3 = 0.00000 $!ExtractSlices Group = 1 $!VARSET |ZONE| += 1 $!RenameDataSetZone Zone = |ZONE| Name = '|LABEL| Row B flap |INFO|' # --- Row C flap --- $!SliceAttributes 1 ShowGroup = Yes $!SliceAttributes 1 SliceSurface = Arbitrary $!SliceAttributes 1 EdgeLayer{Show = Yes} $!SliceAttributes 1 SliceSource = SurfaceZones $!SetArbitrarySliceUsingThreePoints Group = 1 X1 = 0.00000 Y1 = 303.96266 Z1 = 0.00000 X2 = 0.00000 Y2 = 302.32147 Z2 = 10.00000 X3 = 10.00000 Y3 = 304.69469 Z3 = 0.00000 $!ExtractSlices Group = 1 $!VARSET |ZONE| += 1 $!RenameDataSetZone Zone = |ZONE| Name = '|LABEL| Row C flap |INFO|' # --- Row D flap --- $!SliceAttributes 1 ShowGroup = Yes $!SliceAttributes 1 SliceSurface = Arbitrary $!SliceAttributes 1 EdgeLayer{Show = Yes} $!SliceAttributes 1 SliceSource = SurfaceZones $!SetArbitrarySliceUsingThreePoints Group = 1 X1 = 0.00000 Y1 = 604.85419 Z1 = 0.00000 X2 = 0.00000 Y2 = 601.21528 Z2 = 10.00000 X3 = 10.00000 Y3 = 604.53860 Z3 = 0.00000 $!ExtractSlices Group = 1 $!VARSET |ZONE| += 1 $!RenameDataSetZone Zone = |ZONE| Name = '|LABEL| Row D flap |INFO|' # --- Row E flap --- $!SliceAttributes 1 ShowGroup = Yes $!SliceAttributes 1 SliceSurface = Arbitrary $!SliceAttributes 1 EdgeLayer{Show = Yes} $!SliceAttributes 1 SliceSource = SurfaceZones $!SetArbitrarySliceUsingThreePoints Group = 1 X1 = 0.00000 Y1 = 769.33779 Z1 = 0.00000 X2 = 0.00000 Y2 = 765.69887 Z2 = 10.00000 X3 = 10.00000 Y3 = 769.02220 Z3 = 0.00000 $!ExtractSlices Group = 1 $!VARSET |ZONE| += 1 $!RenameDataSetZone Zone = |ZONE| Name = '|LABEL| Row E flap |INFO|' # --- Row F flap --- $!SliceAttributes 1 ShowGroup = Yes $!SliceAttributes 1 SliceSurface = Arbitrary $!SliceAttributes 1 EdgeLayer{Show = Yes} $!SliceAttributes 1 SliceSource = SurfaceZones $!SetArbitrarySliceUsingThreePoints Group = 1 X1 = 0.00000 Y1 = 933.82139 Z1 = 0.00000 X2 = 0.00000 Y2 = 930.18247 Z2 = 10.00000 X3 = 10.00000 Y3 = 933.50579 Z3 = 0.00000 $!ExtractSlices Group = 1 $!VARSET |ZONE| += 1 $!RenameDataSetZone Zone = |ZONE| Name = '|LABEL| Row F flap |INFO|'