#### Fan Report Template

COMMAND FILE:
  CFX Post Version = 11.0
END


#### Report Description

REPORT:
  REPORT PROPERTIES:
    Report Template Name = Fan Report
    Keywords = turbo, fan
    Report Template Description = A report for a single domain low speed fan analysis.
  END
  PUBLISH:
    Default Report Name = Fan Report
    Report Path = ./FanReport.htm
  END
END
TITLE PAGE:
  Report Title = Fan Report
END


! $dataDir = $ENV{CUE_LOCAL_DATA_DIR};
> readsession filename=$dataDir/PostReports/turboReportCommon.cse


#### Turbo Initialization


!initTurbo();

! $isRotor = 1;

#### Get Domain Information


!getDomainInfo();
!setDomainTransform();


#### Define Expressions

!commonCEL();

LIBRARY:
  CEL:
    EXPRESSIONS:
      Flow Coefficient = Q/(n * D te^3)
      H = Total Pressure in Stn Frame / (g * Density )
      H in = massFlowAve(Head)@$regionInlet
      H in to out = H out - H in
      H out = massFlowAve(Head)@$regionOutlet
      Head Coefficient = g*H in to out/(n * D te)^2
      Power Coefficient = Shaft Power/(rho * n^3 * D te^5)
      Pressure Rise = Pt out - Pt in
      Q = mfr / rho
      Static Efficiency in to out = Q * (P out - Pt in)/Shaft Power * 100
      Total Efficiency in to out = Q * (Pt out - Pt in)/Shaft Power * 100
      rho = rho in
    END
  END
END


#### User Variables


USER SCALAR VARIABLE:Head
  Boundary Values = Conservative
  Calculate Global Range = Off
  Expression = H
  Recipe = Expression
  Variable to Copy = Pressure
END


#### Results Tables


COMMENT:Tabulated Results
  Comment Heading = Tabulated Results
  Heading Level = 1
  Comment Text = \
  <p>The first table below gives a summary of the performance results for the fan.  The second table lists the mass or area averaged solution variables and derived quantities computed at the inlet, leading edge (LE Cut), trailing edge (TE Cut) and outlet locations.  The flow angles Alpha and Beta are relative to the meridional plane; a positive angle implies that the tangential velocity is the same direction as the machine rotation.</p>
END

!{
!  my @list = (
!              'Rotation Speed', 'omega', '%7.4f',
!              'Reference Diameter', 'D te', '%7.4f',
!              'Volume Flow Rate', 'Q', '%7.4f',
!              'Pressure Rise (IN-OUT)', 'Pressure Rise', '%7.4f',
!              'Flow Coefficient', 'Flow Coefficient', '%7.4f',
!              'Head Coefficient (IN-OUT)', 'Head Coefficient', '%7.4f',
!              'Shaft Power', 'Shaft Power', '%7.4f',
!              'Power Coefficient', 'Power Coefficient', '%7.4f',
!              'Total Efficiency (IN-OUT) %', 'Total Efficiency in to out', '%7.4f',
!              'Static Efficiency (IN-OUT) %', 'Static Efficiency in to out', '%7.4f');

!  computedResultsTable("Performance Results", @list);
!}


! $dataDir = $ENV{CUE_LOCAL_DATA_DIR};
> readsession filename=$dataDir/PostReports/IncompressibleRotorCommon.cse

#### Fan noise report

# call the standard macro
! fanNoiseDefault();

