Report Template Sample

*DefineReport(ex_def, ex_filename)
    *ReportLabel("Sample Report")
    *Parameter(ex_filename, "Filename", filename, "*stat")
    *Page(page_1, "Page 1 - Example", pagedef_a, ex_filename)
*EndDefine()

*DefinePage(pagedef_a, ex_filename)
    *Layout(2)
    *Plot(energy, "Energy Summary", energy_pltdef, ex_filename)
    *Plot(velocity, "Global Velocity", velocity_pltdef, ex_filename)
*EndDefine()

*DefinePlot(energy_pltdef, ex_filename)
    *BeginAxis(X, "Primary", on)
      *Label("Time ( sec )")
    *EndAxis()
    *BeginAxis(Y, "Primary", on)
      *Label("Energy")
    *EndAxis()
    *Curve(kinetic, "Kinetic Energy", generic_crvdef, ex_filename, "Time", ,, "Energy", "Kinetic Energy", "Energy")
    *Curve(internal, "Internal Energy", generic_crvdef, ex_filename, "Time", ,,"Energy", "Internal Energy", "Energy")
    *Curve(total, "Total Energy", generic_crvdef, ex_filename, "Time",,, "Energy", "Total Energy", "Energy")
    *Curve(total_initial, "Total Energy / Initial Energy", generic_crvdef, ex_filename, "Time",,, "Energy", "Total Energy / Initial Energy", "Energy")
*EndDefine()

*DefinePlot(velocity_pltdef, ex_filename)
    *BeginAxis(X, "Primary", on)
      *Label("Time ( sec )")
    *EndAxis()
    *BeginAxis(Y, "Primary", on)
      *Label("Velocity")
    *EndAxis()
    *Curve(velocity, "Global Velocity - Magnitude", generic_crvdef, ex_filename, "Time",,, "Velocity", "Global Velocity", "Magnitude")
*EndDefine()

*DefineCurve(generic_crvdef, ex_filename, xtype, xreq, xcomp, ytype, yreq, ycomp)
    *BeginVector(X, File)
      *Filename(ex_filename)
      *Datatype(xtype)
    *EndVector()
    *BeginVector(Y, File)
      *Filename(ex_filename)
      *Datatype(ytype)
      *Request(yreq)
      *Component(ycomp)
    *EndVector()
    *BeginVector(Time, File)
      *Filename(ex_filename)
      *Datatype(xtype)
    *EndVector()
*EndDefine()