COMMAND FILE:
  CFX Post Version = 11.0
END

! sub CFXPlotALL {
! ($variable, $varID, $cfxboundary, $dirOutput, $fsisurfaceID ) = @_;
! ($legendboundary) = "CFX ".$variable." ".$cfxboundary;
! ($fsipressure ) = "FSI Contour";
! ($cfxisox ) = $dirOutput."solution".$fsisurfaceID.$varID."_x.png";
! ($cfxisoy ) = $dirOutput."solution".$fsisurfaceID.$varID."_y.png";
! ($cfxisoz ) = $dirOutput."solution".$fsisurfaceID.$varID."_z.png";


# Initial viewport setup

> hide Wireframe
> hide Default Legend View 1

VIEWPORT MANAGER:
  Background Colour = 0.42, 0.55, 0.871
  Background Colour 2 = 1, 1, 1
  Background Colour Type = Top-Bottom Gradient
  Global Edge Colour = 0, 0, 0
  Global Text Colour = 0, 0, 0
END


# Create user variable for element stress

LIBRARY:
  CEL:
    EXPRESSIONS:
      myStressExp=Force/Area
    END
  END
END
USER SCALAR VARIABLE:$legendboundary
  Boundary Values = Conservative
  Calculate Global Range = Off
  Expression = myStressExp
  Recipe = Expression
END


# Make a contour of CFX variable on the boundary

CONTOUR: $fsipressure
  Location List = $cfxboundary
  Contour Range = Local
  Colour Variable = $variable
  Colour Variable Boundary Values = Hybrid
  Lighting = Off
  Specular Lighting = Off
  Fringe Fill = On
  Draw Contours = Off
END
> show $fsipressure

BOUNDARY: $cfxboundary
  Draw Lines = true
  Draw Faces = false
  Render Edge Angle = 30 [degree]
END
> show $cfxboundary

LEGEND:Legend 1
  Colour = 0, 0, 0
  Font = Sans Serif
  Legend Aspect = 0.06
  Legend Format = %10.3e
  Legend Orientation = Vertical
  Legend Plot = $fsipressure
  Legend Position = 0.02 , 0.15
  Legend Size = 0.75
  Legend Ticks = 5
  Legend Title = $legendboundary
  Legend Title Mode = User Specified
  Legend X Justification = Left
  Legend Y Justification = Center
  Show Legend Units = On
  Text Colour Mode = Default
  Text Height = 0.018
  Text Rotation = 0
END
> show Legend 1

TEXT: Text 1
  Colour = 0, 0, 0
  Font = Sans Serif
  Position Mode = Two Coords
  Text Colour Mode = Default
  Text Height = 0.018
  Text Position = 0 , 0.9
  Text Rotation = 0 [degree]
  X Justification = Left
  Y Justification = None
  TEXT ITEM: Text Item 1
    Auto Annotation File Date Format = DD/MM/YY
    Auto Annotation File Time Format = h:m:s t
    Auto Annotation Filename Format = Filename Only
    Auto Annotation Type = Time Value
    Embed Auto Annotation = On
    Text Item Active = On
    Text String = Time Value = <aa>
  END
END
> show Text 1


# Set up the image output and print 3 projections

HARDCOPY:
  Hardcopy Format = png
  Image Height = 600
  Image Width = 800
  Use Screen Size = Off
END

> setcamera viewport=1, camera=Isometric X
> print $cfxisox

> setcamera viewport=1, camera=Isometric Y
> print $cfxisoy

> setcamera viewport=1, camera=Isometric Z
> print $cfxisoz

! }
